[Openmp-commits] [PATCH] D148832: [OpenMP][libomptarget][NFC] Map test result with explicit upper bound extent
Gheorghe-Teodor Bercea via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Apr 20 12:10:42 PDT 2023
doru1004 created this revision.
doru1004 added reviewers: ronl, carlo.bertolli, jdoerfert, tianshilei1992, jhuber6.
doru1004 added a project: OpenMP.
Herald added subscribers: sunshaoce, guansong, yaxunl.
Herald added a project: All.
doru1004 requested review of this revision.
Herald added subscribers: openmp-commits, jplehr, sstefan1.
Map test result with explicit upper bound extent. This is another attempt to find out why this test occasionally fails.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148832
Files:
openmp/libomptarget/test/mapping/private_mapping.c
Index: openmp/libomptarget/test/mapping/private_mapping.c
===================================================================
--- openmp/libomptarget/test/mapping/private_mapping.c
+++ openmp/libomptarget/test/mapping/private_mapping.c
@@ -11,7 +11,7 @@
for (int i=0; i<16; i++) sum[i] = 10000;
-#pragma omp target teams distribute parallel for map(tofrom : sum) \
+#pragma omp target teams distribute parallel for map(tofrom : sum[:16]) \
firstprivate(data1, data2, data3)
for (int i = 0; i < 16; ++i) {
for (int j = 0; j < 3; ++j) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148832.515425.patch
Type: text/x-patch
Size: 573 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230420/5d57abf5/attachment.bin>
More information about the Openmp-commits
mailing list