Skip to content

Commit bed858b

Browse files
authored
[SYCL][CUDA] Add missing dependency on OpenCL headers (#1260)
This should fix the build process, where make sycl-toolchain -j would sometimes fail due to pi_cuda and ocl-headers building in parallel. Signed-off-by: Andrea Bocci <[email protected]>
1 parent 1a951cb commit bed858b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sycl/plugins/cuda/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ add_library(pi_cuda SHARED
2121
"pi_cuda.cpp"
2222
)
2323

24+
add_dependencies(pi_cuda
25+
ocl-headers
26+
)
27+
2428
add_dependencies(sycl-toolchain pi_cuda)
2529

2630
set_target_properties(pi_cuda PROPERTIES LINKER_LANGUAGE CXX)

0 commit comments

Comments
 (0)