diff options
author | Tom de Vries <tom@codesourcery.com> | 2017-09-27 12:35:54 +0000 |
---|---|---|
committer | Tom de Vries <vries@gcc.gnu.org> | 2017-09-27 12:35:54 +0000 |
commit | 84c8627ce00ccd0d1b644c8c72450626b3e111fd (patch) | |
tree | 5bd5fced90b8601f34ab0fa6abe88e0fdbe3cdb6 /libgomp | |
parent | c1f80eef74964f2b2fca8c9e76c54d1fd08e4eb6 (diff) | |
download | gcc-84c8627ce00ccd0d1b644c8c72450626b3e111fd.zip gcc-84c8627ce00ccd0d1b644c8c72450626b3e111fd.tar.gz gcc-84c8627ce00ccd0d1b644c8c72450626b3e111fd.tar.bz2 |
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
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 0c8832c..7fd8803 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -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 diff --git a/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c b/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c index b2c60e5..077571f 100644 --- a/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c +++ b/libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c @@ -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 (); @@ -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 (); |