Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/libgomp/testsuite/libgomp.oacc-fortran/lib-2.f
2023-03-06 14:48:14 +01:00

15 lines
458 B
Fortran

! { dg-do run }
!
USE OPENACC
IF (ACC_GET_NUM_DEVICES (ACC_DEVICE_HOST) .NE. 1) STOP 1
CALL ACC_SET_DEVICE_TYPE (ACC_DEVICE_HOST)
IF (ACC_GET_DEVICE_TYPE () .NE. ACC_DEVICE_HOST) STOP 2
CALL ACC_SET_DEVICE_NUM (0, ACC_DEVICE_HOST)
IF (ACC_GET_DEVICE_NUM (ACC_DEVICE_HOST) .NE. 0) STOP 3
CALL ACC_SHUTDOWN (ACC_DEVICE_HOST)
CALL ACC_INIT (ACC_DEVICE_HOST)
CALL ACC_SHUTDOWN (ACC_DEVICE_HOST)
END