-
Notifications
You must be signed in to change notification settings - Fork 808
[SYCL] Handle passing O-group options via -Xarch_<arch> for JIT compilation #21129
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
base: sycl
Are you sure you want to change the base?
[SYCL] Handle passing O-group options via -Xarch_<arch> for JIT compilation #21129
Conversation
mdtoguchi
left a comment
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.
Thanks - LGTM!
| if (Kind == Action::OFK_SYCL) { | ||
| // Append device compiler arguments and their values to `CompilerArgs`. | ||
| for (Arg *A : BaseCompilerArgs) | ||
| A->render(BaseCompilerArgs, CompilerArgs); |
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.
For efficiency, we can do this once and just fall into the Kind == Action::OFK_SYCL to add the implied args. This way there is no else from L11294.
This change enables passing
O-groupoptimization options specified via-Xarch_<arch>through to SYCL JIT compilation.