lib-3.f 464 B

1234567891011121314
  1. INCLUDE "openacc_lib.h"
  2. IF (ACC_GET_NUM_DEVICES (ACC_DEVICE_HOST) .NE. 1) CALL ABORT
  3. CALL ACC_SET_DEVICE_TYPE (ACC_DEVICE_HOST)
  4. IF (ACC_GET_DEVICE_TYPE () .NE. ACC_DEVICE_HOST) CALL ABORT
  5. CALL ACC_SET_DEVICE_NUM (0, ACC_DEVICE_HOST)
  6. IF (ACC_GET_DEVICE_NUM (ACC_DEVICE_HOST) .NE. 0) CALL ABORT
  7. CALL ACC_SHUTDOWN (ACC_DEVICE_HOST)
  8. CALL ACC_INIT (ACC_DEVICE_HOST)
  9. CALL ACC_SHUTDOWN (ACC_DEVICE_HOST)
  10. END