8 main (int argc
, char **argv
)
10 if (acc_get_num_devices (acc_device_nvidia
) == 0)
13 if (acc_get_current_cuda_context () != 0)
16 acc_init (acc_device_host
);
18 if (acc_get_current_cuda_context () != 0)
21 acc_shutdown (acc_device_host
);
23 if (acc_get_num_devices (acc_device_nvidia
) == 0)
26 if (acc_get_current_cuda_context () != 0)
29 acc_init (acc_device_nvidia
);
31 if (acc_get_current_cuda_context () == 0)
34 acc_shutdown (acc_device_nvidia
);
36 if (acc_get_current_cuda_context () != 0)
42 /* { dg-output "" } */