public class RmmCudaAsyncMemoryResource extends Object implements RmmDeviceMemoryResource
| Constructor and Description |
|---|
RmmCudaAsyncMemoryResource(long size,
long releaseThreshold)
Create a new async memory resource
|
| 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() |
public RmmCudaAsyncMemoryResource(long size,
long releaseThreshold)
size - the initial size of the poolreleaseThreshold - size in bytes for when memory is released back to cudapublic long getHandle()
RmmDeviceMemoryResourcegetHandle in interface RmmDeviceMemoryResourcepublic long getSize()
public void close()
close in interface RmmDeviceMemoryResourceclose in interface AutoCloseableCopyright © 2024. All rights reserved.