feat(deterministic-parallel-assembly): step 2 — thread-count-determinism

This commit is contained in:
KOKO\Mimi
2026-08-01 23:36:17 +09:00
parent dc6baed8ed
commit 127286cf2b
4 changed files with 399 additions and 0 deletions
+36
View File
@@ -446,6 +446,42 @@ set_property(
${FESA_DEPENDENCY_RUNTIME_MODIFICATIONS}
)
add_executable(fesa_thread_count_determinism_tests
integration/assembly/thread_count_determinism_test.cpp
)
target_compile_features(
fesa_thread_count_determinism_tests PRIVATE cxx_std_20
)
target_compile_options(
fesa_thread_count_determinism_tests
PRIVATE
/W4
/permissive-
/EHsc
)
target_link_libraries(fesa_thread_count_determinism_tests
PRIVATE
fesa_core
GTest::gtest_main
)
add_test(
NAME ThreadCountDeterminism
COMMAND "$<TARGET_FILE:fesa_thread_count_determinism_tests>"
)
set_property(
TEST ThreadCountDeterminism
PROPERTY ENVIRONMENT "MKL_NUM_THREADS=1"
)
set_property(
TEST ThreadCountDeterminism
PROPERTY ENVIRONMENT_MODIFICATION
${FESA_DEPENDENCY_RUNTIME_MODIFICATIONS}
)
add_executable(fesa_constraint_tests
unit/constraints/essential_bc_test.cpp
)