Package ai.rapids.cudf
Class RmmWrappingDeviceMemoryResource<C extends RmmDeviceMemoryResource>
java.lang.Object
ai.rapids.cudf.RmmWrappingDeviceMemoryResource<C>
- All Implemented Interfaces:
RmmDeviceMemoryResource
,AutoCloseable
- Direct Known Subclasses:
RmmArenaMemoryResource
,RmmEventHandlerResourceAdaptor
,RmmLimitingResourceAdaptor
,RmmLoggingResourceAdaptor
,RmmPoolMemoryResource
,RmmTrackingResourceAdaptor
public abstract class RmmWrappingDeviceMemoryResource<C extends RmmDeviceMemoryResource>
extends Object
implements RmmDeviceMemoryResource
A resource that wraps another RmmDeviceMemoryResource
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Get the resource that this is wrapping.Release the wrapped device memory resource and close this.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ai.rapids.cudf.RmmDeviceMemoryResource
getHandle
-
Field Details
-
wrapped
-
-
Constructor Details
-
RmmWrappingDeviceMemoryResource
-
-
Method Details
-
getWrapped
Get the resource that this is wrapping. Be very careful when using this as the returned value should not be added to another resource until it has been released.- Returns:
- the resource that this is wrapping.
-
releaseWrapped
Release the wrapped device memory resource and close this.- Returns:
- the wrapped DeviceMemoryResource.
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceRmmDeviceMemoryResource
-