Skip to main content

get_cuda_free_memory

Function get_cuda_free_memory 

Source
pub fn get_cuda_free_memory() -> Result<String>
Expand description

Return the free and total memory of the current CUDA device, as a message (runtime.GetCudaFreeMemory).

ยงErrors

Returns an error if the CUDA runtime is not built or loaded.