Commit 8fe3ed4c by Tom de Vries Committed by Tom de Vries

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
parent 05e1eaeb
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.
2017-10-04 Tom de Vries <tom@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/par-loop-comb-reduction-3.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++)
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment