1 ! Exercise the data movement runtime library functions on non-shared memory
5 ! { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } }
11 integer, parameter :: N
= 256
12 integer, allocatable
:: h(:)
21 call acc_present_or_copyin (h
)
23 if (acc_is_present (h
) .neqv
. .TRUE
.) stop 1
27 if (acc_is_present (h
) .neqv
. .FALSE
.) stop 1
37 call acc_pcopyin (h
, sizeof (h
))
39 if (acc_is_present (h
) .neqv
. .TRUE
.) stop 1
43 if (acc_is_present (h
) .neqv
. .FALSE
.) stop 1
46 if (h(i
) /= i
+ i
) stop 1
51 if (acc_is_present (h
) .neqv
. .TRUE
.) stop 1
61 if (acc_is_present (h
) .neqv
. .FALSE
.) stop 1
67 call acc_present_or_create (h
, sizeof (h
))
69 if (acc_is_present (h
) .neqv
. .TRUE
.) stop 1
73 if (acc_is_present (h
) .neqv
. .FALSE
.) stop 1
77 if (acc_is_present (h
) .neqv
. .TRUE
.) stop 1
81 if (acc_is_present (h
) .neqv
. .FALSE
.) stop 1