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