Package ai.rapids.cudf
Class DeviceMemoryBufferView
java.lang.Object
ai.rapids.cudf.MemoryBuffer
ai.rapids.cudf.BaseDeviceMemoryBuffer
ai.rapids.cudf.DeviceMemoryBufferView
- All Implemented Interfaces:
AutoCloseable
This class represents data in some form on the GPU. The memory pointed at by this buffer is
not owned by this buffer. So you have to be sure that this buffer does not outlive the buffer
that is backing it.
-
Nested Class Summary
Nested classes/interfaces inherited from class ai.rapids.cudf.MemoryBuffer
MemoryBuffer.EventHandler, MemoryBuffer.MemoryBufferCleaner
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal DeviceMemoryBufferView
slice
(long offset, long len) At the moment we don't have use for slicing a view.Methods inherited from class ai.rapids.cudf.BaseDeviceMemoryBuffer
copyFromDeviceBufferAsync, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBufferAsync, copyFromHostBufferAsync, sliceWithCopy
Methods inherited from class ai.rapids.cudf.MemoryBuffer
addressOutOfBoundsCheck, close, copyFromMemoryBuffer, copyFromMemoryBufferAsync, getAddress, getEventHandler, getLength, getRefCount, incRefCount, noWarnLeakExpected, setEventHandler, toString
-
Constructor Details
-
DeviceMemoryBufferView
public DeviceMemoryBufferView(long address, long lengthInBytes)
-
-
Method Details
-
slice
At the moment we don't have use for slicing a view.- Specified by:
slice
in classMemoryBuffer
- Parameters:
offset
- where to start the slice at.len
- how many bytes to slice- Returns:
- a slice of the original buffer that will need to be closed independently
-