From c04c27f8d29064474984d90af766233de2c5f744 Mon Sep 17 00:00:00 2001 From: tedin7 Date: Tue, 24 Nov 2026 19:41:54 +0100 Subject: [PATCH 1/2] build: write the variants of each x87 fixture in one Python process Each of the 21 x87 fixture groups started one Python process per variant (166 in all) and every process loaded the interpreter, the PE reader and the lifter again. tools/emit_variants.py now writes all variants of one fixture from one process, through the same emit() the script runs from its command line. Output paths, dependencies and target names are unchanged; x2w_emit_variants() creates one command with every variant file as OUTPUT. tests/emit_variants_check.py checks the driver against one process per variant. --- CMakeLists.txt | 284 +++++++++++++++++------------------ tests/emit_variants_check.py | 75 +++++++++ tools/emit_variants.py | 41 +++++ 3 files changed, 253 insertions(+), 147 deletions(-) create mode 100644 tests/emit_variants_check.py create mode 100644 tools/emit_variants.py diff --git a/CMakeLists.txt b/CMakeLists.txt index d625fa34c6..cc9e703538 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2332,6 +2332,8 @@ if(EXISTS "${INTAKE_PYTHON}") set_tests_properties(xmem_shim_page_runs PROPERTIES TIMEOUT 300) add_test(NAME docs_links COMMAND "${INTAKE_PYTHON}" -B "${CMAKE_SOURCE_DIR}/tests/docs_links_check.py") + add_test(NAME emit_variants COMMAND "${INTAKE_PYTHON}" -B + "${CMAKE_SOURCE_DIR}/tests/emit_variants_check.py") # Compile-only: outcome classification and GVN pass shares, no wall-time threshold (#775). add_test(NAME dxc_compile_time_gvn COMMAND "${INTAKE_PYTHON}" -B "${CMAKE_SOURCE_DIR}/tests/dxc_compile_time_check.py" "${DXC_EXECUTABLE}") @@ -2382,6 +2384,22 @@ if(EXISTS "${INTAKE_PYTHON}") set_target_properties(${image} PROPERTIES LINKER_LANGUAGE CXX) target_link_options(${image} PRIVATE /NOENTRY /NODEFAULTLIB /INCREMENTAL:NO) endfunction() + # One Python process writes every variant of a fixture (tests/cpu/