mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #209] calibrate: try the host's extra CPU-thread candidates above the engine's own too #393
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#393
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Original Pull Request: https://github.com/mw00/project-maya/pull/209
State: closed
Merged: No
The thread sweep only ever tried counts below the engine's own.
host_thread_extras()computes one socket's CPUs less one on a 2-socket PC (and the performance cores' CPUs less one on a hybrid one), but the candidate filter2 <= w < defaultdropped that candidate whenever it was larger than the default - and on a split of three or more GPUs the engine sizes its one pool from one NUMA node's physical cores, so that is exactly the case the extra exists for.The sweep now keeps the extras above the default too (never equal to it, never below 2). The early stop and the interleaved confirmation are unchanged: a count is still kept only when it beats the engine's own by more than 3%, so this only widens what can be measured, never what is kept on noise.
Measured on the reporter's box while tuning it - 3x Tesla V100-PCIE-16GB, 2x Xeon E5-2690 v4 (two sockets, 28 physical cores), 62 GB RAM, Maya-S-v2-IQ2_XXS, 128K context,
--benchdecode means,VRAM_EVICT=lru(through the config env):On this box the extras did not clear the 3% bar (the run-to-run spread of a config is about +-3%), so nothing would have been kept here either way - but the sweep can now see them, and on a host where they do win the tuning can keep them.
python -m unittest tools.test_calibrate_glmpasses (the thread-candidate test was updated for extras above the default).