Mercurial > hg > segmenter-vamp-plugin
annotate armadillo-2.4.4/build_aux/cmake/Modules/ARMA_FindMKL.cmake @ 0:8b6102e2a9b0
Armadillo Library
author | maxzanoni76 <max.zanoni@eecs.qmul.ac.uk> |
---|---|
date | Wed, 11 Apr 2012 09:27:06 +0100 |
parents | |
children |
rev | line source |
---|---|
max@0 | 1 # - Find the MKL libraries (no includes) |
max@0 | 2 # This module defines |
max@0 | 3 # MKL_LIBRARIES, the libraries needed to use Intel's implementation of BLAS & LAPACK. |
max@0 | 4 # MKL_FOUND, If false, do not try to use MKL. |
max@0 | 5 |
max@0 | 6 SET(MKL_NAMES ${MKL_NAMES} mkl_lapack) |
max@0 | 7 SET(MKL_NAMES ${MKL_NAMES} mkl_intel_thread) |
max@0 | 8 SET(MKL_NAMES ${MKL_NAMES} mkl_core) |
max@0 | 9 SET(MKL_NAMES ${MKL_NAMES} guide) |
max@0 | 10 SET(MKL_NAMES ${MKL_NAMES} mkl) |
max@0 | 11 |
max@0 | 12 IF(CMAKE_SIZEOF_VOID_P EQUAL 8) |
max@0 | 13 SET(MKL_NAMES ${MKL_NAMES} mkl_intel_lp64) |
max@0 | 14 ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8) |
max@0 | 15 SET(MKL_NAMES ${MKL_NAMES} mkl_intel) |
max@0 | 16 ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8) |
max@0 | 17 |
max@0 | 18 FOREACH (MKL_NAME ${MKL_NAMES}) |
max@0 | 19 FIND_LIBRARY(${MKL_NAME}_LIBRARY |
max@0 | 20 NAMES ${MKL_NAME} |
max@0 | 21 PATHS /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /opt/intel/mkl/lib/lib64 /opt/intel/mkl/lib/ia32 /opt/intel/mkl/lib /opt/intel/*/mkl/lib/intel64 /opt/intel/*/mkl/lib/ia32/ /opt/mkl/*/lib/em64t /opt/mkl/*/lib/32 /opt/intel/mkl/*/lib/em64t /opt/intel/mkl/*/lib/32 |
max@0 | 22 ) |
max@0 | 23 |
max@0 | 24 SET(TMP_LIBRARY ${${MKL_NAME}_LIBRARY}) |
max@0 | 25 |
max@0 | 26 IF(TMP_LIBRARY) |
max@0 | 27 SET(MKL_LIBRARIES ${MKL_LIBRARIES} ${TMP_LIBRARY}) |
max@0 | 28 ENDIF(TMP_LIBRARY) |
max@0 | 29 ENDFOREACH(MKL_NAME) |
max@0 | 30 |
max@0 | 31 IF (MKL_LIBRARIES) |
max@0 | 32 SET(MKL_FOUND "YES") |
max@0 | 33 ELSE (MKL_LIBRARIES) |
max@0 | 34 SET(MKL_FOUND "NO") |
max@0 | 35 ENDIF (MKL_LIBRARIES) |
max@0 | 36 |
max@0 | 37 IF (MKL_FOUND) |
max@0 | 38 IF (NOT MKL_FIND_QUIETLY) |
max@0 | 39 MESSAGE(STATUS "Found MKL libraries: ${MKL_LIBRARIES}") |
max@0 | 40 ENDIF (NOT MKL_FIND_QUIETLY) |
max@0 | 41 ELSE (MKL_FOUND) |
max@0 | 42 IF (MKL_FIND_REQUIRED) |
max@0 | 43 MESSAGE(FATAL_ERROR "Could not find MKL libraries") |
max@0 | 44 ENDIF (MKL_FIND_REQUIRED) |
max@0 | 45 ENDIF (MKL_FOUND) |
max@0 | 46 |
max@0 | 47 # MARK_AS_ADVANCED(MKL_LIBRARY) |