public class DeviceMemoryBuffer extends BaseDeviceMemoryBuffer
MemoryBuffer.MemoryBufferCleaner| Modifier and Type | Method and Description |
|---|---|
static DeviceMemoryBuffer |
allocate(long bytes)
Allocate memory for use on the GPU.
|
DeviceMemoryBuffer |
slice(long offset,
long len)
Slice off a part of the device buffer.
|
copyFromDeviceBufferAsync, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBuffer, copyFromHostBufferAsync, copyFromHostBufferAsync, sliceWithCopyaddressOutOfBoundsCheck, close, getAddress, getLength, noWarnLeakExpected, toStringpublic static DeviceMemoryBuffer allocate(long bytes)
bytes - size in bytes to allocatepublic final DeviceMemoryBuffer slice(long offset, long len)
slice in class MemoryBufferoffset - where to start the slice at.len - how many bytes to sliceCopyright © 2020. All rights reserved.