View Source EXLA.DeviceBuffer (EXLA v0.9.2)
An EXLA DeviceBuffer for data allocated in the device.
Summary
Functions
Copies buffer to device with given device ID.
Deallocates the underlying buffer.
Places the given binary data
on the given device
using client
.
Reads size
from the underlying buffer ref.
Functions
Copies buffer to device with given device ID.
Deallocates the underlying buffer.
Returns :ok
| :already_deallocated
.
Places the given binary data
on the given device
using client
.
Reads size
from the underlying buffer ref.
This copies the underlying device memory into a binary
without destroying it. If size
is negative, then it
reads the whole buffer.