Skip to content

Simplify and enhance performance of opal_hwloc_base_get_npus() used by orte's rmaps #1298

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

Closed
timattox opened this issue Jan 12, 2016 · 1 comment

Comments

@timattox
Copy link
Contributor

The opal_hwloc_base_get_npus() function needs to count the number of bits turned on in a cpuset.
This patch replaces a linear bit counting loop with a call to an already existing efficient population count routine: hwloc_bitmap_weight()
which effectively counts the bits a word at a time.
I did not test the performance gain, but as per-node core counts keep going up, this can't hurt.
See pull request #1297

@rhc54
Copy link
Contributor

rhc54 commented Jan 13, 2016

Fixed with commit of #1297

@rhc54 rhc54 closed this as completed Jan 13, 2016
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

No branches or pull requests

2 participants