Skip to main content

check_gpu_memory

Function check_gpu_memory 

Source
pub fn check_gpu_memory(device: Device) -> Result<(usize, usize), Error>
Expand description

Check available GPU memory before attempting an operation

Returns (free_bytes, total_bytes) for the specified device. Only works for CUDA/ROCm devices.