Skip to content

Commit 42895e2

Browse files
author
Hugh Delaney
committed
Removing cuda dependency on libdevice .o files
1 parent c03873b commit 42895e2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

libdevice/cmake/modules/SYCLLibdevice.cmake

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ if ("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
3636
string(APPEND sycl_targets_opt ",nvptx64-nvidia-cuda")
3737
list(APPEND compile_opts
3838
"-fno-sycl-libspirv"
39-
"-fno-bundle-offload-arch")
40-
if(CUDA_TOOLKIT_ROOT_DIR)
41-
list(APPEND compile_opts
42-
"--cuda-path=${CUDA_TOOLKIT_ROOT_DIR}")
43-
endif()
39+
"-fno-bundle-offload-arch"
40+
"-nocudalib")
4441
endif()
4542

4643
if (WIN32)

0 commit comments

Comments
 (0)