mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-22 04:44:25 +08:00
Add an option to test with external BLAS library
This commit is contained in:
parent
d06a753d10
commit
750af06362
@ -679,6 +679,10 @@ macro(ei_set_build_string)
|
|||||||
set(TMP_BUILD_STRING ${TMP_BUILD_STRING}-${LOCAL_COMPILER_FLAGS})
|
set(TMP_BUILD_STRING ${TMP_BUILD_STRING}-${LOCAL_COMPILER_FLAGS})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(EIGEN_TEST_EXTERNAL_BLAS)
|
||||||
|
set(TMP_BUILD_STRING ${TMP_BUILD_STRING}-external_blas)
|
||||||
|
endif()
|
||||||
|
|
||||||
ei_is_64bit_env(IS_64BIT_ENV)
|
ei_is_64bit_env(IS_64BIT_ENV)
|
||||||
if(NOT IS_64BIT_ENV)
|
if(NOT IS_64BIT_ENV)
|
||||||
set(TMP_BUILD_STRING ${TMP_BUILD_STRING}-32bit)
|
set(TMP_BUILD_STRING ${TMP_BUILD_STRING}-32bit)
|
||||||
|
@ -30,6 +30,15 @@ if(NOT EIGEN_Fortran_COMPILER_WORKS)
|
|||||||
find_package(LAPACK QUIET)
|
find_package(LAPACK QUIET)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# TODO do the same for EXTERNAL_LAPACK
|
||||||
|
option(EIGEN_TEST_EXTERNAL_BLAS "Use external BLAS library for testsuite" OFF)
|
||||||
|
if(EIGEN_TEST_EXTERNAL_BLAS)
|
||||||
|
find_package(BLAS REQUIRED)
|
||||||
|
message(STATUS "BLAS_COMPILER_FLAGS: ${BLAS_COMPILER_FLAGS}")
|
||||||
|
add_definitions("-DEIGEN_USE_BLAS") # is adding ${BLAS_COMPILER_FLAGS} necessary?
|
||||||
|
list(APPEND EXTERNAL_LIBS "${BLAS_LIBRARIES}")
|
||||||
|
endif(EIGEN_TEST_EXTERNAL_BLAS)
|
||||||
|
|
||||||
# configure blas/lapack (use Eigen's ones)
|
# configure blas/lapack (use Eigen's ones)
|
||||||
set(EIGEN_BLAS_LIBRARIES eigen_blas)
|
set(EIGEN_BLAS_LIBRARIES eigen_blas)
|
||||||
set(EIGEN_LAPACK_LIBRARIES eigen_lapack)
|
set(EIGEN_LAPACK_LIBRARIES eigen_lapack)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user