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


Calls

proc~~get_device_count~~CallsGraph proc~get_device_count get_device_count interface~cxx_get_device_count cxx_get_device_count proc~get_device_count->interface~cxx_get_device_count proc~handle_error handle_error proc~get_device_count->proc~handle_error none~handle_error error_handler_t%handle_error proc~handle_error->none~handle_error

Called by

proc~~get_device_count~~CalledByGraph proc~get_device_count get_device_count proc~impose_default_device_affinity impose_default_device_affinity proc~impose_default_device_affinity->proc~get_device_count program~benchmark_helmholtz_solvers benchmark_helmholtz_solvers program~benchmark_helmholtz_solvers->proc~impose_default_device_affinity