-
Notifications
You must be signed in to change notification settings - Fork 788
[SYCL][Driver] Set -aux-target-cpu for SYCL offload device compilation #1225
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
972e7f0
to
0ea2663
Compare
0ea2663
to
c0f857e
Compare
c0f857e
to
6b2a7ff
Compare
@mdtoguchi could you please provide some feedback on the patches? |
clang/test/Driver/sycl-offload.cpp
Outdated
// CHECK-OFFLOAD: "-aux-target-cpu" "x86-64" | ||
// CHECK-OFFLOAD: "-target-cpu" "x86-64" | ||
|
||
/// Check "-aux-target-cpu" and "-target-cpu" are passed when compiling for SYCL offload device and host codes with enabling macros: |
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.
enabling macros
has nothing to do with this check. Probably shouldn't be mentioned.
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 @mdtoguchi for the feedback. I have updated the patch.
6b2a7ff
to
b9ad657
Compare
clang/test/Driver/sycl-offload.cpp
Outdated
// CHECK-OFFLOAD: "-aux-target-cpu" "x86-64" | ||
// CHECK-OFFLOAD: "-target-cpu" "x86-64" | ||
|
||
/// Check "-aux-target-cpu" and "-target-cpu" are passed when compiling for SYCL offload device and host codes: |
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.
One more nit: You are also checking for feature here, so adding that in the comment would reduce confusion from the first check which uses the same 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 @mdtoguchi. I have updated comments.
b9ad657
to
6e4827d
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.
Thanks!
This patch adds -aux_target_cpu that will set AVX and other necessary macros for the SYCL offload device compilation based on -aux-target-cpu target. Signed-off-by: Soumi Manna <[email protected]>
6e4827d
to
fc0d87d
Compare
Thanks @mdtoguchi. @bader I have updated lit test to fix errors for "check-clang" build that happened with my previous patch. |
…_accessor_refactor * origin/sycl: (38 commits) [SYCL] Fix device::get_devices() with a non-host device type (intel#1235) [SYCL][PI][CUDA] Implement kernel and kernel-group information queries (intel#1180) [SYCL] Remove default error code value in exception (intel#1150) [SYCL] Fix devicelib assert LIT test (intel#1245) [SYCL] Set aux-target-cpu for SYCL offload device compilation (intel#1225) [SYCL] Remove fabs and ceil from the list of unsupported math functions (intel#1217) [SYCL] Fix circular reference between events and queues (intel#1226) [CI][Doc] Use SSH to deploy GitHub Pages (intel#1232) [SYCL][CUDA][Test] Testing for use of CUDA primary context (intel#1174) [SYCL] allow underscore symbol in temporary directory name [SYCL] Reject zero length arrays (intel#1153) [SYCL] Fix static code analyzis concerns (intel#1189) [SYCL] Add more details about the -fintelfpga option (intel#1218) [SYCL][CUDA] Select only NVPTX64 device binaries (intel#1223) [SYCL] Reverse max work-group size order (intel#1177) [SYCL][Doc] Add GroupAlgorithms extension (intel#1079) [SYCL] Fix SYCL internal enumerators conflict with user defined macro (intel#1188) [SYCL][CUDA] Fixes context release and unnamed context scope (intel#1207) [SYCL][CUDA] Fix context creation property parsing [CUDA][PI] clang-format pi.h ...
…ctor_tests * origin/sycl: [SYCL] Fix device::get_devices() with a non-host device type (intel#1235) [SYCL][PI][CUDA] Implement kernel and kernel-group information queries (intel#1180) [SYCL] Remove default error code value in exception (intel#1150) [SYCL] Fix devicelib assert LIT test (intel#1245) [SYCL] Set aux-target-cpu for SYCL offload device compilation (intel#1225) [SYCL] Remove fabs and ceil from the list of unsupported math functions (intel#1217)
This patch adds -aux-target-cpu that will set AVX and other necessary macros
for the SYCL offload device compilation based on -aux-target-cpu target.
Signed-off-by: Soumi Manna [email protected]