14 lines
452 B
FortranFixed
Raw Normal View History

2015-08-28 17:33:40 +02:00
INCLUDE "openacc_lib.h"
2018-12-28 16:30:48 +01:00
IF (ACC_GET_NUM_DEVICES (ACC_DEVICE_HOST) .NE. 1) STOP 1
2015-08-28 17:33:40 +02:00
CALL ACC_SET_DEVICE_TYPE (ACC_DEVICE_HOST)
2018-12-28 16:30:48 +01:00
IF (ACC_GET_DEVICE_TYPE () .NE. ACC_DEVICE_HOST) STOP 2
2015-08-28 17:33:40 +02:00
CALL ACC_SET_DEVICE_NUM (0, ACC_DEVICE_HOST)
2018-12-28 16:30:48 +01:00
IF (ACC_GET_DEVICE_NUM (ACC_DEVICE_HOST) .NE. 0) STOP 3
2015-08-28 17:33:40 +02:00
CALL ACC_SHUTDOWN (ACC_DEVICE_HOST)
CALL ACC_INIT (ACC_DEVICE_HOST)
CALL ACC_SHUTDOWN (ACC_DEVICE_HOST)
END