set_device_id Subroutine

public subroutine set_device_id(backend, device_id)

Given a specific backend, set the device to use

Arguments

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

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

integer, intent(in) :: device_id

Desired device id to use. If there are count devices, device_id ranges from 0 to count-1.


Calls

proc~~set_device_id~~CallsGraph proc~set_device_id set_device_id interface~cxx_set_device cxx_set_device proc~set_device_id->interface~cxx_set_device proc~handle_error handle_error proc~set_device_id->proc~handle_error none~handle_error error_handler_t%handle_error proc~handle_error->none~handle_error

Called by

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