[RTX 4070 SUPER 12 GB] Five ignored upcheck tests fail on cards with 12 GiB or less unless VICTORY_CARD_BUFFERS_MIN_MB=1 is set #181

Closed
opened 2026-11-27 06:36:15 +00:00 by github-bot · 1 comment
Owner

@⁠samuelcurcelicordovil-collab on GitHub · 2026-11-27 06:31 UTC · original

A title-free run of the ignored relay tests on a 12 GB card. Five host::upcheck tests fail with the variables their #[ignore] reasons give, and pass once VICTORY_CARD_BUFFERS_MIN_MB=1 is added. The tests seem to assume a card with more than 12 GiB of budget.

Vice-Tay build

ec7b064 (main, git clone), cargo test --workspace --all-features --locked build, Rust 1.98.1. upcheck.rs and shadow.rs are unchanged on the current main (4a5458f).

Hardware and graphics driver

NVIDIA GeForce RTX 4070 SUPER 12 GB, driver 621.40, Intel Core i9-12900F, 32 GB DDR4-3200, Windows 11 Pro 25H2 build 26200.9974.

How to reproduce

Each test in its own process from crates/victory-gpu, with the variables from its #[ignore] reason:

$env:VICTORY_RELAY = '2'; $env:VICTORY_RELAY_COPY = '1'
cargo test --locked -p victory-gpu --lib --all-features -- --ignored --exact host::upcheck::tests::each_submission_reads_its_own_copy_on_the_card --test-threads=1

What you observed

Test Extra variables As documented With VICTORY_CARD_BUFFERS_MIN_MB=1
a_result_caught_in_between_is_put_right VICTORY_FETCH_CHECK=1 FAILED (upcheck.rs:680) ok
the_check_finds_an_undeclared_write_undone VICTORY_UPCOPY_CHECK=1 FAILED (upcheck.rs:680) ok
writes_through_picked_views_come_back VICTORY_PICKED_WRITES=2 VICTORY_PICKED_MB=1 FAILED (upcheck.rs:680) ok
each_submission_reads_its_own_copy_on_the_card none FAILED (upcheck.rs:891) ok
declared_writes_beside_the_titles_own_stay none FAILED (upcheck.rs:680) ok
panicked at crates\victory-gpu\src\host\upcheck.rs:680:9: the copy is in the card's memory
panicked at crates\victory-gpu\src\host\upcheck.rs:891:9: assertion `left == right` failed: where the copy is
  left: false
 right: true

The other nine gated tests pass as documented: the card_steps one, the other five upcheck ones, the two VICTORY_INDIRECT_REST=1 ones in indirect, and typed_rtv_zero_pipelines_reload_only_with_their_own_format. No TDR or nvlddmkm events during the runs.

For context, the full CI diagnostics configuration (cargo test --workspace --all-features --locked -- --test-threads=1) passes on this machine: 1258 passed, 0 failed, 55 ignored.

Likely cause

The fixture's title buffer is LEN = 4 << 20 (4 MiB). default_card_limits_mb in shadow.rs sets the smallest buffer that gets a card copy from the adapter's budget: 16 MiB at <= 12 GiB, 4 MiB below 20 GiB, 1 MiB from 20 GiB. On this card the budget is under 12 GiB, so the 4 MiB copy stays in PC memory and carded() is false. On a 16 GB or 24 GB card the same buffer would go to the card, which would explain why the tests pass there.

That would affect any 8 to 12 GB card. Possible fixes: add VICTORY_CARD_BUFFERS_MIN_MB=1 to the #[ignore] reasons and the note above LEN, or have the fixture set its own minimum.

I can rerun these on this card.

AI-assisted (Claude)

