[Openmp-commits] [PATCH] D105699: [libomptarget][devicertl] Remove branches around setting parallelLevel
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue Jul 13 04:07:34 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb6b53ffef441: [libomptarget][devicertl] Remove branches around setting parallelLevel (authored by JonChesterfield).
Changed prior to commit:
https://reviews.llvm.org/D105699?vs=357556&id=358227#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D105699/new/
https://reviews.llvm.org/D105699
Files:
openmp/libomptarget/deviceRTLs/common/src/omptarget.cu
Index: openmp/libomptarget/deviceRTLs/common/src/omptarget.cu
===================================================================
--- openmp/libomptarget/deviceRTLs/common/src/omptarget.cu
+++ openmp/libomptarget/deviceRTLs/common/src/omptarget.cu
@@ -90,12 +90,13 @@
int threadId = GetThreadIdInBlock();
if (threadId == 0) {
usedSlotIdx = __kmpc_impl_smid() % MAX_SM;
- parallelLevel[0] =
- 1 + (GetNumberOfThreadsInBlock() > 1 ? OMP_ACTIVE_PARALLEL_LEVEL : 0);
- } else if (GetLaneId() == 0) {
+ }
+
+ if (GetLaneId() == 0) {
parallelLevel[GetWarpId()] =
1 + (GetNumberOfThreadsInBlock() > 1 ? OMP_ACTIVE_PARALLEL_LEVEL : 0);
}
+
__kmpc_data_sharing_init_stack();
if (!RequiresFullRuntime)
return;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105699.358227.patch
Type: text/x-patch
Size: 752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20210713/25f14da7/attachment.bin>
More information about the Openmp-commits
mailing list