Debian Codegraph @

gcc/testsuite/gfortran.dg/goacc/cache-1.f95

raw
1 ! OpenACC cache directive: valid usage.
2 ! For execution testing, this file is "#include"d from
3 ! libgomp/testsuite/libgomp.oacc-fortran/cache-1.f95.
4 ! { dg-additional-options "-std=f2008" }
5
6 program test
7 implicit none
8 integer :: i, d(10), e(5,13)
9
10 do concurrent (i=1:5)
11 !$acc cache (d(1:3))
12 !$acc cache (d(i:i+2))
13 !$acc cache (e(1:3,2:4))
14 !$acc cache (e(i:i+2,i+1:i+3))
15 enddo
16 end