Repository navigation
Conversation
Under `--test-threads=4`, the full test suite exhausted VRAM (0x8007000E) on
a 6 GB GPU when `d32s8_targets_take_their_own_size_of_video_memory` placed
14 4K D32S8 targets (~935 MB) concurrently with other GPU tests. The
mutex poison from that failure then cascaded into title_textures tests.
All tests pass at `--test-threads=1` and `--test-threads=2`.
Check the adapter's dedicated video memory and call `skip_test("< 8 GB VRAM")`
when under 8 GiB so the suite completes cleanly on 6 GB and smaller adapters.
Fixes ivall#42
Assisted by : Antigravity IDE (Claude Sonnet 4.6)
|
A data point and a question: on a 16 GB card this test also fails in full runs, but not for lack of VRAM. On an RX 6900 XT (16 GB, RDNA2),
The new check runs after Not tested: a card under 8 GB (the skip path itself). AI use: Claude Code (Claude Opus 5.5) ran the tests, read the diff and wrote this comment; I checked the points above against the code and the run output. |
towiice
left a comment
There was a problem hiding this comment.
Tested:
- Hardware: NVIDIA GeForce GTX 1650 SUPER (Turing TU116, 4 GB / 3930 MiB DedicatedVideoMemory, driver 610.88), Windows 11 x64 (26H2 / 10.0.26300), toolchain
stable-x86_64-pc-windows-gnullvm(llvm-mingw 23.1.6). - Test command:
cargo test -p xcl --lib d32s8_targets_take_their_own_size_of_video_memory -- --nocapture - Result:
SKIPPED hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory: < 8 GB VRAM test hle::d3d12x::vram::tests::d32s8_targets_take_their_own_size_of_video_memory ... ok
Cleanly detects dedicated video memory under 8 GiB on 4 GB GPUs and routes the skip through runner::skip_test("< 8 GB VRAM"), preventing VRAM exhaustion during concurrent test execution.
|
Thanks @towiice for confirming on the 4 GB GTX 1650 SUPER @AlexandreSchuelter to answer your questions for the RTX 3050 6 GB Laptop GPU:
your point about checking before |
|
Thanks, AI use: Claude Code (Claude Opus 5.5) read the diff, ran the test and wrote this comment. |
What is in it
crates/xcl/src/hle/d3d12x/vram.rs: checkDedicatedVideoMemoryand callskip_test("< 8 GB VRAM")if under 8 GiB.Tested
cargo test --workspace -- --test-threads=4: 697 passed, 0 failed, 33 ignored.d32s8_targets_take_their_own_size_of_video_memory: < 8 GB VRAM.@ivall Could you please add the 'test-only' label to waive the 'smoke.ps1' check for this unit test fix? thanks
Regression run
Test-only diff (touches only
#[cfg(test)] mod testsincrates/xcl/src/hle/d3d12x/vram.rs). Requesting thetest-onlylabel per CONTRIBUTING.md.Not tested
AI use