Skip to content

Commit

Permalink
Fix libgomp.oacc-c-c++-common/parallel-reduction.c for non-nvidia dev…
Browse files Browse the repository at this point in the history
…ices

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

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253228 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
vries committed Sep 27, 2017
1 parent 2e52bc2 commit 563f10e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions libgomp/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
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>

PR c/81875
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ main ()
}
}

if (acc_get_device_type () != acc_device_nvidia)
if (acc_get_device_type () == acc_device_host)
{
if (s1 != 1)
abort ();
Expand All @@ -41,7 +41,7 @@ main ()
s2 += N;
}

if (acc_get_device_type () != acc_device_nvidia)
if (acc_get_device_type () == acc_device_host)
{
if (s1 != 1)
abort ();
Expand Down

0 comments on commit 563f10e

Please sign in to comment.