Debian Codegraph @

libgomp/testsuite/libgomp.oacc-fortran/stop-3.f

raw
1 ! { dg-do run }
2
3 PROGRAM MAIN
4 IMPLICIT NONE
5
6 ! Initialize before the checkpoint, in case this produces any output.
7 !$ACC PARALLEL
8 !$ACC END PARALLEL
9
10 PRINT *, "CheCKpOInT"
11 !$ACC PARALLEL
12 STOP "SiGN"
13 !$ACC END PARALLEL
14 PRINT *, "WrONg WAy"
15
16 END PROGRAM MAIN
17
18 ! { dg-output "CheCKpOInT(\n|\r\n|\r)+" }
19
20 ! { dg-output "STOP SiGN(\n|\r\n|\r)+" }
21 !
22 ! PR85463. The 'exit' implementation used with nvptx
23 ! offloading is a little bit different.
24 ! { dg-output "libgomp: cuStreamSynchronize error.*" { target openacc_nvidia_accel_selected } }
25
26 ! { dg-output "$" }
27
28 ! PR85463. STOP with code zero (as implied here) should actually
29 ! terminate the process normally, but doesn't with the 'exit'
30 ! implementation used with nvptx offloading.
31 ! { dg-shouldfail PR85463 { openacc_nvidia_accel_selected } }