cuda.bindings._v2.driver.device_graph_mem_trim#

cuda.bindings._v2.driver.device_graph_mem_trim(int device)#

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 (int) – The device for which cached memory should be freed.

See also

cuDeviceGraphMemTrim