pub fn memory_info() -> CudaResult<MemoryInfo>Expand description
Queries free and total device memory for the current CUDA context.
The returned values reflect the state at the time of the query and may change as other threads or processes allocate or free memory.
ยงErrors
Returns an error if no context is current or the driver call fails.