Function cuDeviceTotalMem_v2

Source
pub unsafe extern "C" fn cuDeviceTotalMem_v2(
    bytes: *mut usize,
    dev: CUdevice,
) -> CUresult
Expand description

\brief Returns the total amount of memory on the device

Returns in \p *bytes the total amount of memory available on the device \p dev in bytes.

\param bytes - Returned memory available on device in bytes \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, ::cuDeviceGetExecAffinitySupport, ::cudaMemGetInfo