RmmTrackingResourceAdaptor#
- public class RmmTrackingResourceAdaptor<C extends RmmDeviceMemoryResource> extends RmmWrappingDeviceMemoryResource<C>#
A device memory resource that will track some basic statistics about the memory usage.
Constructor Summary
Create a new tracking resource adaptor.
Method Summary
Fields inherited from class
ai.rapids.cudf.RmmWrappingDeviceMemoryResource:wrappedMethods inherited from class
ai.rapids.cudf.RmmWrappingDeviceMemoryResource:getWrapped,releaseWrappedConstructors
- public RmmTrackingResourceAdaptor(C wrapped, long alignment)#
Create a new tracking resource adaptor.
- Parameters:
wrapped – the memory resource to track allocations. This should not be reused.
alignment – the alignment to apply.
Methods
- public long getHandle()#
- public long getTotalBytesAllocated()#
- public long getMaxTotalBytesAllocated()#
- public void resetScopedMaxTotalBytesAllocated(long initValue)#
- public long getScopedMaxTotalBytesAllocated()#
- public void close()#