Skip to content

Commit

Permalink
Update find cublas so it search default path if needed. (#9149)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkimball authored Sep 30, 2021
1 parent da5b4fb commit fafd164
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/utils/FindCUDA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,16 @@ macro(find_cuda use_cuda use_cudnn)
${CUDA_TOOLKIT_ROOT_DIR}/lib64
${CUDA_TOOLKIT_ROOT_DIR}/lib
NO_DEFAULT_PATH)
# search default path if cannot find cublas in non-default
find_library(CUDA_CUBLAS_LIBRARY cublas)
find_library(CUDA_CUBLASLT_LIBRARY
NAMES cublaslt cublasLt
PATHS
${CUDA_TOOLKIT_ROOT_DIR}/lib64
${CUDA_TOOLKIT_ROOT_DIR}/lib
NO_DEFAULT_PATH)
# search default path if cannot find cublaslt in non-default
find_library(CUDA_CUBLASLT_LIBRARY NAMES cublaslt cublasLt)
endif(MSVC)

# find cuDNN
Expand Down

0 comments on commit fafd164

Please sign in to comment.