This is an archive of the discontinued LLVM Phabricator instance.

[nfc][libomptarget] Drop parameter to named_sync
ClosedPublic

Authored by JonChesterfield on Sep 29 2020, 3:21 AM.

Details

Summary

[nfc][libomptarget] Drop parameter to named_sync

named_sync has one call site (in sync.cu) where it always passed L1_BARRIER.
Folding this into the call site and dropping the macro is a simplification.

amdgpu doesn't have ptx' bar.sync instruction. A correct implementation of
__kmpc_impl_named_sync in terms of shared memory is much easier if it can
assume that the barrier argument is this constant. Said implementation is left
for a second patch.

Diff Detail

Event Timeline

JonChesterfield requested review of this revision.Sep 29 2020, 3:21 AM
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
113

The comment removed here refers to some amdgcn specific patches to CGOpenMP codegen which are not on trunk, are no longer on aomp and are in the process of being removed from rocm.

This revision is now accepted and ready to land.Sep 29 2020, 12:48 PM
This revision was landed with ongoing or failed builds.Sep 29 2020, 3:12 PM
This revision was automatically updated to reflect the committed changes.