-
Notifications
You must be signed in to change notification settings - Fork 795
[SYCL][NVPTX] Obey -fcuda-short-ptr when compiling SYCL for NVPTX #15642
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
Changes from 1 commit
fdc2ad6
9ec2d4c
9ceb7d3
4b1ce3b
4243e07
b2301c3
516261c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -450,10 +450,15 @@ foreach( t ${LIBCLC_TARGETS_TO_BUILD} ) | |
| list(APPEND flags -D__unix__) | ||
| endif() | ||
|
|
||
| set(spirv_flags ${flags}) | ||
| if( ARCH STREQUAL nvptx OR ARCH STREQUAL nvptx64 ) | ||
| list(APPEND spirv_flags -Xclang -fcuda-short-ptr -mllvm -nvptx-short-ptr) | ||
|
||
| endif() | ||
|
|
||
| add_libclc_builtin_set(libspirv-${arch_suffix} | ||
| TRIPLE ${clang_triple} | ||
| TARGET_ENV libspirv | ||
| COMPILE_OPT ${flags} | ||
| COMPILE_OPT ${spirv_flags} | ||
| OPT_FLAGS ${opt_flags} | ||
| FILES ${libspirv_files} | ||
| GEN_FILES ${libspirv_gen_files} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.