Commit e923330e by Tom de Vries Committed by Tom de Vries

Fix libgomp.oacc-fortran/{firstprivate-1,parallel-reduction}.f90 for non-nvidia devices

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
parent 06833311
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> 2017-10-05 Tom de Vries <tom@codesourcery.com>
* testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove * testsuite/libgomp.oacc-c-c++-common/loop-red-g-1.c (main): Remove
......
...@@ -5,7 +5,7 @@ program firstprivate ...@@ -5,7 +5,7 @@ program firstprivate
integer :: a, b(Nupper), c, d, n integer :: a, b(Nupper), c, d, n
include "openacc_lib.h" 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 n = Nupper
else else
n = 1 n = 1
......
...@@ -15,7 +15,7 @@ program reduction ...@@ -15,7 +15,7 @@ program reduction
s2 = s2 + 1 s2 = s2 + 1
!$acc end parallel !$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 (s1 .ne. n) call abort
if (s2 .ne. n) call abort if (s2 .ne. n) call abort
else else
...@@ -29,7 +29,7 @@ program reduction ...@@ -29,7 +29,7 @@ program reduction
s2 = 0 s2 = 0
call redsub (s1, s2, n) 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 if (s1 .ne. n) call abort
else else
if (s2 .ne. 1) call abort if (s2 .ne. 1) call abort
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment