public class RmmCudaAsyncMemoryResource extends Object implements RmmDeviceMemoryResource
Constructor and Description |
---|
RmmCudaAsyncMemoryResource(long size,
long releaseThreshold)
Create a new async memory resource
|
RmmCudaAsyncMemoryResource(long size,
long releaseThreshold,
boolean fabric)
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 RmmCudaAsyncMemoryResource(long size, long releaseThreshold, boolean fabric)
size
- the initial size of the poolreleaseThreshold
- size in bytes for when memory is released back to cudafabric
- if true request peer read+write accessible fabric handles when
creating the poolpublic long getHandle()
RmmDeviceMemoryResource
getHandle
in interface RmmDeviceMemoryResource
public long getSize()
public void close()
close
in interface RmmDeviceMemoryResource
close
in interface AutoCloseable
Copyright © 2025. All rights reserved.