[Openmp-commits] [PATCH] D87084: [OpenMP][AMDGPU] Use DS_Max_Warp_Number instead of WARPSIZE
Pushpinder Singh via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Sep 3 22:51:29 PDT 2020
pdhaliwal updated this revision to Diff 289869.
pdhaliwal added a comment.
Updated data_sharing_stack_init_common
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87084/new/
https://reviews.llvm.org/D87084
Files:
openmp/libomptarget/deviceRTLs/common/omptarget.h
openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu
Index: openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu
===================================================================
--- openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu
+++ openmp/libomptarget/deviceRTLs/common/src/data_sharing.cu
@@ -26,7 +26,7 @@
omptarget_nvptx_TeamDescr *teamDescr =
&omptarget_nvptx_threadPrivateContext->TeamContext();
- for (int WID = 0; WID < WARPSIZE; WID++) {
+ for (int WID = 0; WID < DS_Max_Warp_Number; WID++) {
__kmpc_data_sharing_slot *RootS = teamDescr->GetPreallocatedSlotAddr(WID);
DataSharingState.SlotPtr[WID] = RootS;
DataSharingState.StackPtr[WID] = (void *)&RootS->Data[0];
Index: openmp/libomptarget/deviceRTLs/common/omptarget.h
===================================================================
--- openmp/libomptarget/deviceRTLs/common/omptarget.h
+++ openmp/libomptarget/deviceRTLs/common/omptarget.h
@@ -252,7 +252,7 @@
workDescrForActiveParallel; // one, ONLY for the active par
ALIGN(16)
- __kmpc_data_sharing_worker_slot_static worker_rootS[WARPSIZE];
+ __kmpc_data_sharing_worker_slot_static worker_rootS[DS_Max_Warp_Number];
ALIGN(16) __kmpc_data_sharing_master_slot_static master_rootS[1];
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87084.289869.patch
Type: text/x-patch
Size: 1221 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20200904/caaac6b9/attachment.bin>
More information about the Openmp-commits
mailing list