Tests: the UMA import check test skips where D3D12 has no heaps over process memory #1024
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1024
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1024"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@vakaobr on GitHub · 2026-11-24 10:27 UTC · original
vakaobr:tests/uma-import-check-skip→main· +12 −2 · 1 files · 1 commits · opengpu_uma_import_check_at_initfails on the Macs in #258 (CrossOver + D3DMetal) with an empty message. D3DMetal answers E_NOTIMPL (0x80004001) forOpenExistingHeapFromAddress, soopen_umarecords it inuma_errorand returns beforecheck_uma_import: the check's result stays empty ("not run"), also withXCL_UMA_CHECK=0. The runtime is right (it reports the windows as unavailable inuma_error); the test assumed host-memory heaps. Part of #258.What is in it
crates/xcl/src/gpu/recomp/tests.rs: whenuma_erroris E_NOTIMPL fromOpenExistingHeapFromAddress, the test asserts the check did not report "ok" and skips withno GPU UMA. Any other UMA error, and every host that opens the windows, gets the unchanged assertion, whose message now includesuma_error.Tested
x86_64-pc-windows-gnu(mingw-w64 GCC 16.2.0), debug, DXC 1.9.2609.<lib test exe> --exact <test> --test-threads=1 --nocapture): the 10 tests with "uma" in their names plusgpu_sparse_vram_descriptors_buffers_and_xmem.main9aec53d: 8 passed, 3 failed (gpu_uma_import_check_at_init,gpu_memory_windows_reject_out_of_uma_aliasing,gpu_sparse_vram_descriptors_buffers_and_xmem).699975b(onmain6efdabc): 9 passed, of which 1 isSKIPPED gpu_uma_import_check_at_init: no GPU UMA, and 2 failed (gpu_memory_windows_reject_out_of_uma_aliasing,gpu_sparse_vram_descriptors_buffers_and_xmem: same cause, unchanged messages, not in this PR).real.rson9aec53d, each failing the test as it should: the check reporting that the GPU does not see CPU writes (#175),OpenExistingHeapFromAddressfailing with 0x8007000E instead of E_NOTIMPL, and the check claiming "ok" with no window imported.XCL_REQUIRE_GPU=wave64turns the skip into a failure.9aec53d: the test still fails the same way, because the check is never reached on this host.main384f7f7: the test passes with the check reportingok, 1 window(s), so the skip is not taken (@DavidM1911, https://github.com/ivall/xcl/pull/1024#issuecomment-7130111307); a second M5 Pro (x86_64-pc-windows-gnullvm, release): fails on6efdabcwith an empty message and skips at this head (@mikebuckets171, https://github.com/ivall/xcl/pull/1024#issuecomment-7129275671).Regression run
Test-only change in
tests.rs: noxcl-smokeblocks.Not tested
mac-on-main-wip, #980): thereuma_errorcan be empty while the check reports "not run…", which this test would still reject. Inferred from their diffs, not run.AI use
@mikebuckets171 on GitHub · 2026-11-24 10:48 UTC · original
Verified on a second Apple silicon host, and on the
gnullvmtarget rather than the GNU one. Same shape as the description's result, from a different toolchain - which matters because #783 is proposing CI for exactly this target and Linux Wine hosts use it too.Host: MacBook Pro M5 Pro (48 GB), macOS 27.2.1, CrossOver 26 with D3DMetal (the adapter reports "AMD Compatibility Mode"), Rosetta 2. Rust 1.100.0,
x86_64-pc-windows-gnullvmcross with LLVM-MinGW 20261117 (clang 23.1.6 + lld + UCRT),--release --locked, test binaries run under Wine. Each test in its own process,--exact <full test path> --nocapture --test-threads=1; the lib test binary reports 706 tests on both sides (705 filtered out).6efdabc(this PR's base)699975b(head)gpu::recomp::tests::gpu_uma_import_check_at_initcrates/xcl/src/gpu/recomp/tests.rs:3371, and the panic message is empty - the bareassert!(s.starts_with("ok") || s.starts_with("off"), "{s}")withsempty, which is the "fails with an empty message" the description namesSKIPPED …gpu_uma_import_check_at_init: no GPU UMA,test result: ok. 1 passed; 0 failedgpu::recomp::tests::gpu_sparse_vram_descriptors_buffers_and_xmemtests.rs:3397,assertion left == right failedtests.rs:3407(the same assert, moved by the patch), same messageBoth runs print, before the test body's own result:
so this host reaches the skip through the same door the description describes:
OpenExistingHeapFromAddress→E_NOTIMPL, recorded inuma_error, the import check never runs.gpu_sparse_vram_descriptors_buffers_and_xmemfailing on both sides, unchanged, matches the description's second host too - so on this host as well that one is a separate issue, not this PR's.Two things this pair adds: the skip is not specific to the mingw-w64 GCC build the description tested with (this is the
gnullvm/LLVM-MinGW route), and the head here is the PR as it stands on today'smain(6efdabc), so the result describes the PR against current main rather than against9aec53d.Host: macOS 27.2.1 (Apple silicon, M5 Pro), CrossOver 26, D3DMetal; bench scripts cross-build with LLVM-MinGW and run the test binaries under Wine, with the game stopped and local inference unloaded for each run. AI use: GPT-6 Luna built both trees, ran the tests and drafted this comment; the counts and codes are from those runs.
@DavidM1911 on GitHub · 2026-11-24 11:26 UTC · original
Independent verification, merged onto current
main384f7f7locally (clean merge).Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.
cargo test -p xcl --lib gpu_uma_import_check_at_init: 1 passed — the UMA check reportsok, 1 window(s)on this adapter, so the new skip branch is correctly not taken (thes.starts_with("ok")path still asserts). The E_NOTIMPL/D3DMetal branch could not be exercised here (no such adapter), but the guard is narrow and the happy path is unchanged.AI use: test runs by Devin (Cognition, SWE-2); no code changes.
@shortside on GitHub · 2026-11-24 11:56 UTC · original
Test report from a second Mac, head
699975bagainst its merge base6efdabc.Tested
x86_64-pc-windows-msvcwith clang-cl / lld-link 23.1.6 and an xwin SDK 10.0.26100, Rust 1.100.0, debug. The lib test binary run under Wine, one test per process (--exact --nocapture, 60 s cap).gpu_uma_import_check_at_init: base failed; head passed withSKIPPED … no GPU UMA.Not tested
AI use
@bjarngard on GitHub · 2026-11-24 13:05 UTC · original
Test report for head
699975b(AMD, native wave64, and RTX 5080)Tested
XCL_ADAPTER=radeon cargo test --workspace --no-fail-fast -- --test-threads=4: 727 passed, 0 failed, 41 ignored, no SKIPPEDXCL_REQUIRE_GPU=wave64:gpu_uma_import_check_at_initpassedgpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardwaregpu_uma_import_check_at_initran and passed on both adapters; the new skip did not fire on eitherNot tested: Intel.
AI use: the tests were run and this report was written by an AI agent, Claude Code (Claude Opus 5.5), on the hardware above. The numbers are copied from the actual test output.
@JoaoPauluu on GitHub · 2026-11-24 13:33 UTC · original
A Linux data point with vkd3d-proton, for the hosts where this skip must not fire.
Tested
x86_64-pc-windows-gnu.699975bas it is (merge base6efdabc), no uncommitted changes. The lib test binary runs under Wine, one test per process (--exact, 90 s cap).gpu_uma_import_check_at_init: ok, no SKIPPED. vkd3d-proton opens the heaps over process memory:UMA import check: ok, 1 window(s), 3241 µs,UMA opened (3 sparse VRAM window(s), 512 MB coherent window). So the new skip branch is not taken here and the test still asserts the check.Not tested
AI use
@JJAutoCompare on GitHub · 2026-11-25 05:31 UTC · original
Empirical test report (
699975b2)Verified PR #1024 at commit
699975b22e21c095d34a06bcfaa8fecf5a2149f2in a clean detached checkout. The diff changes thegpu_uma_import_check_at_initunit test.Hardware / environment
1.100.0 (0ef1bc386 2026-11-09). DXC/dxil1.9.2609.5, DXC build01b62ad47. Cargo used the unoptimized test profile with debug symbols and incremental compilation disabled.Commands and results
cargo test --workspace --no-runcompleted outside the Arc lock with exit code 0. This compiled the workspace test targets.xcl-77aca8ccb20e299f.exe --exact gpu::recomp::tests::gpu_uma_import_check_at_initran from the workspace build underInvoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1. The wrapper exited 0. The log recorded 1 passed, 0 failed, 0 ignored, 0SKIPPED, and 705 filtered out.Observed behavior
D3D12.X opened the UMA windows and logged a successful import check for one window in 6,638 microseconds. The fixture exercised the success assertion with
XCL_UMA_CHECKunset.Not tested
The full GPU workspace suite and game smoke runs were omitted. This adapter supported heap import, so the
OpenExistingHeapFromAddressE_NOTIMPLskip branch was untested. CrossOver/D3DMetal and other adapters were untested.AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1024-focused.logand published.@DavidM1911 on GitHub · 2026-11-26 03:32 UTC · original
Re-verification on RTX 3060 Ti (Windows 11): still a merge conflict with current
mainon the new head — needs another rebase before it can be tested.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.