This is an archive of the discontinued LLVM Phabricator instance.

Fix bitmask upper bounds check
ClosedPublic

Authored by jlpeyton on Sep 2 2016, 1:35 PM.

Details

Summary

Rather than checking KMP_CPU_SETSIZE, which doesn't exist when using Hwloc, we use the get_max_proc() function which can vary based on the operating system. For example on Windows with multiple processor groups, it might be the case that the highest bit possible in the bitmask is not equal to the number of hardware threads on the machine but something higher than that.

Diff Detail

Repository
rL LLVM

Event Timeline

jlpeyton updated this revision to Diff 70221.Sep 2 2016, 1:35 PM
jlpeyton retitled this revision from to Fix bitmask upper bounds check.
jlpeyton updated this object.
jlpeyton added reviewers: tlwilmar, AndreyChurbanov.
jlpeyton set the repository for this revision to rL LLVM.
jlpeyton added a subscriber: openmp-commits.
AndreyChurbanov accepted this revision.Sep 5 2016, 5:35 AM
AndreyChurbanov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Sep 5 2016, 5:35 AM
This revision was automatically updated to reflect the committed changes.