From a51f8c92e2ae4ea0ab6b83f3f9cc40b092aa99c8 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Thu, 13 Dec 2018 13:53:19 +0100 Subject: [PATCH] re PR libgomp/88460 ([nvptx] FAIL: libgomp.c++/for-24.C (internal compiler error)) PR libgomp/88460 * testsuite/libgomp.c++/for-24.C (results): Include it in omp declare target region. (main): Use map (always, tofrom: results) instead of map (tofrom: results). From-SVN: r267093 --- libgomp/ChangeLog | 8 +++++++ libgomp/testsuite/libgomp.c++/for-24.C | 38 ++++++++++++++++------------------ 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index c2740f3..3a50f39 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,11 @@ +2018-12-13 Jakub Jelinek + + PR libgomp/88460 + * testsuite/libgomp.c++/for-24.C (results): Include it in + omp declare target region. + (main): Use map (always, tofrom: results) instead of + map (tofrom: results). + 2018-12-12 Jakub Jelinek PR fortran/88463 diff --git a/libgomp/testsuite/libgomp.c++/for-24.C b/libgomp/testsuite/libgomp.c++/for-24.C index cb14add..99f74e4 100644 --- a/libgomp/testsuite/libgomp.c++/for-24.C +++ b/libgomp/testsuite/libgomp.c++/for-24.C @@ -113,11 +113,9 @@ short c[50]; int d[1024]; K e[1089]; L f[1093]; -#pragma omp end declare target int results[2000]; -#pragma omp declare target template void baz (I &i) @@ -370,58 +368,58 @@ main () f[i].c = 5 * i; } #pragma omp target update to (a, b, c, d, e, f) - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f1 (); check (1); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f2 (); check (1); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f3 (); check (1); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f4 (J (&a[14], &a[1803])); check (i >= 14 && i < 1803); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f5 (); check (i >= 0 && i < 1024); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f6 (J (&e[19], &e[1029])); check (i >= 19 && i < 1029); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f7 (J (&f[15], &f[1091])); check (i >= 15 && i < 1091); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f8 (J (&e[27], &e[1037])); check (i >= 27 && i < 1037); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f9 (J (&f[1], &f[1012])); check (i >= 1 && i < 1012); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f10 <0> (); check (1); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f11 <1> (); check (1); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f12 <2> (); check (1); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f13 (J (&a[24], &a[1703])); check (i >= 24 && i < 1703); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f14 <1024> (); check (i >= 0 && i < 1024); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f15 (J (&e[39], &e[929])); check (i >= 39 && i < 929); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f16 (J (&f[17], &f[1071])); check (i >= 17 && i < 1071); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f17 <3> (J (&e[7], &e[1017])); check (i >= 7 && i < 1017); - #pragma omp target teams map (tofrom: results) + #pragma omp target teams map (always, tofrom: results) f18 <5> (J (&f[121], &f[1010])); check (i >= 121 && i < 1010); } -- 2.7.4