summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorIgor S. Gerasimov <i.s.ger@ya.ru>2021-07-27 17:22:30 (GMT)
committerIgor S. Gerasimov <i.s.ger@ya.ru>2021-07-27 17:22:30 (GMT)
commitccb85f8943746fefac9f9e6f6e69e9074d243484 (patch)
tree3f4dcbfddf42b31a0ab2ba9f735170b89c8a43ea /Modules/FindBLAS.cmake
parent73e452eb98ecea915164444a417b9c18a0a84e82 (diff)
downloadCMake-ccb85f8943746fefac9f9e6f6e69e9074d243484.zip
CMake-ccb85f8943746fefac9f9e6f6e69e9074d243484.tar.gz
CMake-ccb85f8943746fefac9f9e6f6e69e9074d243484.tar.bz2
FindBLAS: Add possibility to find OMP parallelized version of ESSL
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake14
1 files changed, 11 insertions, 3 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index 0d95723..2ea6d98 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -109,7 +109,8 @@ BLAS/LAPACK Vendors
``Goto``
GotoBLAS
-``IBMESSL``
+``IBMESSL``, ``IBMESSL_SMP``
+
IBM Engineering and Scientific Subroutine Library
``Intel``
@@ -894,19 +895,26 @@ if(BLA_VENDOR STREQUAL "SGIMATH" OR BLA_VENDOR STREQUAL "All")
endif()
# BLAS in IBM ESSL library?
-if(BLA_VENDOR STREQUAL "IBMESSL" OR BLA_VENDOR STREQUAL "All")
+if(BLA_VENDOR MATCHES "IBMESSL" OR BLA_VENDOR STREQUAL "All")
+ set(_blas_essl_lib "essl")
+
+ if(BLA_VENDOR MATCHES "_SMP")
+ set(_blas_essl_lib "${_blas_essl_lib}smp")
+ endif()
if(NOT BLAS_LIBRARIES)
check_blas_libraries(
BLAS_LIBRARIES
BLAS
sgemm
""
- "essl"
+ "${_blas_essl_lib}"
""
""
""
)
endif()
+
+ unset(_blas_essl_lib)
endif()
# BLAS in acml library?