소스 검색

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

Michael Hirsch, Ph.D 6 년 전
부모
커밋
be7b30f67e
2개의 변경된 파일22개의 추가작업 그리고 0개의 파일을 삭제
  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})