warp.get_mempool_used_mem_high#

warp.get_mempool_used_mem_high(device=None)[source]#

Get the application’s memory usage high-water mark from the device’s CUDA memory pool.

Parameters:

device (Device | str | None) – The Device or device identifier for which the query is to be performed. If None, the default device will be used.

Returns:

The high-water mark of memory used from the memory pool in bytes.

Raises:
  • ValueError – If device is not a CUDA device.

  • RuntimeError – If device is a CUDA device, but does not support memory pools.

Return type:

int