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()
RmmDeviceMemoryResource
getHandle
in interface RmmDeviceMemoryResource
public long getSize()
public void close()
close
in interface RmmDeviceMemoryResource
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.