**@⁠samuelcurcelicordovil-collab** on GitHub · 2026-11-27 06:31 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/181) A title-free run of the ignored relay tests on a 12 GB card. Five `host::upcheck` tests fail with the variables their `#[ignore]` reasons give, and pass once `VICTORY_CARD_BUFFERS_MIN_MB=1` is added. The tests seem to assume a card with more than 12 GiB of budget. ### Vice-Tay build `ec7b064` (main, git clone), `cargo test --workspace --all-features --locked` build, Rust 1.98.1. `upcheck.rs` and `shadow.rs` are unchanged on the current `main` (`4a5458f`). ### Hardware and graphics driver NVIDIA GeForce RTX 4070 SUPER 12 GB, driver 621.40, Intel Core i9-12900F, 32 GB DDR4-3200, Windows 11 Pro 25H2 build 26200.9974. ### How to reproduce Each test in its own process from `crates/victory-gpu`, with the variables from its `#[ignore]` reason: ```powershell $env:VICTORY_RELAY = '2'; $env:VICTORY_RELAY_COPY = '1' cargo test --locked -p victory-gpu --lib --all-features -- --ignored --exact host::upcheck::tests::each_submission_reads_its_own_copy_on_the_card --test-threads=1 ``` ### What you observed | Test | Extra variables | As documented | With `VICTORY_CARD_BUFFERS_MIN_MB=1` | |---|---|---|---| | `a_result_caught_in_between_is_put_right` | `VICTORY_FETCH_CHECK=1` | FAILED (upcheck.rs:680) | ok | | `the_check_finds_an_undeclared_write_undone` | `VICTORY_UPCOPY_CHECK=1` | FAILED (upcheck.rs:680) | ok | | `writes_through_picked_views_come_back` | `VICTORY_PICKED_WRITES=2 VICTORY_PICKED_MB=1` | FAILED (upcheck.rs:680) | ok | | `each_submission_reads_its_own_copy_on_the_card` | none | FAILED (upcheck.rs:891) | ok | | `declared_writes_beside_the_titles_own_stay` | none | FAILED (upcheck.rs:680) | ok | ```text panicked at crates\victory-gpu\src\host\upcheck.rs:680:9: the copy is in the card's memory panicked at crates\victory-gpu\src\host\upcheck.rs:891:9: assertion `left == right` failed: where the copy is left: false right: true ``` The other nine gated tests pass as documented: the `card_steps` one, the other five `upcheck` ones, the two `VICTORY_INDIRECT_REST=1` ones in `indirect`, and `typed_rtv_zero_pipelines_reload_only_with_their_own_format`. No TDR or `nvlddmkm` events during the runs. For context, the full CI diagnostics configuration (`cargo test --workspace --all-features --locked -- --test-threads=1`) passes on this machine: 1258 passed, 0 failed, 55 ignored. ### Likely cause The fixture's title buffer is `LEN = 4 << 20` (4 MiB). `default_card_limits_mb` in `shadow.rs` sets the smallest buffer that gets a card copy from the adapter's budget: 16 MiB at `<= 12 GiB`, 4 MiB below 20 GiB, 1 MiB from 20 GiB. On this card the budget is under 12 GiB, so the 4 MiB copy stays in PC memory and `carded()` is false. On a 16 GB or 24 GB card the same buffer would go to the card, which would explain why the tests pass there. That would affect any 8 to 12 GB card. Possible fixes: add `VICTORY_CARD_BUFFERS_MIN_MB=1` to the `#[ignore]` reasons and the note above `LEN`, or have the fixture set its own minimum. I can rerun these on this card. <sub>AI-assisted (Claude)</sub>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 06:36:15 +00:00
github-bot referenced this issue from a commit 2026-11-30 15:24:03 +00:00
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-30 20:16 UTC · original

Those requirements are gone. None of the #[ignore] reasons in crates/vice-tay-gpu/src/host/upcheck.rs mention a card size or VICE_TAY_CARD_BUFFERS_MIN_MB any more - they ask for VICE_TAY_RELAY=2, VICE_TAY_RELAY_COPY=1 and a process of their own, which is about the relay rather than about how much memory the card has.

The card-buffer limits are sized from the card's own budget now (shadow::default_card_limits_mb): on a budget of 12 GiB or less the smallest copy that goes to the card is half a MiB, with a ceiling of 18% of the budget. So a 12 GB card isn't the odd one out it was when you ran this.

Thanks for running the ignored tests at all - that they assumed a card bigger than yours wasn't visible from here.

**@⁠TaynanGT** on GitHub · 2026-11-30 20:16 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/181#issuecomment-7290662255) Those requirements are gone. None of the `#[ignore]` reasons in `crates/vice-tay-gpu/src/host/upcheck.rs` mention a card size or `VICE_TAY_CARD_BUFFERS_MIN_MB` any more - they ask for `VICE_TAY_RELAY=2`, `VICE_TAY_RELAY_COPY=1` and a process of their own, which is about the relay rather than about how much memory the card has. The card-buffer limits are sized from the card's own budget now (`shadow::default_card_limits_mb`): on a budget of 12 GiB or less the smallest copy that goes to the card is half a MiB, with a ceiling of 18% of the budget. So a 12 GB card isn't the odd one out it was when you ran this. Thanks for running the ignored tests at all - that they assumed a card bigger than yours wasn't visible from here.
This discussion has been locked. Commenting is limited to contributors.
No description provided.