annotate armadillo-3.900.4/build_aux/cmake/Modules/ARMA_FindMKL.cmake @ 49:1ec0e2823891

Switch to using subrepo copies of qm-dsp, nnls-chroma, vamp-plugin-sdk; update Armadillo version; assume build without external BLAS/LAPACK
author Chris Cannam
date Thu, 13 Jun 2013 10:25:24 +0100
parents
children
rev   line source
Chris@49 1 # - Find the MKL libraries (no includes)
Chris@49 2 # This module defines
Chris@49 3 # MKL_LIBRARIES, the libraries needed to use Intel's implementation of BLAS & LAPACK.
Chris@49 4 # MKL_FOUND, If false, do not try to use MKL.
Chris@49 5
Chris@49 6 SET(MKL_NAMES ${MKL_NAMES} mkl_lapack)
Chris@49 7 SET(MKL_NAMES ${MKL_NAMES} mkl_intel_thread)
Chris@49 8 SET(MKL_NAMES ${MKL_NAMES} mkl_core)
Chris@49 9 SET(MKL_NAMES ${MKL_NAMES} guide)
Chris@49 10 SET(MKL_NAMES ${MKL_NAMES} mkl)
Chris@49 11 SET(MKL_NAMES ${MKL_NAMES} iomp5)
Chris@49 12 #SET(MKL_NAMES ${MKL_NAMES} pthread)
Chris@49 13
Chris@49 14 IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
Chris@49 15 SET(MKL_NAMES ${MKL_NAMES} mkl_intel_lp64)
Chris@49 16 ELSE(CMAKE_SIZEOF_VOID_P EQUAL 8)
Chris@49 17 SET(MKL_NAMES ${MKL_NAMES} mkl_intel)
Chris@49 18 ENDIF(CMAKE_SIZEOF_VOID_P EQUAL 8)
Chris@49 19
Chris@49 20 FOREACH (MKL_NAME ${MKL_NAMES})
Chris@49 21 FIND_LIBRARY(${MKL_NAME}_LIBRARY
Chris@49 22 NAMES ${MKL_NAME}
Chris@49 23 PATHS /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib /opt/intel/lib/intel64 /opt/intel/lib/ia32 /opt/intel/mkl/lib/lib64 /opt/intel/mkl/lib/intel64 /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
Chris@49 24 )
Chris@49 25
Chris@49 26 SET(TMP_LIBRARY ${${MKL_NAME}_LIBRARY})
Chris@49 27
Chris@49 28 IF(TMP_LIBRARY)
Chris@49 29 SET(MKL_LIBRARIES ${MKL_LIBRARIES} ${TMP_LIBRARY})
Chris@49 30 ENDIF(TMP_LIBRARY)
Chris@49 31 ENDFOREACH(MKL_NAME)
Chris@49 32
Chris@49 33 IF (MKL_LIBRARIES)
Chris@49 34 SET(MKL_FOUND "YES")
Chris@49 35 ELSE (MKL_LIBRARIES)
Chris@49 36 SET(MKL_FOUND "NO")
Chris@49 37 ENDIF (MKL_LIBRARIES)
Chris@49 38
Chris@49 39 IF (MKL_FOUND)
Chris@49 40 IF (NOT MKL_FIND_QUIETLY)
Chris@49 41 MESSAGE(STATUS "Found MKL libraries: ${MKL_LIBRARIES}")
Chris@49 42 ENDIF (NOT MKL_FIND_QUIETLY)
Chris@49 43 ELSE (MKL_FOUND)
Chris@49 44 IF (MKL_FIND_REQUIRED)
Chris@49 45 MESSAGE(FATAL_ERROR "Could not find MKL libraries")
Chris@49 46 ENDIF (MKL_FIND_REQUIRED)
Chris@49 47 ENDIF (MKL_FOUND)
Chris@49 48
Chris@49 49 # MARK_AS_ADVANCED(MKL_LIBRARY)