| 1 |
! 'stop-2.f' nvptx offloading variant |
| 2 |
|
| 3 |
! { dg-do run { target openacc_nvidia_accel_selected } } |
| 4 |
! |
| 5 |
! The PTX JIT doesn't understand the 'STOP' call graph, and therefore: |
| 6 |
! warning : Stack size for entry function 'main$_omp_fn$0' cannot be statically determined |
| 7 |
! Running with default 1024-bytes GPU thread stack size overflows the stack, |
| 8 |
! so raise it to an arbitrarily higher value: |
| 9 |
! { dg-set-target-env-var GOMP_NVPTX_NATIVE_GPU_THREAD_STACK_SIZE 3333 } |
| 10 |
|
| 11 |
PROGRAM MAIN |
| 12 |
IMPLICIT NONE |
| 13 |
|
| 14 |
! Initialize before the checkpoint, in case this produces any output. |
| 15 |
!$ACC PARALLEL |
| 16 |
!$ACC END PARALLEL |
| 17 |
|
| 18 |
PRINT *, "CheCKpOInT" |
| 19 |
!$ACC PARALLEL |
| 20 |
STOP 35 |
| 21 |
!$ACC END PARALLEL |
| 22 |
PRINT *, "WrONg WAy" |
| 23 |
|
| 24 |
END PROGRAM MAIN |
| 25 |
|
| 26 |
! { dg-output "CheCKpOInT(\n|\r\n|\r)+" } |
| 27 |
|
| 28 |
! { dg-output "STOP 35(\n|\r\n|\r)+" } |
| 29 |
! |
| 30 |
! PR85463. The 'exit' implementation used with nvptx |
| 31 |
! offloading is a little bit different. |
| 32 |
! { dg-output "libgomp: cuStreamSynchronize error.*" { target openacc_nvidia_accel_selected } } |
| 33 |
|
| 34 |
! { dg-output "$" } |
| 35 |
|
| 36 |
! { dg-shouldfail "" } |