-
Notifications
You must be signed in to change notification settings - Fork 751
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
[Driver][SYCL] refactor -fsycl-device-only behaviors #2713
[Driver][SYCL] refactor -fsycl-device-only behaviors #2713
Conversation
Update -fsycl-device-only to go through the offload path, effectively removing the host dependencies when it is used. This allows for a cleaner representation of SYCL device specific compilation needs.
0d10dbb
to
5fcc96e
Compare
94f2e23
to
c570486
Compare
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.
A great improvement overall! Just a few questions on my side to fully understand the changes.
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!
As for the 1-line change in libclc
, I get it @bader will be offline for the duration of the week. @romanovvlad, do you think this PR can be merged earlier as an exception?
In LLVM, array allocations might have constant size: %array = alloca i32, i64 4, align 4 Represent this kind of allocations using OpVariable + OpBitcast. Before this patch, the SPV_INTEL_variable_length_array extension was used. Signed-off-by: Victor Perez <victor.perez@codeplay.com> Original commit: KhronosGroup/SPIRV-LLVM-Translator@ea2fcc172f6861e
Update -fsycl-device-only to go through the offload path, effectively
removing the host dependencies when it is used. This allows for a
cleaner representation of SYCL device specific compilation needs.