Debian Codegraph @

libgomp/testsuite/libgomp.oacc-fortran/error_stop-2.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 ERROR STOP 35
13 !$ACC END PARALLEL
14 PRINT *, "WrONg WAy"
15
16 END PROGRAM MAIN
17
18 ! { dg-output "CheCKpOInT(\n|\r\n|\r)+" }
19
20 ! See 'error_stop-2-nvptx.f' regarding the nvptx offloading XFAIL.
21 ! { dg-output "ERROR STOP 35(\n|\r\n|\r)+" { xfail openacc_nvidia_accel_selected } }
22 !
23 ! In gfortran's main program, libfortran's set_options is called - which sets
24 ! compiler_options.backtrace = 1 by default. For an offload libgfortran, this
25 ! is never called and, hence, "Error termination." is never printed. Thus:
26 ! { dg-output "Error termination.*" { target { ! { openacc_nvidia_accel_selected || openacc_radeon_accel_selected } } } }
27
28 ! PR85463. The 'exit' implementation used with nvptx
29 ! offloading is a little bit different.
30 ! { dg-output "libgomp: cuStreamSynchronize error.*" { target openacc_nvidia_accel_selected } }
31
32 ! { dg-shouldfail "" }