Skip to main content

cudaDeviceGraphMemTrim

Function cudaDeviceGraphMemTrim 

Source
pub unsafe extern "C" fn cudaDeviceGraphMemTrim(
    device: c_int,
) -> cudaError_t
Expand description

Free unused memory that was cached on the specified device for use with graphs back to the OS.

Blocks which are not in use by a graph that is either currently executing or scheduled to execute are freed back to the operating system.

ยงParameters

  • device: - The device for which cached memory should be freed.