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.
|
static DeviceMemoryBuffer |
allocate(long bytes,
Cuda.Stream stream)
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, copyFromMemoryBuffer, copyFromMemoryBufferAsync, getAddress, getLength, incRefCount, noWarnLeakExpected, toStringpublic static DeviceMemoryBuffer allocate(long bytes)
bytes - size in bytes to allocatepublic static DeviceMemoryBuffer allocate(long bytes, Cuda.Stream stream)
bytes - size in bytes to allocatestream - The stream in which to synchronize this commandpublic final DeviceMemoryBuffer slice(long offset, long len)
slice in class MemoryBufferoffset - where to start the slice at.len - how many bytes to sliceCopyright © 2021. All rights reserved.