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, releaseWrapped
public 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()
RmmDeviceMemoryResource
public long getTotalBytesAllocated()
public long getMaxTotalBytesAllocated()
public void resetScopedMaxTotalBytesAllocated(long initValue)
public long getScopedMaxTotalBytesAllocated()
public void close()
close
in interface RmmDeviceMemoryResource
close
in interface AutoCloseable
close
in class RmmWrappingDeviceMemoryResource<C extends RmmDeviceMemoryResource>
Copyright © 2024. All rights reserved.