Skip to content
Snippets Groups Projects
Commit fb7ca870 authored by Lars Bilke's avatar Lars Bilke Committed by Dmitri Naumov
Browse files

[cmake] Added option OGS_EIGEN_USE_MKL.

Adds define EIGEN_USE_MKL_ALL, see
https://eigen.tuxfamily.org/dox/TopicUsingIntelMKL.html.
parent bdb38793
No related branches found
No related tags found
No related merge requests found
...@@ -154,6 +154,10 @@ else() ...@@ -154,6 +154,10 @@ else()
${OGS_EIGEN_DYNAMIC_SHAPE_MATRICES} ${OGS_EIGEN_DYNAMIC_SHAPE_MATRICES}
) )
endif() endif()
cmake_dependent_option(
OGS_EIGEN_USE_MKL "Defines EIGEN_USE_MKL_ALL." OFF "OGS_USE_MKL" OFF
)
# Eigen End # Eigen End
# Debug # Debug
......
...@@ -40,10 +40,10 @@ if(OGS_USE_LIS) ...@@ -40,10 +40,10 @@ if(OGS_USE_LIS)
target_include_directories(MathLib PUBLIC ${LIS_INCLUDE_DIR}) target_include_directories(MathLib PUBLIC ${LIS_INCLUDE_DIR})
endif() endif()
if(OGS_USE_MKL) if(OGS_USE_MKL)
target_include_directories(MathLib PRIVATE ${MKL_INCLUDE_DIR}) target_include_directories(MathLib PUBLIC ${MKL_INCLUDE_DIR})
target_link_libraries(MathLib PRIVATE ${MKL_LIBRARIES}) target_link_libraries(MathLib PUBLIC ${MKL_LIBRARIES})
target_link_options(MathLib PUBLIC ${MKL_LINK_FLAGS}) target_link_options(MathLib PUBLIC ${MKL_LINK_FLAGS})
target_compile_definitions(MathLib PRIVATE ${MKL_DEFINITIONS}) target_compile_definitions(MathLib PUBLIC ${MKL_DEFINITIONS})
endif() endif()
target_compile_definitions( target_compile_definitions(
...@@ -57,5 +57,6 @@ target_compile_definitions( ...@@ -57,5 +57,6 @@ target_compile_definitions(
$<$<BOOL:${OGS_USE_EIGEN_UNSUPPORTED}>:USE_EIGEN_UNSUPPORTED> $<$<BOOL:${OGS_USE_EIGEN_UNSUPPORTED}>:USE_EIGEN_UNSUPPORTED>
$<$<BOOL:${OGS_EIGEN_INITIALIZE_MATRICES_BY_NAN}>:EIGEN_INITIALIZE_MATRICES_BY_NAN> $<$<BOOL:${OGS_EIGEN_INITIALIZE_MATRICES_BY_NAN}>:EIGEN_INITIALIZE_MATRICES_BY_NAN>
$<$<CONFIG:Debug>:EIGEN_INITIALIZE_MATRICES_BY_NAN> $<$<CONFIG:Debug>:EIGEN_INITIALIZE_MATRICES_BY_NAN>
$<$<AND:$<BOOL:${OGS_USE_MKL}>,$<BOOL:${OGS_EIGEN_USE_MKL}>>:EIGEN_USE_MKL_ALL>
PRIVATE $<$<BOOL:${OGS_USE_MKL}>:USE_MKL> PRIVATE $<$<BOOL:${OGS_USE_MKL}>:USE_MKL>
) )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment