summaryrefslogtreecommitdiff
path: root/Modules/FindLAPACK.cmake
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2021-05-05 09:33:39 -0400
committerRobert Maynard <rmaynard@nvidia.com>2021-05-05 12:04:32 -0400
commit2c9e623e3194519da0714c77cba48592d6658cda (patch)
tree162c62ecbdb0bcd52ed262a1df9c393e4e684ada /Modules/FindLAPACK.cmake
parentde0c8b4d98d71280abd585e17f6bd7b20d4de959 (diff)
downloadcmake-2c9e623e3194519da0714c77cba48592d6658cda.tar.gz
Find{BLAS,LAPACK}: Add support for the NVHPC LAPACK library
Diffstat (limited to 'Modules/FindLAPACK.cmake')
-rw-r--r--Modules/FindLAPACK.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake
index ab6214b48d..fa2300d6b0 100644
--- a/Modules/FindLAPACK.cmake
+++ b/Modules/FindLAPACK.cmake
@@ -47,6 +47,7 @@ The following variables may be set to influence this module's behavior:
* ``EML_mt``
* ``Fujitsu_SSL2`` (Fujitsu serial blas / lapack)
* ``Fujitsu_SSL2BLAMP`` (Fujitsu parallel blas / lapack)
+ * ``NVHPC``
* ``Generic``
.. versionadded:: 3.6
@@ -72,6 +73,9 @@ The following variables may be set to influence this module's behavior:
Elbrus Math Library support (``EML``, ``EML_mt``).
Fujitsu SSL2 Library support (``Fujitsu_SSL2``, ``Fujitsu_SSL2BLAMP``)
+ .. versionadded:: 3.21
+ NVHPC support
+
``BLA_F95``
if ``ON`` tries to find the BLAS95/LAPACK95 interfaces
@@ -615,6 +619,22 @@ if(NOT LAPACK_NOT_FOUND_MESSAGE)
unset(_ssl2_suffix)
endif()
+ # NVHPC Library?
+ if(NOT LAPACK_LIBRARIES
+ AND BLA_VENDOR MATCHES "NVHPC" OR BLA_VENDOR STREQUAL "All")
+ check_lapack_libraries(
+ LAPACK_LIBRARIES
+ LAPACK
+ cheev
+ ""
+ "lapack"
+ "-fortranlibs"
+ ""
+ ""
+ "${BLAS_LIBRARIES}"
+ )
+ endif()
+
# Generic LAPACK library?
if(NOT LAPACK_LIBRARIES
AND (BLA_VENDOR STREQUAL "Generic"