Package ai.rapids.cudf
Class RmmCudaMemoryResource
java.lang.Object
ai.rapids.cudf.RmmCudaMemoryResource
- All Implemented Interfaces:
RmmDeviceMemoryResource,AutoCloseable
A device memory resource that uses `cudaMalloc` and `cudaFree` for allocation and deallocation.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RmmCudaMemoryResource
public RmmCudaMemoryResource()
-
-
Method Details
-
getHandle
public long getHandle()Description copied from interface:RmmDeviceMemoryResourceReturns a pointer to the underlying C++ class that implements rmm::mr::device_memory_resource- Specified by:
getHandlein interfaceRmmDeviceMemoryResource
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceRmmDeviceMemoryResource
-
toString
-