Build for x86-64-v3, and keep our threads on one core complex (VICTORY_CCD_CORES) #603
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!603
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-603"
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?
@0xkn0wh3r3 on GitHub · 2026-11-28 01:46 UTC · original
0xkn0wh3r3:cpu-v3-ccd-cores→main· +248 −11 · 5 files · 1 commits · openSummary
.cargo/config.tomlnow builds the workspace forx86-64-v3(AVX2, BMI1/2, FMA, F16C, LZCNT, MOVBE). Before this, the compiler kept to SSE2. The title already requires AVX2, since it is built for the console's Zen 2.RUSTFLAGS, when set, still overrides this. Trade-off: a CPU without AVX2 now stops with an illegal instruction before the launcher's own AVX2 check can explain why. This is noted inrun.rsand the README requirements.VICTORY_CCD_CORES=1(opt-in, off by default while it is tested). The rule applies where all cores report one efficiency class and there are two or more last-level caches: Ryzen 7900X, 7950X, 9900X, 9950X and their X3D parts. On such chips, the threads that already ask for the fast cores (cores::keep_*_on_fast_cores) stay on one core complex. That is the complex with the most processor sets, then the largest cache (the stacked one on an X3D), then the lowest set id. Measured on a 7900X, a handoff between complexes takes about 180 ns, against about 20 ns inside one. Hybrid Intel cores still go by efficiency class, as before.cores::settle()re-places them whenVICTORY_ABflips the switch (wired inqueue::frame_ends). Adiagbuild can compare both sides in the same scene withVICTORY_AB=20,VICTORY_CCD_CORES. With the switch off, behaviour is unchanged: on a multi-complex Ryzen the threads are told "any processor", which is what they had.Testing
cargo test --workspace --lockedpasses, exceptindirect::tests::host_list_budget_starts_empty_at_each_submissionandwarp_batch_charges_every_execution. Both already fail onmain(see #578).cargo clippywith-D warningsreports nothing in the changed files.mainitself does not pass clippy at the moment:victory-formats,victory-loaderandvictory-gpuhave existing lints.diagbuild withVICTORY_AB=20,VICTORY_CCD_CORES. For v3, compare against a build made withRUSTFLAGS=""in the same scene.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.