public class RmmArenaMemoryResource<C extends RmmDeviceMemoryResource> extends RmmWrappingDeviceMemoryResource<C>
wrapped
Constructor and Description |
---|
RmmArenaMemoryResource(C wrapped,
long size,
boolean dumpLogOnFailure)
Create a new arena 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 |
getSize() |
String |
toString() |
getWrapped, releaseWrapped
public RmmArenaMemoryResource(C wrapped, long size, boolean dumpLogOnFailure)
wrapped
- the memory resource to use for the pool. This should not be reused.size
- the size of the pooldumpLogOnFailure
- if true, dump memory log when running out of memory.public long getHandle()
RmmDeviceMemoryResource
public long getSize()
public void close()
close
in interface RmmDeviceMemoryResource
close
in interface AutoCloseable
close
in class RmmWrappingDeviceMemoryResource<C extends RmmDeviceMemoryResource>
Copyright © 2024. All rights reserved.