[Openmp-commits] [openmp] f853694 - Modify test to explicitely use the size of the mapped array.
Doru Bercea via Openmp-commits
openmp-commits at lists.llvm.org
Thu Apr 20 13:04:15 PDT 2023
Author: Doru Bercea
Date: 2023-04-20T16:03:57-04:00
New Revision: f85369467cff35c9b12692f73b74fd109d3087b9
URL: https://github.com/llvm/llvm-project/commit/f85369467cff35c9b12692f73b74fd109d3087b9
DIFF: https://github.com/llvm/llvm-project/commit/f85369467cff35c9b12692f73b74fd109d3087b9.diff
LOG: Modify test to explicitely use the size of the mapped array.
Review: https://reviews.llvm.org/D148832
Added:
Modified:
openmp/libomptarget/test/mapping/private_mapping.c
Removed:
################################################################################
diff --git a/openmp/libomptarget/test/mapping/private_mapping.c b/openmp/libomptarget/test/mapping/private_mapping.c
index a052b104bc864..cd4a2e5111f67 100644
--- a/openmp/libomptarget/test/mapping/private_mapping.c
+++ b/openmp/libomptarget/test/mapping/private_mapping.c
@@ -11,7 +11,7 @@ int main() {
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) {
More information about the Openmp-commits
mailing list