From 5e27564f80f8ac78947a3763c4032c20e0e2847f Mon Sep 17 00:00:00 2001 From: Shang Wang Date: Fri, 6 Jul 2018 16:43:33 -0400 Subject: [PATCH] Fixing issue #1395: Undefined symbol: cudaGetDevice --- cmake/util/FindCUDA.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/util/FindCUDA.cmake b/cmake/util/FindCUDA.cmake index 83d2e6500fea..84e1322c5397 100644 --- a/cmake/util/FindCUDA.cmake +++ b/cmake/util/FindCUDA.cmake @@ -28,11 +28,11 @@ macro(find_cuda use_cuda) set(CUDA_INCLUDE_DIRS ${CUDA_TOOLKIT_ROOT_DIR}/include) set(CUDA_FOUND TRUE) if(MSVC) - find_library(CUDA_CUDAT_LIBRARY cudart + find_library(CUDA_CUDART_LIBRARY cudart ${CUDA_TOOLKIT_ROOT_DIR}/lib64 ${CUDA_TOOLKIT_ROOT_DIR}/lib) else(MSVC) - find_library(CUDA_CUDAT_LIBRARY cudart + find_library(CUDA_CUDART_LIBRARY cudart ${CUDA_TOOLKIT_ROOT_DIR}/lib64 ${CUDA_TOOLKIT_ROOT_DIR}/lib) endif(MSVC)