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.