Mercurial > hg > CbC > CbC_gcc
view libgomp/testsuite/libgomp.oacc-fortran/pr68813.f90 @ 120:f93fa5091070
fix conv1.c
author | mir3636 |
---|---|
date | Thu, 08 Mar 2018 14:53:42 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line source
program foo implicit none integer, parameter :: n = 100 integer, dimension(n,n) :: a integer :: i, j, sum = 0 a = 1 !$acc parallel copyin(a(1:n,1:n)) firstprivate (sum) !$acc loop gang reduction(+:sum) do i=1, n !$acc loop vector reduction(+:sum) do j=1, n sum = sum + a(i, j) enddo enddo !$acc end parallel end program foo