]> gcc.gnu.org Git - gcc.git/commitdiff
Fix libgomp.oacc-c-c++-common/parallel-reduction.c for non-nvidia devices
authorTom de Vries <tom@codesourcery.com>
Wed, 27 Sep 2017 12:35:54 +0000 (12:35 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 27 Sep 2017 12:35:54 +0000 (12:35 +0000)
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

libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-c-c++-common/parallel-reduction.c

index 0c8832cf0977d26fe8c998662c0e2834f4d7dcef..7fd88037878c847bd94b33711f0f2ec8e377c4b9 100644 (file)
@@ -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
index b2c60e5269726d8d94899cdc213e15ed38e10466..077571f29f0aadbb7673e8124d000830cf6e5c51 100644 (file)
@@ -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 ();
This page took 0.063584 seconds and 5 git commands to generate.