summaryrefslogtreecommitdiff
path: root/openmp/libomptarget
diff options
context:
space:
mode:
authorDoru Bercea <doru.bercea@amd.com>2023-04-20 14:55:58 -0400
committerDoru Bercea <doru.bercea@amd.com>2023-04-20 16:03:57 -0400
commitf85369467cff35c9b12692f73b74fd109d3087b9 (patch)
tree9f1be1c9c337ce1c3e2dccf831346b677b95d7b4 /openmp/libomptarget
parent0432b85d8e800439e57642bb25e93c32fa864f5c (diff)
downloadllvm-f85369467cff35c9b12692f73b74fd109d3087b9.tar.gz
Modify test to explicitely use the size of the mapped array.
Review: https://reviews.llvm.org/D148832
Diffstat (limited to 'openmp/libomptarget')
-rw-r--r--openmp/libomptarget/test/mapping/private_mapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openmp/libomptarget/test/mapping/private_mapping.c b/openmp/libomptarget/test/mapping/private_mapping.c
index a052b104bc86..cd4a2e5111f6 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) {