4912a04f8b
..., per OpenACC 3.0, A.1.2. "AMD GPU Targets".
This complements commit 6687d13a87
"Rename
acc_device_gcn to acc_device_radeon".
libgomp/
* oacc-init.c (get_openacc_name): Handle 'gcn'.
* testsuite/lib/libgomp.exp
(offload_target_to_openacc_device_type) [amdgcn*]: Return
'radeon'. Adjust all users.
(check_effective_target_openacc_amdgcn_accel_present): Rename
to...
(check_effective_target_openacc_radeon_accel_present): ... this.
Adjust all users.
(check_effective_target_openacc_amdgcn_accel_selected): Rename to...
(check_effective_target_openacc_radeon_accel_selected): ... this.
Adjust all users.
26 lines
769 B
Fortran
26 lines
769 B
Fortran
! { dg-do run }
|
|
|
|
PROGRAM MAIN
|
|
IMPLICIT NONE
|
|
|
|
PRINT *, "CheCKpOInT"
|
|
!$ACC PARALLEL
|
|
ERROR STOP 35
|
|
!$ACC END PARALLEL
|
|
PRINT *, "WrONg WAy"
|
|
|
|
END PROGRAM MAIN
|
|
|
|
! { dg-output "CheCKpOInT(\n|\r\n|\r)+" }
|
|
! { dg-output "ERROR STOP 35(\n|\r\n|\r)+" }
|
|
!
|
|
! In gfortran's main program, libfortran's set_options is called - which sets
|
|
! compiler_options.backtrace = 1 by default. For an offload libgfortran, this
|
|
! is never called and, hence, "Error termination." is never printed. Thus:
|
|
! { dg-output "Error termination.*" { target { ! { openacc_nvidia_accel_selected || openacc_radeon_accel_selected } } } }
|
|
!
|
|
! PR85463:
|
|
! { dg-output "libgomp: cuStreamSynchronize error.*" { target openacc_nvidia_accel_selected } }
|
|
!
|
|
! { dg-shouldfail "" }
|