Diagnostics build: define mb() in copystat, stop the stage timer shadowing timing() #2498

Open
github-bot wants to merge 1 commit from github-bot/gh-2498 into main AGit
Owner

@⁠LeonardoRCB on GitHub · 2026-11-29 13:40 UTC · original
LeonardoRCB:fix-diagnostics-build → main · +8 −3 · 2 files · 1 commits · open

The diagnostics build (cargo build --locked --profile diag -p victory --features diagnostics) does not compile on current main: 9 errors in victory-gpu (E0425, E0618, E0277). The release build is not affected, since both spots are behind feature = "diagnostics".

Two causes:

  • b520c0f4 added a memory line to log_heap_elsewhere in copystat.rs that calls mb(), but no mb() exists in that file (E0425 x4). This adds it: bytes to MiB as f64, as the file's other memory lines compute it.
  • dc0c4b91 named the submission's stage timer timing (Option<SubmissionTiming>), which shadows fn timing() for the rest of the submission, so if timing() at lines 9127, 9169 and 9180 tries to call the Option (E0618; the E0277 at 9172 follows from it). The local is renamed to stages; nothing else changes.

8 lines in 2 files, no behaviour change.

Tested: Windows 11, Rust 1.98.1 (pinned toolchain), RTX 4060. Before: the diag build fails with the 9 errors above. After: it finishes (Finished diag profile). The release build still compiles. The warnings left in victory-gpu and victory-shader are not from this change.

**@⁠LeonardoRCB** on GitHub · 2026-11-29 13:40 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2498) `LeonardoRCB:fix-diagnostics-build` → `main` · +8 −3 · 2 files · 1 commits · open The diagnostics build (`cargo build --locked --profile diag -p victory --features diagnostics`) does not compile on current main: 9 errors in victory-gpu (E0425, E0618, E0277). The release build is not affected, since both spots are behind `feature = "diagnostics"`. Two causes: - b520c0f4 added a memory line to `log_heap_elsewhere` in `copystat.rs` that calls `mb()`, but no `mb()` exists in that file (E0425 x4). This adds it: bytes to MiB as f64, as the file's other memory lines compute it. - dc0c4b91 named the submission's stage timer `timing` (`Option<SubmissionTiming>`), which shadows `fn timing()` for the rest of the submission, so `if timing()` at lines 9127, 9169 and 9180 tries to call the Option (E0618; the E0277 at 9172 follows from it). The local is renamed to `stages`; nothing else changes. 8 lines in 2 files, no behaviour change. Tested: Windows 11, Rust 1.98.1 (pinned toolchain), RTX 4060. Before: the diag build fails with the 9 errors above. After: it finishes (`Finished diag profile`). The release build still compiles. The warnings left in victory-gpu and victory-shader are not from this change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 13:44:38 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
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.
git fetch -u origin '+refs/pull/2498/head:github-bot/gh-2498'
git switch 'github-bot/gh-2498'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2498'
git switch 'github-bot/gh-2498'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2498'
git switch 'github-bot/gh-2498'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2498'
git switch 'main'
git merge --squash 'github-bot/gh-2498'
git switch 'main'
git merge --ff-only 'github-bot/gh-2498'
git switch 'main'
git merge 'github-bot/gh-2498'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2498
No description provided.