feat(deterministic-parallel-assembly): step 2 — thread-count-determinism
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user