Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with function nproc #164

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

gmloose
Copy link
Collaborator

@gmloose gmloose commented Dec 9, 2024

The function nproc() uses os.sched_getaffinity(), which is not available on every OS. It now uses multiprocessing.cpu_count() as fall-back.

The function `nproc()` uses `os.sched_getaffinity()`, which is not available on every OS. It now uses `multiprocessing.cpu_count()` as fall-back.
@gmloose gmloose self-assigned this Dec 9, 2024
@gmloose gmloose requested a review from tammojan December 9, 2024 11:03
@gmloose gmloose merged commit 8be37ec into master Dec 11, 2024
4 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