Browse Source

Find{BLAS,LAPACK}: Add note and example for using Intel MKL

Michael Hirsch, Ph.D 6 năm trước cách đây
mục cha
commit
be7b30f67e
2 tập tin đã thay đổi với 22 bổ sung0 xóa
  1. 11 0
      Modules/FindBLAS.cmake
  2. 11 0
      Modules/FindLAPACK.cmake

+ 11 - 0
Modules/FindBLAS.cmake

@@ -72,6 +72,17 @@ This module defines the following variables:
   to use BLAS95 interface
 ``BLAS95_FOUND``
   library implementing the BLAS95 interface is found
+
+.. note::
+
+  C or CXX must be enabled to use Intel MKL
+
+  For example, to use Intel MKL libraries and/or Intel compiler:
+
+  .. code-block:: cmake
+
+    set(BLA_VENDOR Intel10_64lp)
+    find_package(BLAS)
 #]=======================================================================]
 
 include(${CMAKE_CURRENT_LIST_DIR}/CheckFunctionExists.cmake)

+ 11 - 0
Modules/FindLAPACK.cmake

@@ -59,6 +59,17 @@ This module defines the following variables:
   to use LAPACK95
 ``LAPACK95_FOUND``
   library implementing the LAPACK95 interface is found
+
+.. note::
+
+  C or CXX must be enabled to use Intel MKL
+
+  For example, to use Intel MKL libraries and/or Intel compiler:
+
+  .. code-block:: cmake
+
+    set(BLA_VENDOR Intel10_64lp)
+    find_package(LAPACK)
 #]=======================================================================]
 
 set(_lapack_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})