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

Open
LeonardoRCB wants to merge 1 commit from upstream-pr/2498 into main
LeonardoRCB commented 2026-11-29 13:40:56 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by LeonardoRCB on 2026-11-29T13:40:56Z.


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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5551278060 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2498). Originally posted by [LeonardoRCB](https://github.com/LeonardoRCB) on 2026-11-29T13:40:56Z. --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2498:upstream-pr/2498'
git switch 'upstream-pr/2498'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2498'
git switch 'upstream-pr/2498'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2498'
git switch 'upstream-pr/2498'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2498'
git switch 'main'
git merge --squash 'upstream-pr/2498'
git switch 'main'
git merge --ff-only 'upstream-pr/2498'
git switch 'main'
git merge 'upstream-pr/2498'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

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