Skip to content

Commit

Permalink
Tell jitify_preprocess where to search for libnvrtc
Browse files Browse the repository at this point in the history
On machines with multiple CUDA Toolkits installed it is possible
to have a mismatch between the version of `nvcc` used to compile
code and the version of `libnvrtc` used for the JIT code. This
generally occurs when `LD_LIBRARY_PATH` points to a different
version of the CUDA Toolkit.

We now explicitly specify what toolkit library directory to search
when JIT code during libcudf compilation.
  • Loading branch information
robertmaynard committed Oct 3, 2022
1 parent 8df6dbf commit 822afe9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/cmake/Modules/JitifyPreprocessKernels.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function(jit_preprocess_files)
VERBATIM
COMMAND ${CMAKE_COMMAND} -E make_directory "${jit_output_directory}"
COMMAND
jitify_preprocess ${ARG_FILE} -o
"${CMAKE_COMMAND}" -E env LD_LIBRARY_PATH="${CUDAToolkit_LIBRARY_DIR}" $<TARGET_FILE:jitify_preprocess> ${ARG_FILE} -o
${CUDF_GENERATED_INCLUDE_DIR}/include/jit_preprocessed_files -i -m -std=c++17
-remove-unused-globals -D_FILE_OFFSET_BITS=64 -D__CUDACC_RTC__ -I${CUDF_SOURCE_DIR}/include
-I${CUDF_SOURCE_DIR}/src ${libcudacxx_includes} -I${CUDAToolkit_INCLUDE_DIRS}
Expand Down

0 comments on commit 822afe9

Please sign in to comment.