public final class CuFileBuffer extends BaseDeviceMemoryBuffer
MemoryBuffer.EventHandler, MemoryBuffer.MemoryBufferCleaner
Modifier and Type | Method and Description |
---|---|
static CuFileBuffer |
allocate(long bytes,
boolean registerBuffer)
Allocate memory for use with cuFile on the GPU.
|
void |
close()
Close this buffer and free memory
|
MemoryBuffer |
slice(long offset,
long len)
Slice off a part of the buffer.
|
copyFromDeviceBufferAsync, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBufferAsync, copyFromHostBufferAsync, sliceWithCopy
addressOutOfBoundsCheck, copyFromMemoryBuffer, copyFromMemoryBufferAsync, getAddress, getEventHandler, getLength, getRefCount, incRefCount, noWarnLeakExpected, setEventHandler, toString
public static CuFileBuffer allocate(long bytes, boolean registerBuffer)
bytes
- size in bytes to allocateregisterBuffer
- If true, register the cuFile buffer.public MemoryBuffer slice(long offset, long len)
MemoryBuffer
slice
in class MemoryBuffer
offset
- where to start the slice at.len
- how many bytes to slicepublic void close()
MemoryBuffer
close
in interface AutoCloseable
close
in class MemoryBuffer
Copyright © 2024. All rights reserved.