Skip to main content

cudaGetDeviceCount

Function cudaGetDeviceCount 

Source
pub unsafe extern "C" fn cudaGetDeviceCount(
    count: *mut c_int,
) -> cudaError_t
Expand description

Returns the number of compute-capable devices.

Returns in *count the number of devices with compute capability greater or equal to 2.0 that are available for execution.

ยงParameters

  • count: - Returns the number of devices with compute capability greater or equal to 2.0