pub fn get_device() -> CudaRtResult<u32>Expand description
Returns the ordinal of the current CUDA device for the calling thread.
Mirrors cudaGetDevice.
ยงErrors
Returns CudaRtError::DeviceNotSet if no device has been selected.
pub fn get_device() -> CudaRtResult<u32>Returns the ordinal of the current CUDA device for the calling thread.
Mirrors cudaGetDevice.
Returns CudaRtError::DeviceNotSet if no device has been selected.