[OPNEMP, NVPTX] Fixed sychronization construct + code cleanup.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 23 Jul 2018 13:52:12 +0000 (13:52 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 23 Jul 2018 13:52:12 +0000 (13:52 +0000)
commit37d4156b1141ac688191b3be71cfe07563ec4c65
tree3c743fc9aeb4fdc086c4dea5a9c1a61e2e79c27d
parent8264bb8d349f37d637f4fe4ec522df0caf36a3e7
[OPNEMP, NVPTX] Fixed sychronization construct + code cleanup.

Summary:
1. Fixed internal problem in `__kmpc_barrier` function: SPMD mode
synchronization function should be called only in L1 parallel level.
2. Removed some extra code for synchronization inside of the code, used
`__kmpc_barrier` instead.
3. Some code cleanup.

Reviewers: gtbercea, grokos

Subscribers: openmp-commits

Differential Revision: https://reviews.llvm.org/D49564

llvm-svn: 337691
openmp/libomptarget/deviceRTLs/nvptx/src/loop.cu
openmp/libomptarget/deviceRTLs/nvptx/src/reduction.cu
openmp/libomptarget/deviceRTLs/nvptx/src/supporti.h
openmp/libomptarget/deviceRTLs/nvptx/src/sync.cu