public class RmmTrackingResourceAdaptor<C extends RmmDeviceMemoryResource> extends RmmWrappingDeviceMemoryResource<C>
wrapped| Constructor and Description |
|---|
RmmTrackingResourceAdaptor(C wrapped,
long alignment)
Create a new tracking resource adaptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getHandle()
Returns a pointer to the underlying C++ class that implements rmm::mr::device_memory_resource
|
long |
getMaxTotalBytesAllocated() |
long |
getScopedMaxTotalBytesAllocated() |
long |
getTotalBytesAllocated() |
void |
resetScopedMaxTotalBytesAllocated(long initValue) |
String |
toString() |
getWrapped, releaseWrappedpublic RmmTrackingResourceAdaptor(C wrapped, long alignment)
wrapped - the memory resource to track allocations. This should not be reused.alignment - the alignment to apply.public long getHandle()
RmmDeviceMemoryResourcepublic long getTotalBytesAllocated()
public long getMaxTotalBytesAllocated()
public void resetScopedMaxTotalBytesAllocated(long initValue)
public long getScopedMaxTotalBytesAllocated()
public void close()
close in interface RmmDeviceMemoryResourceclose in interface AutoCloseableclose in class RmmWrappingDeviceMemoryResource<C extends RmmDeviceMemoryResource>Copyright © 2024. All rights reserved.