diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-10-05 08:31:46 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-10-05 08:31:46 +0000 |
commit | 8fe3ed4c10e293c69479042667161c79f0accf3e (patch) | |
tree | 374fd445ec29385d62719dbb839ea0eb9d25f382 /libgomp/testsuite | |
parent | 05e1eaeb1b3392254eeb80c1c0c4b7e456ffd8ae (diff) | |
download | gcc-8fe3ed4c10e293c69479042667161c79f0accf3e.zip gcc-8fe3ed4c10e293c69479042667161c79f0accf3e.tar.gz gcc-8fe3ed4c10e293c69479042667161c79f0accf3e.tar.bz2 |
Fix libgomp.oacc-c-c++-common/{loop-red-g-1,routine-g-1}.c for non-nvidia devices
2017-10-05 Tom de Vries <tom@codesourcery.com>
* 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
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c | 2 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/routine-g-1.c | 2 |
2 files changed, 2 insertions, 2 deletions
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 d241d41..929e01c 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 9d14c3b..b6ab713 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); |