pub fn count() -> CudaResult<usize> {
    let mut count: c_int = 0;
    match unsafe { cudaGetDeviceCount(&mut count as *mut c_int) } {
      cudaError_cudaSuccess => {
        assert!(count >= 0);
        Ok(count as usize)
      }
      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<usize> {
    let mut count: c_int = 0;
    match unsafe { cudaGetDeviceCount(&mut count as *mut c_int) } {
      cudaError_cudaSuccess => {
        assert!(count >= 0);
        Ok(count as usize)
      }
      e => Err(CudaError(e)),
    }
  }
pub fn count ( ) -> CudaResult < usize > { let mut count : c_int = 0 ; match unsafe { cudaGetDeviceCount ( & mut count as * mut c_int ) } { cudaError_cudaSuccess => { assert ! ( count 0 ) ; Ok ( count as usize ) } e => Err ( CudaError ( e ) ) , } }
Count the number of devices.
Count the number of devices .