2 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
9 main (int argc
, char **argv
)
16 for (i
= 0; i
< N
; i
++)
21 h
[i
] = (unsigned char *) malloc (N
);
25 for (j
= 0; j
< N
; j
++)
30 d
[i
] = acc_malloc (N
);
32 acc_memcpy_to_device (d
[i
], h
[i
], N
);
34 for (j
= 0; j
< N
; j
++)
36 if (acc_is_present (h
[i
] + j
, 1) != 0)
41 for (i
= 0; i
< N
; i
++)
48 acc_memcpy_from_device (h
[i
], d
[i
], N
);
52 for (j
= 0; j
< N
; j
++)
58 for (j
= 0; j
< N
; j
++)
60 if (acc_is_present (h
[i
] + j
, 1) != 0)