8 main (int argc
, char **argv
)
10 if (acc_get_current_cuda_context () != 0)
13 acc_init (acc_device_host
);
15 if (acc_get_current_cuda_context () != 0)
18 acc_shutdown (acc_device_host
);
20 if (acc_get_current_cuda_context () != 0)
23 if (acc_get_num_devices (acc_device_nvidia
))
25 acc_init (acc_device_nvidia
);
27 if (acc_get_current_cuda_context () == 0)
30 acc_shutdown (acc_device_nvidia
);
33 if (acc_get_num_devices (acc_device_radeon
))
35 acc_init (acc_device_radeon
);
37 if (acc_get_current_cuda_context () != 0)
40 acc_shutdown (acc_device_radeon
);
43 if (acc_get_current_cuda_context () != 0)
49 /* { dg-output "" } */