summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake21
1 files changed, 20 insertions, 1 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index a44af4d..5743f9d 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -1153,9 +1153,28 @@ if(NOT BLAS_LIBRARIES
unset(_ssl2_suffix)
endif()
+# BLAS in nVidia HPC SDK? (https://developer.nvidia.com/hpc-sdk)
+if(BLA_VENDOR STREQUAL "NVHPC" OR BLA_VENDOR STREQUAL "All")
+ set(_blas_nvhpc_lib "blas")
+
+ if(NOT BLAS_LIBRARIES)
+ check_blas_libraries(
+ BLAS_LIBRARIES
+ BLAS
+ sgemm
+ ""
+ "${_blas_nvhpc_lib}"
+ ""
+ ""
+ ""
+ )
+ endif()
+
+ unset(_blas_nvhpc_lib)
+endif()
+
# Generic BLAS library?
if(BLA_VENDOR STREQUAL "Generic" OR
- BLA_VENDOR STREQUAL "NVHPC" OR
BLA_VENDOR STREQUAL "All")
if(NOT BLAS_LIBRARIES)
check_blas_libraries(