Skip to content

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

Merged
giordano merged 1 commit intojulia-uv2-1.48.0from
mg/win-available-parallelism
Aug 31, 2024
Merged

win: compute parallelism from process cpu affinity (#4521)#38
giordano merged 1 commit intojulia-uv2-1.48.0from
mg/win-available-parallelism

Conversation

@giordano
Copy link
Copy Markdown
Member

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
Copy Markdown
Member 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
@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