Function rcudnn_sys::cudaMemGetInfo[][src]

pub unsafe extern "C" fn cudaMemGetInfo(
    free: *mut usize,
    total: *mut usize
) -> cudaError_t
Expand description

\brief Gets free and total device memory

Returns in \p *free and \p *total respectively, the free and total amount of memory available for allocation by the device in bytes.

\param free - Returned free memory in bytes \param total - Returned total memory in bytes

\return ::cudaSuccess, ::cudaErrorInvalidValue, ::cudaErrorLaunchFailure \notefnerr \note_init_rt \note_callback

\sa ::cuMemGetInfo