warp.get_mempool_used_mem_current#
- warp.get_mempool_used_mem_current(device=None)[source]#
Get the amount of memory from the device’s memory pool that is currently in use by the application.
- Parameters:
device (Device | str | None) – The
Deviceor device identifier for which the query is to be performed. IfNone, the default device will be used.- Returns:
The amount of memory used in bytes.
- Raises:
ValueError – If
deviceis not a CUDA device.RuntimeError – If
deviceis a CUDA device, but does not support memory pools.
- Return type: