summaryrefslogtreecommitdiff
path: root/Modules/FindLAPACK.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-11 08:41:25 -0400
committerBrad King <brad.king@kitware.com>2021-06-11 08:41:25 -0400
commit5bf16514525eabc179b826d3caa5114afb51d9ad (patch)
tree267ba47fc56ee58e84b441ad63c73e66ea10bff3 /Modules/FindLAPACK.cmake
parent8585a12bd94241a6527cee22e840c430a45fead3 (diff)
downloadcmake-5bf16514525eabc179b826d3caa5114afb51d9ad.tar.gz
Find{BLAS,LAPACK}: Revise and extend Intel MKL usage documentation
Fixes: #22295
Diffstat (limited to 'Modules/FindLAPACK.cmake')
-rw-r--r--Modules/FindLAPACK.cmake19
1 files changed, 13 insertions, 6 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake
index 740dc28feb..725a70cefc 100644
--- a/Modules/FindLAPACK.cmake
+++ b/Modules/FindLAPACK.cmake
@@ -63,16 +63,23 @@ This module defines the following variables:
``LAPACK95_FOUND``
library implementing the LAPACK95 interface is found
-.. note::
+Intel MKL
+^^^^^^^^^
- C or CXX must be enabled to use Intel Math Kernel Library (MKL).
+To use the Intel MKL implementation of LAPACK, a project must enable at least
+one of the ``C`` or ``CXX`` languages. Set ``BLA_VENDOR`` to an Intel MKL
+variant either on the command-line as ``-DBLA_VENDOR=Intel10_64lp`` or in
+project code:
- For example, to use Intel MKL libraries and/or Intel compiler:
+.. code-block:: cmake
- .. code-block:: cmake
+ set(BLA_VENDOR Intel10_64lp)
+ find_package(LAPACK)
+
+In order to build a project using Intel MKL, and end user must first
+establish an Intel MKL environment. See the :module:`FindBLAS` module
+section on :ref:`Intel MKL` for details.
- set(BLA_VENDOR Intel10_64lp)
- find_package(LAPACK)
#]=======================================================================]
# The approach follows that of the ``autoconf`` macro file, ``acx_lapack.m4``