summaryrefslogtreecommitdiff
path: root/Modules/FindLAPACK.cmake
diff options
context:
space:
mode:
authorIgor S. Gerasimov <i.s.ger@ya.ru>2020-12-09 16:38:20 +0300
committerIgor S. Gerasimov <i.s.ger@ya.ru>2020-12-09 16:49:41 +0300
commitd6df83a690b6b7e8bb1cc763c087017b6ccb37f7 (patch)
tree15fbb680d192aba23d1fd3c13a6e70a5e71116db /Modules/FindLAPACK.cmake
parent7775cbdb821b928dbdb382c18977d78d4e8ea48d (diff)
downloadcmake-d6df83a690b6b7e8bb1cc763c087017b6ccb37f7.tar.gz
Find{BLAS,LAPACK}: Add support for Elbrus Math Library
http://mossigplan.acm.org/EML_introduction_engl.pdf
Diffstat (limited to 'Modules/FindLAPACK.cmake')
-rw-r--r--Modules/FindLAPACK.cmake29
1 files changed, 29 insertions, 0 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake
index 4f769ba819..d5af5da190 100644
--- a/Modules/FindLAPACK.cmake
+++ b/Modules/FindLAPACK.cmake
@@ -43,6 +43,8 @@ The following variables may be set to influence this module's behavior:
* ``Arm_mp``
* ``Arm_ilp64``
* ``Arm_ilp64_mp``
+ * ``EML``
+ * ``EML_mt``
* ``Generic``
.. versionadded:: 3.6
@@ -64,6 +66,9 @@ The following variables may be set to influence this module's behavior:
.. versionadded:: 3.19
``FlexiBLAS`` support.
+ .. versionadded:: 3.20
+ Elbrus Math Library support (``EML``, ``EML_mt``).
+
``BLA_F95``
if ``ON`` tries to find the BLAS95/LAPACK95 interfaces
@@ -515,6 +520,30 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE)
)
endif()
+ # Elbrus Math Library?
+ if(NOT LAPACK_LIBRARIES
+ AND (BLA_VENDOR MATCHES "EML" OR BLA_VENDOR STREQUAL "All"))
+
+ set(LAPACK_EML_LIB "eml")
+
+ # Check for OpenMP support, VIA BLA_VENDOR of eml_mt
+ if(BLA_VENDOR MATCHES "_mt")
+ set(LAPACK_EML_LIB "${LAPACK_EML_LIB}_mt")
+ endif()
+
+ check_lapack_libraries(
+ LAPACK_LIBRARIES
+ LAPACK
+ cheev
+ ""
+ "${LAPACK_EML_LIB}"
+ ""
+ ""
+ ""
+ "${BLAS_LIBRARIES}"
+ )
+ endif()
+
# Generic LAPACK library?
if(NOT LAPACK_LIBRARIES
AND (BLA_VENDOR STREQUAL "Generic"