2 /* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
9 main (int argc
, char **argv
)
16 acc_init (acc_device_default
);
18 h
= (unsigned char *) malloc (N
);
20 for (i
= 0; i
< N
; i
++)
27 acc_memcpy_to_device (d
, h
, N
);
31 acc_memcpy_to_device (d
, h
, 0);
33 acc_memcpy_from_device (h
, d
, N
);
35 for (i
= 0; i
< N
; i
++)
45 acc_shutdown (acc_device_default
);