pub unsafe extern "C" fn cuDeviceComputeCapability(
major: *mut c_int,
minor: *mut c_int,
dev: CUdevice,
) -> CUresult
Expand description
\brief Returns the compute capability of the device
\deprecated
This function was deprecated as of CUDA 5.0 and its functionality superseded by ::cuDeviceGetAttribute().
Returns in \p *major and \p *minor the major and minor revision numbers that define the compute capability of the device \p dev.
\param major - Major revision number \param minor - Minor revision number \param dev - Device handle
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_DEVICE \notefnerr
\sa ::cuDeviceGetAttribute, ::cuDeviceGetCount, ::cuDeviceGetName, ::cuDeviceGetUuid, ::cuDeviceGet, ::cuDeviceTotalMem