pub fn count() -> CudaResult<i32> {
    let mut count: c_int = 0;
    match unsafe { cudaGetDeviceCount(&mut count as *mut c_int) } {
      cudaError_cudaSuccess => {
        assert!(count >= 0);
        Ok(count)
      }
      e => Err(CudaError(e)),
    }
  }
/// Count the number of devices.
///
/// Corresponds to `cudaGetDeviceCount`.
Count the number of devices.
Count the number of devices .
pub fn count() -> CudaResult<i32> {
    let mut count: c_int = 0;
    match unsafe { cudaGetDeviceCount(&mut count as *mut c_int) } {
      cudaError_cudaSuccess => {
        assert!(count >= 0);
        Ok(count)
      }
      e => Err(CudaError(e)),
    }
  }
pub fn count ( ) -> CudaResult < i32 > { let mut count : c_int = 0 ; match unsafe { cudaGetDeviceCount ( & mut count as * mut c_int ) } { cudaError_cudaSuccess => { assert ! ( count 0 ) ; Ok ( count ) } e => Err ( CudaError ( e ) ) , } }
Count the number of devices.
Count the number of devices .