pub fn set_device(device: i32) -> Result<()>
Expand description
Sets a device and initializes it for the current thread.
ยงParameters
- device: System index of a CUDA device starting with 0.
If the call of this function is omitted, a default device is initialized at the fist CUDA usage.