1 /* Exercise zero-length sub-arrays. */
6 subzero_present (int *a
, int n
)
8 #pragma acc data present (a[0:n])
10 #pragma acc data pcopy (a[0:n])
12 #pragma acc data pcopyin (a[0:n])
14 #pragma acc data pcopyout (a[0:n])
20 subzero (int *a
, int n
)
22 #pragma acc data create (a[0:n])
24 #pragma acc data copy (a[0:n])
26 #pragma acc data copyin (a[0:n])
28 #pragma acc data copyout (a[0:n])
37 #pragma acc data copy (a[0:n])
39 subzero_present (a
, 0);