This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomp] Add use-all syntax to KMP_HW_SUBSET
ClosedPublic

Authored by jlpeyton on Dec 15 2021, 1:02 PM.

Details

Summary

This patch allows the user to request all resources of a particular
layer (or core-attribute). The syntax of KMP_HW_SUBSET is modified
so the number of units requested is optional or can be replaced with an * character.

Examples:
KMP_HW_SUBSET=c:intel_atom@3 will use all the cores after offset 3
KMP_HW_SUBSET=*c:intel_core will use all the big cores
KMP_HW_SUBSET=*s,*c,1t will use all the sockets, all cores per each socket and 1 thread per core.

Diff Detail

Event Timeline

jlpeyton created this revision.Dec 15 2021, 1:02 PM
jlpeyton requested review of this revision.Dec 15 2021, 1:02 PM
This revision is now accepted and ready to land.Dec 17 2021, 7:50 AM
This revision was automatically updated to reflect the committed changes.