-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] [NATIVECPU] Disabling default -sycl-opt
for NativeCPU and updating docs
#12025
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs changes LGTM! Maybe I just don't see the relation, but could this have been two PRs, i.e. one for -sycl-opt
and one for the docs changes? If yes, we should aim for having that in the future. It makes the history cleaner and the discussion in the PR can be kept focused.
|
||
// checking that explicitly enabling -sycl-opt still works | ||
// RUN: %clang -fsycl -fsycl-targets=native_cpu -mllvm -sycl-opt -### %s 2>&1 | FileCheck -check-prefix=CHECK-OPT_ON %s | ||
// CHECK-OPT_ON: -sycl-opt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This check doesn't make sense to me. We already have tests checking testing -mllvm
option and I don't think this test adds any value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the check. Thank you.
Yes, sorry, these could have been separate PRs, and I'll bare that in mind. Thank you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK for driver
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you
Hello @intel/llvm-gatekeepers , this PR looks ready to merge. Thank you! |
This PR no longer passes
-mllvm -sycl-opt
to the device compiler invocation for NativeCPU to enable the original full llvm optimization pipeline.EnvironmentVariables.md
has been updated to document NativeCPU and its usage in environment variables.