1 /* Disable the acc_on_device builtin; we want to test the libgomp library
3 /* { dg-additional-options "-fno-builtin-acc_on_device" } */
9 main (int argc
, char *argv
[])
14 if (!acc_on_device (acc_device_none
))
16 if (!acc_on_device (acc_device_host
))
18 if (acc_on_device (acc_device_not_host
))
20 if (acc_on_device (acc_device_nvidia
))
25 /* Host via offloading fallback mode. */
27 #pragma acc parallel if(0)
29 if (!acc_on_device (acc_device_none
))
31 if (!acc_on_device (acc_device_host
))
33 if (acc_on_device (acc_device_not_host
))
35 if (acc_on_device (acc_device_nvidia
))
40 #if !ACC_DEVICE_TYPE_host
46 if (acc_on_device (acc_device_none
))
48 if (acc_on_device (acc_device_host
))
50 if (!acc_on_device (acc_device_not_host
))
52 #if ACC_DEVICE_TYPE_nvidia
53 if (!acc_on_device (acc_device_nvidia
))
56 if (acc_on_device (acc_device_nvidia
))