Skip to main content

mem_get_info

Function mem_get_info 

Source
pub fn mem_get_info() -> CudaRtResult<(usize, usize)>
Expand description

Returns (free_bytes, total_bytes) for the current device’s global memory.

Mirrors cudaMemGetInfo.

§Errors

Propagates driver errors.