pub unsafe extern "C" fn cuDeviceGet(
device: *mut CUdevice,
ordinal: c_int,
) -> CUresult
Expand description
\brief Returns a handle to a compute device
Returns in \p *device a device handle given an ordinal in the range [0, ::cuDeviceGetCount()-1].
\param device - Returned device handle \param ordinal - Device number to get handle for
\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, ::cuDeviceGetLuid, ::cuDeviceTotalMem, ::cuDeviceGetExecAffinitySupport