Skip to content

add macOS fallback for CPU count - #4

Open
AlessioPrunotto wants to merge 1 commit into
mqcomplab:mainfrom
AlessioPrunotto:main
Open

AlessioPrunotto wants to merge 1 commit into
mqcomplab:mainfrom
AlessioPrunotto:main

Conversation

@AlessioPrunotto

@AlessioPrunotto AlessioPrunotto commented Sep 16, 2026

Copy link
Copy Markdown

Summary

Fix CPU core detection on macOS, where os.sched_getaffinity() is unavailable.

Use os.cpu_count() as a fallback while preserving the existing behavior on platforms that support CPU affinity.

Fixes #5

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.

CPU core detection broken on macOS

1 participant