From: Tom de Vries Date: Wed, 27 Sep 2017 12:35:54 +0000 (+0000) Subject: Fix libgomp.oacc-c-c++-common/parallel-reduction.c for non-nvidia devices X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=84c8627ce00ccd0d1b644c8c72450626b3e111fd;p=gcc.git Fix libgomp.oacc-c-c++-common/parallel-reduction.c for non-nvidia devices 2017-09-27 Tom de Vries * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main): Remove acc_device_nvidia references. From-SVN: r253228 --- diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 0c8832cf097..7fd88037878 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,8 @@ +2017-09-27 Tom de Vries + + * testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c (main): + Remove acc_device_nvidia references. + 2017-09-16 Tom de Vries 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 b2c60e52697..077571f29f0 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 ();