Skip to content

hw_config: fix Windows CPU detection #521

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

Merged
merged 1 commit into from
Sep 23, 2019
Merged

hw_config: fix Windows CPU detection #521

merged 1 commit into from
Sep 23, 2019

Conversation

adierking
Copy link
Contributor

@adierking adierking commented Sep 22, 2019

The Windows CPU detection code is not reporting the intended values.
physical_cpus should report the number of physical cores instead of
the number of packages, and active_cpus should report the number of
available logical cores instead of the number of available physical
cores. This fixes an issue where the dispatch_apply test times out on
hyperthreaded systems.

@adierking
Copy link
Contributor Author

cc @compnerd @ktopley-apple

The Windows CPU detection code is not reporting the intended values.
`physical_cpus` should report the number of physical cores instead of
the number of packages, and `active_cpus` should report the number of
available logical cores instead of the number of available physical
cores. This fixes an issue where the `dispatch_apply` test times out on
hyperthreaded systems.
@compnerd
Copy link
Member

@swift-ci please test

@compnerd
Copy link
Member

@compnerd compnerd merged commit c66cb25 into swiftlang:master Sep 23, 2019
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
hw_config: fix Windows CPU detection

Signed-off-by: Rokhini Prabhu <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants