-
Notifications
You must be signed in to change notification settings - Fork 768
[SYCL] [Driver] Add offload-arch support for SYCL offloading #15624
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
…am/llvm into offload-arch-aot
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.
Overall, despite not being a pinged reviewer, I wanted to say I like the direction of these changes. I am aware this is still a Draft
but is there a plan to address the --offload-arch
with no -fsycl-targets
case in
llvm/clang/lib/Driver/Driver.cpp
Line 6397 in 35b926a
} else if (HasValidSYCLRuntime) { |
OffloadingActionBuilder::SYCLActionBuilder::initialize()
. Thanks.
I see, I must've missed the chain of changes wrt the new offload driver for SYCL. |
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 (mainly commenting about the handling for Nvidia and AMD targets). Thanks again for your patience, explanations, and addressing review comments.
Ping @intel/dpcpp-cfe-reviewers |
@intel/llvm-gatekeepers Hello, this PR is ready to be merged. Thanks! |
…5624) Implement `--offload-arch` option to enable SYCL offloading to `Intel CPUs`, `Intel GPUs`, `NVidia` and `AMD GPUs`. `--offload-arch` implementation is currently supported in the new driver model ( i.e. with `--offload-new-driver` option) **Example usage:** ``` clang++ --offload-new-driver -fsycl --offload-arch=bdw // Offload SYCL code to Intel GPU clang++ --offload-new-driver -fsycl --offload-arch=broadwell // Offload SYCL code to Intel CPU clang++ --offload-new-driver -fsycl --offload-arch=sm_80 // Offload SYCL code to NVidia GPU clang++ --offload-new-driver -fsycl --offload-arch=gfx700 // Offload SYCL code to AMD GPU ```
Implement
--offload-arch
option to enable SYCL offloading toIntel CPUs
,Intel GPUs
,NVidia
andAMD GPUs
.--offload-arch
implementation is currently supported in the new driver model ( i.e. with--offload-new-driver
option)Example usage: