build: switch oneMKL threading layer to TBB
This commit is contained in:
@@ -44,6 +44,15 @@ if(NOT TARGET TBB::tbb)
|
||||
message(FATAL_ERROR "The oneTBB CONFIG package did not define TBB::tbb")
|
||||
endif()
|
||||
|
||||
if(WIN32)
|
||||
set(FESA_MKL_THREAD_TARGET MKL::mkl_tbb_thread)
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
set(FESA_MKL_THREAD_TARGET MKL::mkl_tbb_threadd)
|
||||
endif()
|
||||
# HDF5 requires the Intel math runtime independently of MKL threading.
|
||||
set(FESA_INTEL_MATH_RUNTIME "$ENV{FESA_OMP_ROOT}/bin/libmmd.dll")
|
||||
endif()
|
||||
|
||||
# Prefer the packaged shared C runtime when both variants exist. The Windows
|
||||
# static archive may carry compiler-runtime requirements that are not part of
|
||||
# the HDF5 imported target's transitive link interface.
|
||||
|
||||
Reference in New Issue
Block a user