build: switch oneMKL threading layer to TBB

This commit is contained in:
KOKO\Mimi
2026-10-20 22:30:47 +09:00
parent 649ffe4085
commit 3ecb8655a2
6 changed files with 27 additions and 23 deletions
+9
View File
@@ -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.