Diagnostics build: define mb() in copystat, stop the stage timer shadowing timing() #2498
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2498"
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?
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 behindfeature = "diagnostics".Two causes:
b520c0f4added a memory line tolog_heap_elsewhereincopystat.rsthat callsmb(), but nomb()exists in that file (E0425 x4). This adds it: bytes to MiB as f64, as the file's other memory lines compute it.dc0c4b91named the submission's stage timertiming(Option<SubmissionTiming>), which shadowsfn timing()for the rest of the submission, soif timing()at lines 9127, 9169 and 9180 tries to call the Option (E0618; the E0277 at 9172 follows from it). The local is renamed tostages; 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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.