From 6d38c7626923f20c7a8f9225b000da89bc2da5cf Mon Sep 17 00:00:00 2001 From: Jason Knight Date: Wed, 28 Aug 2019 15:40:18 -0700 Subject: [PATCH] Add another MKL name alias for MKL Installed through pypi --- cmake/config.cmake | 1 + cmake/modules/contrib/BLAS.cmake | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/config.cmake b/cmake/config.cmake index a8ed966f9c2d..2a61099dbbf6 100644 --- a/cmake/config.cmake +++ b/cmake/config.cmake @@ -109,6 +109,7 @@ set(USE_BLAS none) # /path/to/mkl: mkl root path when use mkl blas library # set(USE_MKL_PATH /opt/intel/mkl) for UNIX # set(USE_MKL_PATH ../IntelSWTools/compilers_and_libraries_2018/windows/mkl) for WIN32 +# set(USE_MKL_PATH ) if using `pip install mkl` set(USE_MKL_PATH none) # Whether use contrib.random in runtime diff --git a/cmake/modules/contrib/BLAS.cmake b/cmake/modules/contrib/BLAS.cmake index a47f83771d37..90a2f9c911a4 100644 --- a/cmake/modules/contrib/BLAS.cmake +++ b/cmake/modules/contrib/BLAS.cmake @@ -28,7 +28,7 @@ elseif(USE_BLAS STREQUAL "mkl") set(USE_MKL_PATH /opt/intel/mkl) endif() if(APPLE) - find_library(BLAS_LIBRARY NAMES mklml HINTS ${USE_MKL_PATH}/lib/ ${USE_MKL_PATH}/lib/intel64) + find_library(BLAS_LIBRARY NAMES mklml mkl_rt HINTS ${USE_MKL_PATH}/lib/ ${USE_MKL_PATH}/lib/intel64) elseif(UNIX) find_library(BLAS_LIBRARY NAMES mkl_rt mklml_gnu HINTS ${USE_MKL_PATH}/lib/ ${USE_MKL_PATH}/lib/intel64) endif()