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