Skip to main content

cuDeviceComputeCapability

Function cuDeviceComputeCapability 

Source
pub unsafe extern "C" fn cuDeviceComputeCapability(
    major: *mut c_int,
    minor: *mut c_int,
    dev: CUdevice,
) -> CUresult
👎Deprecated
Expand description

Returns the compute capability of the device.

Returns in *major and *minor the major and minor revision numbers that define the compute capability of the device dev.

Note that this function may also return error codes from previous, asynchronous launches.

§Parameters

  • major: Major revision number.
  • minor: Minor revision number.
  • dev: Device handle.

§Return value

See also: cuDeviceGetAttribute, cuDeviceGetCount, cuDeviceGetName, cuDeviceGetUuid, cuDeviceGet, cuDeviceTotalMem.