Commit 84c8627c by Tom de Vries Committed by Tom de Vries

Fix libgomp.oacc-c-c++-common/parallel-reduction.c for non-nvidia devices

2017-09-27  Tom de Vries  <tom@codesourcery.com>

	* testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
	Remove acc_device_nvidia references.

From-SVN: r253228
parent c1f80eef
2017-09-27 Tom de Vries <tom@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main):
Remove acc_device_nvidia references.
2017-09-16 Tom de Vries <tom@codesourcery.com> 2017-09-16 Tom de Vries <tom@codesourcery.com>
PR c/81875 PR c/81875
......
...@@ -21,7 +21,7 @@ main () ...@@ -21,7 +21,7 @@ main ()
} }
} }
if (acc_get_device_type () != acc_device_nvidia) if (acc_get_device_type () == acc_device_host)
{ {
if (s1 != 1) if (s1 != 1)
abort (); abort ();
...@@ -41,7 +41,7 @@ main () ...@@ -41,7 +41,7 @@ main ()
s2 += N; s2 += N;
} }
if (acc_get_device_type () != acc_device_nvidia) if (acc_get_device_type () == acc_device_host)
{ {
if (s1 != 1) if (s1 != 1)
abort (); abort ();
......
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