This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Expose libomptarget function to get HW thread id
ClosedPublic

Authored by ggeorgakoudis on Jul 19 2021, 4:38 PM.

Details

Summary

The patch exposes the libomptarget runtime function that gets the hardware thread id through the kmpc API. This is to be used in SPMDization for checking the thread id to execute regions by a single thread in a block.

Diff Detail

Event Timeline

ggeorgakoudis created this revision.Jul 19 2021, 4:38 PM
ggeorgakoudis requested review of this revision.Jul 19 2021, 4:38 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald Transcript
ggeorgakoudis edited the summary of this revision. (Show Details)Jul 19 2021, 6:04 PM
jdoerfert accepted this revision.Jul 19 2021, 7:33 PM

Clang format, otherwise OK.

This revision is now accepted and ready to land.Jul 19 2021, 7:33 PM

Fix formatting

This revision was landed with ongoing or failed builds.Jul 21 2021, 10:26 AM
This revision was automatically updated to reflect the committed changes.