Retro68/gcc/libgomp/testsuite/libgomp.oacc-fortran/combined-reduction.f90

20 lines
288 B
Fortran
Raw Normal View History

2017-04-10 11:32:00 +00:00
! Test a combined acc parallel loop reduction.
! { dg-do run }
program test
implicit none
integer i, n, var
n = 100
var = 0
!$acc parallel loop reduction(+:var)
do i = 1, 100
var = var + 1
end do
!$acc end parallel loop
2018-12-28 15:30:48 +00:00
if (var .ne. n) STOP 1
2017-04-10 11:32:00 +00:00
end program test