File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,12 +62,12 @@ option(BUILD_BENCHMARKS "Configure CMake to build (google) benchmarks" OFF)
6262# cudart can be statically linked or dynamically linked the python ecosystem wants dynamic linking
6363
6464
65- if (CMAKE_CUDA_RUNTIME_LIBRARY MATCHES "^Static$" )
65+ if (CUDA_RUNTIME_LIBRARY AND CUDA_RUNTIME_LIBRARY MATCHES "^Static$" )
6666 message (STATUS "Enabling static linking of cudart" )
6767 set (CUDART_LIBRARY "cudart_static" )
6868else ()
6969 set (CUDART_LIBRARY "cudart" )
70- endif (CMAKE_CUDA_RUNTIME_LIBRARY MATCHES "^Static$" )
70+ endif (CUDA_RUNTIME_LIBRARY AND CUDA_RUNTIME_LIBRARY MATCHES "^Static$" )
7171
7272###################################################################################################
7373# - cnmem ---------------------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ function ensureCMakeRan {
6161 if (( RAN_CMAKE == 0 )) ; then
6262 echo " Executing cmake for librmm..."
6363 cmake -DCMAKE_INSTALL_PREFIX=" ${INSTALL_PREFIX} " \
64- -DCMAKE_CUDA_RUNTIME_LIBRARY =" ${CUDA_RUNTIME_LIBRARY} " \
64+ -DCUDA_RUNTIME_LIBRARY =" ${CUDA_RUNTIME_LIBRARY} " \
6565 -DCMAKE_CXX11_ABI=ON \
6666 -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ..
6767 RAN_CMAKE=1
You can’t perform that action at this time.
0 commit comments