This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomp] Fix disabled affinity
ClosedPublic

Authored by jlpeyton on Nov 1 2022, 10:35 AM.

Details

Summary

Fix setting affinity type and topology method when affinity is disabled
and fix places that were not taking into account that affinity can be
explicitly disabled by putting proper KMP_AFFINITY_CAPABLE() check.

Diff Detail

Event Timeline

jlpeyton created this revision.Nov 1 2022, 10:35 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 1 2022, 10:35 AM
jlpeyton requested review of this revision.Nov 1 2022, 10:35 AM

@mgorny , This patch should fix the issues you were seeing after https://reviews.llvm.org/D135113. Can you confirm?

mgorny accepted this revision.Nov 1 2022, 12:37 PM

Can't say much about the code but I can confirm that this makes the tests pass for me.

This revision is now accepted and ready to land.Nov 1 2022, 12:37 PM
This revision was automatically updated to reflect the committed changes.