Play defaults: helper threads scale with the CPU instead of capping at 2 to 8 #325
Loading…
Reference in a new issue
No description provided.
Delete branch "Coder629nx/Darner:pr-234-gtahub"
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?
This is the CPU-side defaults change carried on CodeFloe as PR #234, ported to this host (branch pr-234-gtahub, one commit on top of main).
What it does: five helper pools that do work a frame waits on stop capping their defaults at 2-8 workers and scale with the logical processors instead - THIN lists and WIDE buffer copies at three quarters of the CPUs (2-16), LAND at half (1-8), UNDER at half with a floor of 6 (6-12), VIEW threads a quarter (4-8) and record threads half (6-12). Touched:
crates/darner-gpu/src/shadow.rs,land.rs,list/thin.rs, and the five README rows. No new thread, lock or code path: the pools already ran their work in parallel; only the default count inside the existing clamp changed, and a switch set by hand still wins.Motivation: the reported profile of the card doing 2-3 ms and standing while the submitting thread spends 20-30 ms with half the cores idle. TrustNo1 ran an A/B on the downtown flight on CodeFloe (#234, 16-core CPU); no number from it is claimed here - see that thread. Nothing was measured where this was prepared;
cargo check -p darner-gpufails with pre-existing errors on an unchanged checkout of main on this machine (pinned toolchain, Linux), so CI decides.Pull request closed