summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-08-02 19:09:29 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-08-02 19:09:43 (GMT)
commit0660dc4dcfc1934757a5a7f0ddf5980fee2f8d1a (patch)
treef9445fc64edfa56f2e8be9402bf1df4b6bf420ee /Modules
parent0194918636182756eac1eb7f3c0cbfb69ceaf720 (diff)
parentd856aaa37d35a23b1d5da3aa3cc34201b76b8bde (diff)
downloadCMake-0660dc4dcfc1934757a5a7f0ddf5980fee2f8d1a.zip
CMake-0660dc4dcfc1934757a5a7f0ddf5980fee2f8d1a.tar.gz
CMake-0660dc4dcfc1934757a5a7f0ddf5980fee2f8d1a.tar.bz2
Merge topic 'find_cudatoolkit_understand_nvhpc_math_library_location'
d856aaa37d FindCUDAToolkit: Understand NVHPC versioned math library layout Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !6405
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindCUDAToolkit.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake
index e453109..92042d2 100644
--- a/Modules/FindCUDAToolkit.cmake
+++ b/Modules/FindCUDAToolkit.cmake
@@ -844,6 +844,9 @@ if(CUDAToolkit_FOUND)
HINTS ${CUDAToolkit_LIBRARY_DIR}
ENV CUDA_PATH
PATH_SUFFIXES lib64/stubs lib/x64/stubs lib/stubs stubs
+ # Support NVHPC splayed math library layout
+ ../../math_libs/${CUDAToolkit_VERSION_MAJOR}.${CUDAToolkit_VERSION_MINOR}/lib64
+ ../../math_libs/lib64
)
mark_as_advanced(CUDA_${lib_name}_LIBRARY)