diff options
author | Brad King <brad.king@kitware.com> | 2021-06-11 12:41:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-11 12:41:25 (GMT) |
commit | 5bf16514525eabc179b826d3caa5114afb51d9ad (patch) | |
tree | 267ba47fc56ee58e84b441ad63c73e66ea10bff3 /Modules/FindLAPACK.cmake | |
parent | 8585a12bd94241a6527cee22e840c430a45fead3 (diff) | |
download | CMake-5bf16514525eabc179b826d3caa5114afb51d9ad.zip CMake-5bf16514525eabc179b826d3caa5114afb51d9ad.tar.gz CMake-5bf16514525eabc179b826d3caa5114afb51d9ad.tar.bz2 |
Find{BLAS,LAPACK}: Revise and extend Intel MKL usage documentation
Fixes: #22295
Diffstat (limited to 'Modules/FindLAPACK.cmake')
-rw-r--r-- | Modules/FindLAPACK.cmake | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/Modules/FindLAPACK.cmake b/Modules/FindLAPACK.cmake index 740dc28..725a70c 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`` |