RmmWrappingDeviceMemoryResource#

public abstract class RmmWrappingDeviceMemoryResource<C extends RmmDeviceMemoryResource> implements RmmDeviceMemoryResource#

A resource that wraps another RmmDeviceMemoryResource.

Field Summary

Constructor Summary

Method Summary

close()

getWrapped()

Get the resource that this is wrapping.

releaseWrapped()

Release the wrapped device memory resource and close this.

Methods inherited from interface ai.rapids.cudf.RmmDeviceMemoryResource: getHandle

Protected Fields

protected C wrapped#

Constructors

public RmmWrappingDeviceMemoryResource(C wrapped)#

Methods

public C 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.

public C releaseWrapped()#

Release the wrapped device memory resource and close this.

Returns:

the wrapped DeviceMemoryResource.

public void close()#