aboutsummaryrefslogtreecommitdiff
path: root/libomptarget/deviceRTLs/nvptx/src/supporti.h
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2018-07-23 13:52:12 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2018-07-23 13:52:12 +0000
commit7c9019ff7177253995729bb61a16e6ce65567966 (patch)
tree40220f64de964ed02f7ebf510e04e56b8d08f913 /libomptarget/deviceRTLs/nvptx/src/supporti.h
parentd7d72b740038e4285e1d51d6feb48330c0fb6f5a (diff)
[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 git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@337691 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'libomptarget/deviceRTLs/nvptx/src/supporti.h')
-rw-r--r--libomptarget/deviceRTLs/nvptx/src/supporti.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libomptarget/deviceRTLs/nvptx/src/supporti.h b/libomptarget/deviceRTLs/nvptx/src/supporti.h
index 2b267c3..4de2039 100644
--- a/libomptarget/deviceRTLs/nvptx/src/supporti.h
+++ b/libomptarget/deviceRTLs/nvptx/src/supporti.h
@@ -155,8 +155,7 @@ INLINE int IsTeamMaster(int ompThreadId) { return (ompThreadId == 0); }
INLINE int GetNumberOfProcsInDevice() {
if (isGenericMode())
return GetNumberOfWorkersInTeam();
- else
- return GetNumberOfThreadsInBlock();
+ return GetNumberOfThreadsInBlock();
}
INLINE int GetNumberOfProcsInTeam() { return GetNumberOfProcsInDevice(); }