get_device_count Subroutine

public subroutine get_device_count(backend, count)

Get the number of available devices for the backend specified.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: backend

Backend to use. Should be one of * BACKEND_CPU * BACKEND_GPU

integer, intent(out) :: count

Number of available devices