lib-1.f90 392 B

1234567891011121314
  1. use openacc
  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