From: Tom de Vries Date: Thu, 28 Sep 2017 06:35:23 +0000 (+0000) Subject: Fix libgomp.oacc-c-c++-common/loop-g-{1,2}.c for non-nvidia devices X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d6206fe298f420e2292df78ab3480caa98cd1aa;p=gcc.git Fix libgomp.oacc-c-c++-common/loop-g-{1,2}.c for non-nvidia devices 2017-09-28 Tom de Vries * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove vector_length(32) clause from acc parallel directive. * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same. From-SVN: r253249 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 7fd88037878..4f8b4b48d6b 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2017-09-28 Tom de Vries + + * testsuite/libgomp.oacc-c-c++-common/loop-g-1.c (main): Remove + vector_length(32) clause from acc parallel directive. + * testsuite/libgomp.oacc-c-c++-common/loop-g-2.c (main): Same. + 2017-09-27 Tom de Vries * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main): diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-g-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-g-1.c index 7bff6cddf84..ae1d588db8f 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-g-1.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-g-1.c @@ -15,7 +15,7 @@ int main () for (ix = 0; ix < N;ix++) ary[ix] = -1; -#pragma acc parallel num_gangs(32) vector_length(32) copy(ary) copy(ondev) +#pragma acc parallel num_gangs(32) copy(ary) copy(ondev) { #pragma acc loop gang for (unsigned ix = 0; ix < N; ix++) diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-g-2.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-g-2.c index 92b82a01eb0..c06d861b07d 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-g-2.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-g-2.c @@ -15,7 +15,7 @@ int main () for (ix = 0; ix < N;ix++) ary[ix] = -1; -#pragma acc parallel num_gangs(32) vector_length(32) copy(ary) copy(ondev) +#pragma acc parallel num_gangs(32) copy(ary) copy(ondev) { #pragma acc loop gang (static:1) for (unsigned ix = 0; ix < N; ix++)