Function hip_runtime_sys::hipMemGetInfo
source · pub unsafe extern "C" fn hipMemGetInfo(
free: *mut usize,
total: *mut usize
) -> hipError_tExpand description
@brief Query memory info. Return snapshot of free memory, and total allocatable memory on the device.
Returns in *free a snapshot of the current free memory. @returns #hipSuccess, #hipErrorInvalidDevice, #hipErrorInvalidValue @warning On HCC, the free memory only accounts for memory allocated by this process and may be optimistic.