Skip to content

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 <rokhinip@apple.com>
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