Skip to content

Adjust threading behavior when --ncores > 1 - #258

Merged
agentmorris merged 3 commits into
mainfrom
thread-init
Oct 17, 2026
Merged

agentmorris merged 3 commits into
mainfrom
thread-init

Conversation

@agentmorris

Copy link
Copy Markdown
Owner

No description provided.

putdanil and others added 2 commits October 17, 2026 10:52
Each worker process in the multi-CPU pool used as many PyTorch threads as a
single process would, so --ncores N ran N times as many threads as there are
cores, and was slower than --ncores 1.  A pool initializer now divides the
default thread count by the number of workers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@agentmorris
agentmorris merged commit 96476fb into main Oct 17, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants