Skip to content

clamp max_workers to at least 1 for single-cpu systems#3146

Open
knQzx wants to merge 1 commit intoNVIDIA:mainfrom
knQzx:fix-single-cpu-worker-count
Open

clamp max_workers to at least 1 for single-cpu systems#3146
knQzx wants to merge 1 commit intoNVIDIA:mainfrom
knQzx:fix-single-cpu-worker-count

Conversation

@knQzx
Copy link
Copy Markdown

@knQzx knQzx commented Apr 5, 2026

summary

  • clamp max_workers to at least 1 so ThreadPoolExecutor doesn't crash on single-cpu systems

test plan

  • verified fix prevents ValueError on systems where os.cpu_count() returns 1

fixes #3139

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.

[BUG] Wrong worker computation for single-CPU systems

1 participant