View Source EXLA.DeviceBuffer (EXLA v0.4.1)

An EXLA DeviceBuffer for data allocated in the device.

Link to this section Summary

Functions

Deallocates the underlying buffer.

Places the given binary buffer on the given device using client.

Reads size from the underlying buffer ref.

Link to this section Functions

Link to this function

deallocate(device_buffer)

View Source

Deallocates the underlying buffer.

Returns :ok | :already_deallocated.

Link to this function

place_on_device(data, shape, client, device_id)

View Source

Places the given binary buffer on the given device using client.

Link to this function

read(device_buffer, size \\ -1)

View Source

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.