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
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_INVALID_DEVICE
See also: cuDeviceGetAttribute, cuDeviceGetCount, cuDeviceGetName, cuDeviceGetUuid, cuDeviceGet, cuDeviceTotalMem.