Skip to content

Commit c03873b

Browse files
author
Hugh Delaney
committed
Add cuda path for non standard cuda location
1 parent 5d666db commit c03873b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libdevice/cmake/modules/SYCLLibdevice.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ if ("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
3737
list(APPEND compile_opts
3838
"-fno-sycl-libspirv"
3939
"-fno-bundle-offload-arch")
40+
if(CUDA_TOOLKIT_ROOT_DIR)
41+
list(APPEND compile_opts
42+
"--cuda-path=${CUDA_TOOLKIT_ROOT_DIR}")
43+
endif()
4044
endif()
4145

4246
if (WIN32)

0 commit comments

Comments
 (0)