In particular, the following attributes seem useful to query: - `cudaMemPoolAttrUsedMemCurrent` - `cudaMemPoolAttrUsedMemHigh` See https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__MEMORY__POOLS.html for more information.