Skip to main content

get_device_count

Function get_device_count 

Source
pub fn get_device_count() -> CudaRtResult<u32>
Expand description

Returns the number of CUDA-capable devices.

Mirrors cudaGetDeviceCount.

ยงErrors

Returns CudaRtError::DriverNotAvailable if the CUDA driver is not installed, or CudaRtError::NoGpu on systems with zero CUDA devices.