From: Tom de Vries Date: Thu, 5 Oct 2017 08:31:46 +0000 (+0000) Subject: Fix libgomp.oacc-c-c++-common/{loop-red-g-1,routine-g-1}.c for non-nvidia devices X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fe3ed4c10e293c69479042667161c79f0accf3e;p=gcc.git Fix libgomp.oacc-c-c++-common/{loop-red-g-1,routine-g-1}.c for non-nvidia devices 2017-10-05 Tom de Vries * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove vector_length(32) clause from acc parallel directive. * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same. From-SVN: r253439 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 6441453334d..fe97eeec790 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,9 @@ +2017-10-05 Tom de Vries + + * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove + vector_length(32) clause from acc parallel directive. + * testsuite/libgomp.oacc-c-c++-common/routine-g-1.c (main): Same. + 2017-10-04 Tom de Vries * testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.c diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c index d241d413625..929e01c447a 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c @@ -11,7 +11,7 @@ int main () int ondev = 0; int t = 0, h = 0; -#pragma acc parallel num_gangs(32) vector_length(32) copy(ondev) +#pragma acc parallel num_gangs(32) copy(ondev) { #pragma acc loop gang reduction (+:t) for (unsigned ix = 0; ix < N; ix++) diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/routine-g-1.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/routine-g-1.c index 9d14c3bd313..b6ab7134c0b 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/routine-g-1.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/routine-g-1.c @@ -36,7 +36,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) { ondev = __builtin_acc_on_device (5); gang (ary);