public class RmmLimitingResourceAdaptor<C extends RmmDeviceMemoryResource> extends RmmWrappingDeviceMemoryResource<C>
wrapped| Constructor and Description |
|---|
RmmLimitingResourceAdaptor(C wrapped,
long limit,
long alignment)
Create a new limiting 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
|
String |
toString() |
getWrapped, releaseWrappedpublic RmmLimitingResourceAdaptor(C wrapped, long limit, long alignment)
wrapped - the memory resource to limit. This should not be reused.limit - the allocation limit in bytesalignment - the alignmentpublic long getHandle()
RmmDeviceMemoryResourcepublic void close()
close in interface RmmDeviceMemoryResourceclose in interface AutoCloseableclose in class RmmWrappingDeviceMemoryResource<C extends RmmDeviceMemoryResource>Copyright © 2024. All rights reserved.