|
|
|
@ -33,7 +33,6 @@ find_library(MKL_INTEL_LP64 NAMES mkl_intel_lp64 PATHS
|
|
|
|
|
${MKL_ROOT}/lib
|
|
|
|
|
${MKL_ROOT}/lib/intel64)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(MKL_INC_DIR AND MKL_CORE_LIB AND MKL_SEQUENTIAL_LIB AND MKL_INTEL_LP64)
|
|
|
|
|
set(CBLAS_PROVIDER MKL)
|
|
|
|
|
set(CBLAS_INC_DIR ${MKL_INC_DIR})
|
|
|
|
@ -41,6 +40,7 @@ if(MKL_INC_DIR AND MKL_CORE_LIB AND MKL_SEQUENTIAL_LIB AND MKL_INTEL_LP64)
|
|
|
|
|
${MKL_SEQUENTIAL_LIB}
|
|
|
|
|
${MKL_CORE_LIB})
|
|
|
|
|
add_definitions(-DPADDLE_USE_MKL)
|
|
|
|
|
add_definitions(-DLAPACK_FOUND)
|
|
|
|
|
message(STATUS "Found MKL (include: ${CBLAS_INC_DIR}, library: ${CBLAS_LIBRARIES})")
|
|
|
|
|
set(CBLAS_FOUND ON)
|
|
|
|
|
if(${MKL_LAPACK_INC_DIR})
|
|
|
|
@ -76,6 +76,7 @@ if(ATLAS_INC_DIR AND ATLAS_CBLAS_LIB AND ATLAS_LIB AND NOT CBLAS_FOUND)
|
|
|
|
|
set(CBLAS_INC_DIR ${ATLAS_INC_DIR})
|
|
|
|
|
set(CBLAS_LIBRARIES ${ATLAS_LIB} ${ATLAS_CBLAS_LIB})
|
|
|
|
|
add_definitions(-DPADDLE_USE_ATLAS)
|
|
|
|
|
add_definitions(-DLAPACK_FOUND)
|
|
|
|
|
message(STATUS "Found ATLAS (include: ${CBLAS_INC_DIR}, library: ${CBLAS_LIBRARIES})")
|
|
|
|
|
set(CBLAS_FOUND ON)
|
|
|
|
|
if(ATLAS_CLAPACK_INC_DIR)
|
|
|
|
@ -110,6 +111,7 @@ if(OPENBLAS_INC_DIR AND OPENBLAS_LIB)
|
|
|
|
|
set(CBLAS_PROVIDER OPENBLAS)
|
|
|
|
|
set(CBLAS_INC_DIR ${OPENBLAS_INC_DIR})
|
|
|
|
|
set(CBLAS_LIBRARIES ${OPENBLAS_LIB})
|
|
|
|
|
add_definitions(-DLAPACK_FOUND)
|
|
|
|
|
message(STATUS "Found OpenBLAS (include: ${CBLAS_INC_DIR}, library: ${CBLAS_LIBRARIES})")
|
|
|
|
|
set(CBLAS_FOUND ON)
|
|
|
|
|
if(OPENBLAS_LAPACKE_INC_DIR)
|
|
|
|
|