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

win: compute parallelism from process cpu affinity (#4521) #38

Merged
merged 1 commit into from
Aug 31, 2024

Conversation

giordano
Copy link

uv_available_parallelism on Windows is currently inconsistent with uv_thread_getaffinity. This backports libuv#4521 which fixes this issue.

Use GetProcessAffinityMask() to estimate the available parallelism.
Before this commit, it simply used the number of available CPUs.

Fixes: libuv#4520
(cherry picked from commit 58dfb6c)
@giordano
Copy link
Author

I'm inclined to merge this PR and #39 in a couple of days if there are no objections, they're simply backports of commits already in upstream, hopefully not very controversial.

@giordano giordano merged commit e763959 into julia-uv2-1.48.0 Aug 31, 2024
3 of 16 checks passed
@giordano giordano deleted the mg/win-available-parallelism branch August 31, 2024 12:24
giordano added a commit to giordano/Yggdrasil that referenced this pull request Aug 31, 2024
giordano added a commit to giordano/Yggdrasil that referenced this pull request Aug 31, 2024
giordano added a commit to JuliaPackaging/Yggdrasil that referenced this pull request Aug 31, 2024
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