This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Remove checkXXXX device runtime functions
ClosedPublic

Authored by jdoerfert on Jul 7 2021, 1:09 PM.

Details

Summary

We had multiple functions to determine the execution mode (SPMD/Generic)
and runtime status (initialized/uninitialized) but that just increased
complexity without a real benefit. Especially with D102307 in mind it
is helpful to reduce the dependence on the ident_t flags.

Diff Detail

Event Timeline

jdoerfert created this revision.Jul 7 2021, 1:09 PM
jdoerfert requested review of this revision.Jul 7 2021, 1:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2021, 1:09 PM
Herald added a subscriber: sstefan1. · View Herald Transcript
This revision is now accepted and ready to land.Jul 7 2021, 1:12 PM
JonChesterfield added inline comments.Jul 9 2021, 1:31 AM
openmp/libomptarget/deviceRTLs/common/src/support.cu
47

Was this loc->reserved etc an optimisation before? The comments suggest deleting the reads in order to fall through to is_spmd_exec_mode would make no behaviour change, but it's hard to see how they could have been faster

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