Skip to content

ci: a scheduled physical-GPU run of the _hardware tests on main (RTX 3070 + WARP) #966

Open

Description

@roansystemlabs

Proposal: a scheduled physical-GPU run of the _hardware tests on main (RTX 3070 + WARP)

Both Windows jobs in .github/workflows/windows.yml run ctest … -E '_hardware$', so no test that needs a real adapter runs in CI. With the current merge rate, a hardware-only regression can sit on main until someone happens to run the suite locally — #958 tonight is one example, and #737, #369 and #448 are earlier ones.

We can run this on our side every day, on a quiet desktop:

  • update to the latest main, build the dev preset, run every _hardware test on an RTX 3070 (Ampere desktop, debug layer on) plus the _warp counterparts;
  • if everything is green, post nothing;
  • if a test turns red, rerun it twice to rule out load, then git bisect to the first bad commit and report it with the adapter, driver, command, and a negative control.

It is one NVIDIA desktop adapter, so an NVIDIA-only red will be labelled as such.

Two questions before we start:

  1. Would you prefer one tracking issue that we update, or a separate issue per regression?
  2. Do you want the bisect result in the issue text, or only the failing commit range?

We won't start until you say it's useful.

AI-assisted.

Activity

  1. R0Y00 commented on Nov 23, 2026

    @R0Y00
    Owner

    Yes, please run this as a contributor-side check of a clean main checkout. The results can go in this thread as a short index. When a failure matches an open report such as #958, please add the evidence there and link it here. For a distinct regression, include the known-good and first-bad commits if the bisect is conclusive. Otherwise give the observed range and any skipped or untestable revisions.

    Please include the exact commit, command, adapter, driver, Windows build, debug-layer state and pass/fail/skip for the affected test. Keep timeouts and deterministic output mismatches distinct. This is an independent hardware report; the current GitHub merge checks stay in place.

  2. roansystemlabs commented on Nov 23, 2026

    @roansystemlabs
    ContributorAuthor

    Index of contributor-side hardware runs on main. This first entry is the green baseline; from here on, only a run with a confirmed red gets an entry, with its evidence here or in the matching open report.

    2026-11-23 · main at 23d2e93 (#974 merge) · baseline

    • NVIDIA GeForce RTX 3070 (10de:2484), driver 621.01 (UMD 32.0.16.2101), and WARP 10.0.26100.9818; Windows 11 25H2, build 26200.9974
    • D3D12 debug layer enabled (the renderer reports debug_layer=enabled): every debug_errors= counter printed was 0; 10 debug_warnings in total, from compute_to_pixel, pixel_aot_buffer_color and pixel_aot_attribute on both adapters
    • Clean detached checkout of main, dev preset (Debug), built as in the Windows CI job (out/pe-env, tools/dev.ps1, pinned SPIR-V tools, X2W_REQUIRE_SPIRV_TOOLS=1)
    • ctest --preset dev --no-tests=error -R "(_hardware|_warp)$" --timeout 600, run serially; --timeout only applies to tests without their own TIMEOUT. Any red is rerun twice and reported as timeout, deterministic mismatch (same output 3/3), varying failure, crash or flaky, never lumped together.
    tests pass fail (same output 3/3) fail (output varies) timeout crash skip
    _hardware (RTX 3070) 135 133 0 0 0 0 2
    _warp 143 140 0 0 0 0 3

    No red. Skips:

    • Adapter capability: bvh_wave64_hardware and bvh_wave64_warp need 64-lane waves (this adapter reports 32..32, WARP 4..4); wave_shuffle_warp needs a forced wave width (16/32/64) that WARP does not support; its native-width (4) checks printed no errors before the skip.
    • Environment: bc7_mode6_multiblock_hardware and bc7_mode6_multiblock_warp need BCPACK_REFERENCE_TOOLS, which this machine does not have, so they are not testable here.

    pixel_aot_comparisons_hardware and _warp pass at this commit, consistent with the NVIDIA/WARP data in #958.

    Not covered: AMD and Intel adapters, other NVIDIA generations or drivers, and Release builds.

    AI-assisted.

  3. thepatrickworld commented on Nov 25, 2026

    @thepatrickworld
    Contributor

    2026-11-25 · main at b976e8bc · AMD desktop, red

    • AMD Radeon RX 9070 XT (1002:7550), driver 32.0.32029.2010; Windows 11 25H2, build 26200.9974
    • The D3D12 debug layer is unavailable on this machine — the binaries print debug_layer=unavailable and D3D12GetDebugInterface returns DXGI_ERROR_SDK_COMPONENT_MISSING — so no debug_errors= counters, and four tests skip on it
    • Checkout of main at b976e8bc, dev preset (Debug). One prerequisite worth writing down: the startup_* tests are only registered when INTAKE_PYTHON points at a real interpreter, so the configure needs -DINTAKE_PYTHON=…/pe-env/Scripts/python.exe; without it ctest selects a much smaller set and the sweep looks green for the wrong reason
    • ctest --preset dev --no-tests=error -R "_hardware$", run serially from the repo root; all nine reds rerun three times, and their output compared with heap addresses, temp paths and durations normalised
    tests pass fail (same output 3/3) fail (output varies) timeout crash skip
    _hardware (RX 9070 XT) 491 469 4 0 0 5 13

    Crash (5, all 0xc0000409, 3/3). startup_indirect_translated_indexed_hardware, startup_indirect_translated_indexed_upload_hardware, startup_indirect_translated_indexed_rect_hardware, startup_indirect_translated_indexed_alias_hardware, startup_indirect_rectlist_hardware.

    The Windows Event Log on this machine held ten entries for startup_indirect_draw_indexed.exe, from three separate batches, every one identical: faulting module amdxc64.dll, fault offset 0x35f2a19, driver 32.0.32029.2010.

    Each of them prints its full check sequence (~13 KB) and stops on the same line as the WARP run of the same binary:

    a guest root call without a desktop root retains native compute arguments: 4/8 non-clear pixels, argument guards intact
    

    then dies. warp on the same binary exits 0, and hardware translated-indexed-alias-off exits 0 too; but the fault is reachable through -upload, -rect and rectlist as well, so disabling the alias route does not avoid it. This reproduces on main at b976e8bc.

    Fail, same output 3/3 (4).

    Skips (13), by cause.

    • D3D12 debug layer unavailable: startup_command_signature_hardware, startup_draw_depth_target_debug_hardware, startup_root_heap_hardware, pixel_batch_debug_hardware
    • Descriptor ring already large enough for the case: startup_view_heap_hardware, startup_logical_view_hardware
    • SPIRV-Cross without MinLod (tools/setup-spirv-tools.ps1): spirv_minlod_hardware, spirv_minlod_exact_hardware, spirv_minlod_levels_hardware, spirv_minlod_fractional_hardware
    • Wave lane range: wave_startup_4_hardware — SM 6.6 and WaveOps are both satisfied here (highest_shader_model=0x66, wave_ops=1); what blocks it is the reported lane range (min 32 / max 64) against the forced width 4
    • Toolchain: mesh_two_exits_hardware needs LLVM 15 with AMDGPU
    • Environment: bc7_mode6_multiblock_hardware needs BCPACK_REFERENCE_TOOLS

    So on AMD the read is: the two failures in #1148 and the one in #958 reproduce, compute_store_aot_mac_f32 is red here as well, and five tests die inside the vendor compiler after passing their own checks. If a scheduled run is meant to separate "this commit broke something" from "this adapter cannot run this test", those five are the case where the distinction matters.

    Not covered here: NVIDIA or Intel adapters, and Release (dev only). Adding a release row on the same commit is a single sweep if you want it.

    AI-assisted.

  4. thepatrickworld commented on Nov 25, 2026

    @thepatrickworld
    Contributor

    Correction to the entry above (the AMD one). The clause "five tests die inside the vendor compiler after passing their own checks" was my read of the faulting module, and a full dump shows it is wrong.

    The faulting module is amdxc64.dll, so the guess was reasonable, but the call does not come from a draw or a compile. cdb on a LocalDumps dump (DumpType=2) gives:

    amdxc64                    (faulting instruction at 0x42022a19)
    D3D12Core!CPipelineState::FinalRelease
    D3D12Core!CLayeredObject<CPipelineState>::Release
    d3d12_xs!ComPtr<ID3D12PipelineState>::InternalRelease
    d3d12_xs!IndexedValidationPipeline::~IndexedValidationPipeline
    d3d12_xs!...::`dynamic atexit destructor for 'validation''
    d3d12_xs!_execute_onexit_table
    

    (0x42022a19 − base 0x3ea30000 = 0x35f2a19, the offset those ten Application-log entries pointed at.)

    So the crash is at process exit, when the two statics that own pipeline states — src/startup_stubs/d3d12_draw.inl:1604 and src/startup_stubs/rect_indirect_args.h:153 — are destroyed during CRT teardown, and FinalRelease reaches the UMD after it has been detached. Removing each static's destructor makes its own test exit 0; a control run that changes only the other site still crashes. Reproduced on main at b976e8bc, one run per row.

    That changes the classification: these five are not "this adapter cannot run this test". They are a lifetime bug in the shim that only the UMD punishes — WARP is clean because amdxc64 is never loaded there, not because the test is fine on WARP.

    Full stack, the two experiments and a direction for a fix: #2572.

    The rest of the table stands: on main at b976e8bc, 491 tests, 469 pass, 4 deterministic failures, 5 crashes, 13 skips.

    AI-assisted.

  5. thepatrickworld commented on Nov 26, 2026

    @thepatrickworld
    Contributor

    A full physical run of the _hardware set on main: 689 tests, 3 red, and all three are already in the tracker. Ran it because this proposal is the right one, and because the cost turns out to be small.

    Machine: RX 9070 XT (gfx1201, vendor 1002 device 7550), driver 32.0.32029.2010, Windows 11 25H2 (10.0.26200.9974), D3D12 debug layer not installed (debug_layer=unavailable in every hardware log), dev preset, -j4, 300 s per-test timeout, tree forced to origin/main at 5a41adba (ARBRE_PROPRE).

    99% tests passed, 3 tests failed out of 689
    Total Test time (real) = 627.26 sec
    

    JUnit (sw_all.xml) reports tests=689 failures=3 skipped=14 disabled=0, and the sweep's own clock reads 15:20:45 → 15:31:12. So 689 − 14 − 3 = 672 passed, 14 skipped, 3 failed, 10 min 27 s of wall clock.

    The three reds

    Rerun of exactly those three, same preset and same build (no rebuild in between): 0% tests passed, 3 tests failed out of 3 both times, identical counters and the identical AssertionError line, only the timings and the temp directory names differ. 6/6 in the two reruns, 9/9 with the sweep, so nothing intermittent in this session.

    What that means for this proposal

    Every red in this run maps to one of those three issues: no failure outside the tracker at 5a41adba, on this adapter and this preset. That is the argument for doing it — the board is small and stable enough that a nightly job nobody triages is not the risk; the risk is the opposite, that a fourth red appears someday and no one sees it. 627 s with -j4 is cheap enough for a nightly.

    The 14 skips, and why they matter to the same decision

    A scheduled run reports skips as passes (99% tests passed counts them), so they have to be named or the coverage claim is overstated. The -V capture gives a reason for 13 of the 14:

    • 4 × D3D12 debug layer not installed: startup_command_signature and startup_root_heap print no debug layer: skipped; startup_draw_depth_target_debug prints the D3D12 debug layer is not installed: the debug-message check cannot run (skip); pixel_batch_debug prints skip: pixel batch control requires the D3D12 debug layer.
    • 4 × SPIRV-Cross lacks MinLod (spirv_minlod*): skip: SPIRV-Cross lacks MinLod support; run tools/setup-spirv-tools.ps1.
    • 1 × LLVM 15 with AMDGPU (mesh_two_exits): skip: two-exit mesh draw requires LLVM 15 with AMDGPU.
    • 1 × SM 6.6 with a wave lane range containing the forced width (wave_startup_4): skip: wave startup variant requires SM 6.6, WaveOps and a wave lane range containing the forced width.
    • 1 × reference tools not configured (bc7_mode6_multiblock): Set BCPACK_REFERENCE_TOOLS to the pinned Leonida tools directory.
    • 2 × the shortcut is not needed on this adapter: adapter accepts 1245184 descriptors directly; the shortcut is not needed here (startup_view_heap) and … the logical view tables are not needed here (startup_logical_view).

    The fourteenth, startup_sharedexp_target, prints only debug_layer=unavailable and the support bits, no skip line — I am not guessing at its cause. The debug-layer and SPIRV-Cross groups (8 tests) would execute on a runner that has them, so a nightly would cover more than I can reach here.

    Limits

    One adapter, one driver, one preset, one session. Skips are environment-specific and a different runner will produce a different list. Nothing here says anything about the RTX 3070 + WARP this proposal targets, nor about RDNA 2/3 or NVIDIA, and pr and release are untested. The registered test commands run tests/ from x2w-main through the Python venv at x2w-pr641/out/pe-env (INTAKE_PYTHON) — that is how the tree is configured, not a different checkout of the tests.

    I can rerun the whole set at any sha on request — say the word and I will post the same table for it.

    AI-assisted.

  6. roansystemlabs commented on Nov 27, 2026

    @roansystemlabs
    ContributorAuthor

    I'm on this: running the full native_*_hardware family on current main (post-#3039) on an RTX 3070 (SM 6.6 wave32), Debug and Release; will post only the reds with a bisect.

    AI-assisted.

  7. roansystemlabs commented on Nov 28, 2026

    @roansystemlabs
    ContributorAuthor

    2026-11-28 · main at ad306425 (#2926, after #3039) · native_*_hardware family, Debug and Release · 1 red, already reported

    • NVIDIA GeForce RTX 3070 (10de:2484), driver 621.01 (UMD 32.0.16.2101); Windows 11 25H2, build 26200.9974. The adapter exposes shader model 6.6 with 32-lane waves, so none of the 83 tests skipped (no exit 77).
    • Clean detached checkout, built as in the Windows CI job (out/pe-env, tools/dev.ps1, pinned SPIR-V tools, X2W_REQUIRE_SPIRV_TOOLS=1), dev (Debug) and release (/O2) presets.
    • ctest --preset <dev|release> --no-tests=error -R '^native_.*_hardware$', serial, on a quiet machine.
    preset tests pass fail skip
    dev (Debug) 83 82 1 0
    release (/O2) 83 82 1 0

    Red: native_rtv_variant_hardware, Debug and Release, 3/3 runs each: AssertionError at tests/native_rtv_variant_check.py:291, because the cache holds an extra revision.txt. native_rtv_variant_warp fails the same way, so it is not adapter-specific.

    The other 82 pass in both presets, including native_cvt_pk_u8_hardware and native_sdwa_f16_hardware from #3052.

    Not covered: AMD and Intel adapters, other NVIDIA generations or drivers, and the rest of the _warp and non-native _hardware tests.

    AI-assisted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions