This is an archive of the discontinued LLVM Phabricator instance.

[OPNEMP, NVPTX] Fixed sychronization construct + code cleanup.
ClosedPublic

Authored by ABataev on Jul 19 2018, 1:42 PM.

Details

Summary
  1. Fixed internal problem in __kmpc_barrier function: SPMD mode

synchronization function should be called only in L1 parallel level.

  1. Removed some extra code for synchronization inside of the code, used

__kmpc_barrier instead.

  1. Some code cleanup.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev created this revision.Jul 19 2018, 1:42 PM
ABataev updated this revision to Diff 156586.Jul 20 2018, 1:26 PM

Fixed SPMD mode barrier for initialized runtime.

This revision is now accepted and ready to land.Jul 20 2018, 1:37 PM
grokos added inline comments.Jul 20 2018, 4:54 PM
libomptarget/deviceRTLs/nvptx/src/sync.cu
53–69 ↗(On Diff #156586)

Have these changes been tested on pre-Volta cards?

ABataev added inline comments.Jul 23 2018, 6:35 AM
libomptarget/deviceRTLs/nvptx/src/sync.cu
53–69 ↗(On Diff #156586)

Yes

This revision was automatically updated to reflect the committed changes.