1 ! { dg-additional-options "-cpp" }
2 ! TODO: Have to disable the acc_on_device builtin for we want to test the
3 ! libgomp library function? The command line option
4 ! '-fno-builtin-acc_on_device' is valid for C/C++/ObjC/ObjC++ but not for
12 if (.not
. acc_on_device (acc_device_none
)) STOP 1
13 if (.not
. acc_on_device (acc_device_host
)) STOP 2
14 if (acc_on_device (acc_device_not_host
)) STOP 3
15 if (acc_on_device (acc_device_nvidia
)) STOP 4
18 ! Host via offloading fallback mode.
20 !$acc parallel if(.false.)
21 if (.not
. acc_on_device (acc_device_none
)) STOP 5
22 if (.not
. acc_on_device (acc_device_host
)) STOP 6
23 if (acc_on_device (acc_device_not_host
)) STOP 7
24 if (acc_on_device (acc_device_nvidia
)) STOP 8
28 #
if !ACC_DEVICE_TYPE_host
33 if (acc_on_device (acc_device_none
)) STOP 9
34 if (acc_on_device (acc_device_host
)) STOP 10
35 if (.not
. acc_on_device (acc_device_not_host
)) STOP 11
36 #
if ACC_DEVICE_TYPE_nvidia
37 if (.not
. acc_on_device (acc_device_nvidia
)) STOP 12
39 if (acc_on_device (acc_device_nvidia
)) STOP 13