From f85369467cff35c9b12692f73b74fd109d3087b9 Mon Sep 17 00:00:00 2001 From: Doru Bercea Date: Thu, 20 Apr 2023 14:55:58 -0400 Subject: Modify test to explicitely use the size of the mapped array. Review: https://reviews.llvm.org/D148832 --- openmp/libomptarget/test/mapping/private_mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openmp') 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) { -- cgit v1.2.1