]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix libgomp.oacc-fortran/{firstprivate-1,parallel-reduction}.f90 for non-nvidia devices
authorTom de Vries <tom@codesourcery.com>
Sat, 7 Oct 2017 08:46:00 +0000 (08:46 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Sat, 7 Oct 2017 08:46:00 +0000 (08:46 +0000)
2017-10-07  Tom de Vries  <tom@codesourcery.com>

* testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
Remove acc_device_nvidia references.
* testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
Same.

From-SVN: r253507

libgomp/ChangeLog
libgomp/testsuite/libgomp.oacc-fortran/firstprivate-1.f90
libgomp/testsuite/libgomp.oacc-fortran/parallel-reduction.f90

index fe97eeec790c1f4521fb526b897edcfb88180e1a..afa373ec7bbe6124fd1a457f00f40d10d4b4e358 100644 (file)
@@ -1,3 +1,10 @@
+2017-10-07  Tom de Vries  <tom@codesourcery.com>
+
+       * testsuite/libgomp.oacc-fortran/firstprivate-1.f90 (firstprivate):
+       Remove acc_device_nvidia references.
+       * testsuite/libgomp.oacc-fortran/parallel-reduction.f90 (reduction):
+       Same.
+
 2017-10-05  Tom de Vries  <tom@codesourcery.com>
 
        * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
index d3f909361fb54e8e8cb64327ec68caab62867e89..38660967aa7c477d0701aff0b6beb5856626a8b5 100644 (file)
@@ -5,7 +5,7 @@ program firstprivate
   integer :: a, b(Nupper), c, d, n
   include "openacc_lib.h"
 
-  if (acc_get_device_type () .eq. acc_device_nvidia) then
+  if (acc_get_device_type () .ne. acc_device_host) then
      n = Nupper
   else
      n = 1
index 31db7e12454d4a9e74c74de3024cf3028c949bb9..d0559a2adf76a3e10b544dac70cea70c2dba311c 100644 (file)
@@ -15,7 +15,7 @@ program reduction
   s2 = s2 + 1
   !$acc end parallel
 
-  if (acc_get_device_type () .eq. acc_device_nvidia) then
+  if (acc_get_device_type () .ne. acc_device_host) then
      if (s1 .ne. n) call abort
      if (s2 .ne. n) call abort
   else
@@ -29,7 +29,7 @@ program reduction
   s2 = 0
   call redsub (s1, s2, n)
 
-  if (acc_get_device_type () .eq. acc_device_nvidia) then
+  if (acc_get_device_type () .ne. acc_device_host) then
      if (s1 .ne. n) call abort
   else
      if (s2 .ne. 1) call abort