This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Re-use affinity raii class in worker spawning
ClosedPublic

Authored by jlpeyton on Jul 6 2023, 1:14 PM.

Details

Summary

Get rid of explicit mask alloc, getthreadaffinity, set temp affinity, reset to old affinity, dealloc steps in favor of existing kmp_affinity_raii_t to push/pop a temporary affinity.

Diff Detail

Event Timeline

jlpeyton created this revision.Jul 6 2023, 1:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2023, 1:14 PM
jlpeyton requested review of this revision.Jul 6 2023, 1:14 PM
jdoerfert accepted this revision.Jul 6 2023, 9:00 PM
jdoerfert added inline comments.
openmp/runtime/src/kmp_runtime.cpp
5436

You can keep the comment.

This revision is now accepted and ready to land.Jul 6 2023, 9:00 PM
This revision was automatically updated to reflect the committed changes.