| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../api/../generated/pyarrow.cuda.HostBuffer.html | [Back] [Original] |
Section Navigation
Bases: Buffer
Device-accessible CPU memory created using cudaHostAlloc.
To create a HostBuffer instance, use
cuda.new_host_buffer(<nbytes>)
Methods
|
|
|
Determine if two buffers contain exactly the same data. |
|
Compute hexadecimal representation of the buffer. |
|
Slice this buffer. |
|
Return this buffer as a Python bytes object. |
Attributes
The buffer's address, as an integer. |
|
The device where the buffer resides. |
|
The device type where the buffer resides. |
|
Whether the buffer is CPU-accessible. |
|
Whether the buffer is mutable. |
|
The memory manager associated with the buffer. |
|
The buffers address, as an integer.
The returned address may point to CPU or device memory. Use is_cpu() to disambiguate.
The device where the buffer resides.
DeviceThe device type where the buffer resides.
DeviceAllocationTypeDetermine if two buffers contain exactly the same data.
BufferTrue if buffer contents and size are equal
Whether the buffer is CPU-accessible.
Whether the buffer is mutable.
The memory manager associated with the buffer.
MemoryManagerSlice this buffer. Memory is not copied.
You can also use the Python slice notation buffer[start:stop].
Return this buffer as a Python bytes object. Memory is copied.
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |