warp.get_mempool_release_threshold#
- warp.get_mempool_release_threshold(device=None)[source]#
Get the CUDA memory pool release threshold on the device.
- 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 memory pool release threshold in bytes.
- Raises:
ValueError – If
deviceis not a CUDA device.RuntimeError – If
deviceis a CUDA device, but does not support memory pools.
- Return type: