public class RmmPoolMemoryResource<C extends RmmDeviceMemoryResource> extends RmmWrappingDeviceMemoryResource<C>
wrapped| Constructor and Description |
|---|
RmmPoolMemoryResource(C wrapped,
long initSize,
long maxSize)
Create a new pooled memory resource taking ownership of the RmmDeviceMemoryResource that it is
wrapping.
|
| 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 |
getMaxSize() |
String |
toString() |
getWrapped, releaseWrappedpublic RmmPoolMemoryResource(C wrapped, long initSize, long maxSize)
wrapped - the memory resource to use for the pool. This should not be reused.initSize - the size of the initial poolmaxSize - the size of the maximum poolpublic long getMaxSize()
public long getHandle()
RmmDeviceMemoryResourcepublic void close()
close in interface RmmDeviceMemoryResourceclose in interface AutoCloseableclose in class RmmWrappingDeviceMemoryResource<C extends RmmDeviceMemoryResource>Copyright © 2024. All rights reserved.