Buffer
_class _Buffer(buffer : Buffer)
Represents a buffer that is used to save data on host CPU and Houmo device.
Constructor for the Buffer class.
Methods
__init__ | Constructor for the Buffer class. |
|---|---|
clone | Creates a copy of the current Buffer object. |
copy_from_host | Copies data from host memory to the buffer on Houmo device. |
copy_to_host | Copies data from the buffer on Houmo device to host memory. |
device_id | Retrieves the logical device ID of the Houmo device associated with the current Buffer object. |
get_sub_buffer | Retrieves a sub-buffer that shares the same memory as the original buffer. |
memset | Initializes the specified region of the device buffer to a constant byte value. |
size | Retrieves the size of the current Buffer object in bytes. |