1 ! See also "lib-16.f90".
3 ! { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } }
7 include "openacc_lib.h"
9 integer, parameter :: N
= 256
10 integer, allocatable
:: h(:)
26 call acc_update_device_async (h
, sizeof (h
), async
)
28 if (acc_is_present (h
) .neqv
. .TRUE
.) stop 1
34 call acc_copyout_async (h
, sizeof (h
), async
)
39 if (h(i
) /= i
+ i
) stop 2
42 call acc_copyin (h
, sizeof (h
))
46 call acc_update_self_async (h
, sizeof (h
), async
)
48 if (acc_is_present (h
) .neqv
. .TRUE
.) stop 3
53 if (h(i
) /= i
+ i
) stop 4
56 call acc_delete_async (h
, async
)
60 if (acc_is_present (h
) .neqv
. .FALSE
.) stop 5