Halide 19.0.0
Halide compiler and libraries
|
The raw representation of an image passed around by generated Halide code. More...
#include <HalideRuntime.h>
Public Attributes | |
uint64_t | device |
A device-handle for e.g. | |
const struct halide_device_interface_t * | device_interface |
The interface used to interpret the above handle. | |
uint8_t * | host |
A pointer to the start of the data in main memory. | |
uint64_t | flags |
flags with various meanings. | |
struct halide_type_t | type |
The type of each buffer element. | |
int32_t | dimensions |
The dimensionality of the buffer. | |
halide_dimension_t * | dim |
The shape of the buffer. | |
void * | padding |
Pads the buffer up to a multiple of 8 bytes. | |
The raw representation of an image passed around by generated Halide code.
It includes some stuff to track whether the image is not actually in main memory, but instead on a device (like a GPU). For a more convenient C++ wrapper, use Halide::Buffer<T>.
Definition at line 1546 of file HalideRuntime.h.
uint64_t halide_buffer_t::device |
A device-handle for e.g.
GPU memory used to back this buffer.
Definition at line 1548 of file HalideRuntime.h.
Referenced by Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::has_device_allocation(), and Halide::Runtime::Internal::make_buffer_copy().
const struct halide_device_interface_t* halide_buffer_t::device_interface |
The interface used to interpret the above handle.
Definition at line 1551 of file HalideRuntime.h.
Referenced by Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::copy_to_host(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::crop(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::crop(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::cropped(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::cropped(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::device_and_host_free(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::device_detach_native(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::device_free(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::slice(), and Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::sliced().
uint8_t* halide_buffer_t::host |
A pointer to the start of the data in main memory.
In terms of the Halide coordinate system, this is the address of the min coordinates (defined below).
Definition at line 1556 of file HalideRuntime.h.
Referenced by Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::allocate(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::begin(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::data(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::end(), and Halide::Runtime::Internal::make_buffer_copy().
uint64_t halide_buffer_t::flags |
flags with various meanings.
Definition at line 1559 of file HalideRuntime.h.
struct halide_type_t halide_buffer_t::type |
The type of each buffer element.
Definition at line 1562 of file HalideRuntime.h.
Referenced by Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Internal::calc_device_crop_byte_offset(), Halide::Runtime::Internal::calc_device_slice_byte_offset(), Halide::Runtime::Internal::make_buffer_copy(), and Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::type().
int32_t halide_buffer_t::dimensions |
The dimensionality of the buffer.
Definition at line 1565 of file HalideRuntime.h.
Referenced by Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::add_dimension(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::add_dimension_with_stride(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Internal::calc_device_crop_byte_offset(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::dimensions(), and Halide::Runtime::Internal::make_buffer_copy().
halide_dimension_t* halide_buffer_t::dim |
The shape of the buffer.
Halide does not own this array - you must manage the memory for it yourself.
Definition at line 1569 of file HalideRuntime.h.
Referenced by Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::add_dimension(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::add_dimension_with_stride(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::Buffer(), Halide::Runtime::Internal::calc_device_crop_byte_offset(), Halide::Runtime::Internal::calc_device_slice_byte_offset(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::dim(), Halide::Runtime::Internal::make_buffer_copy(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::make_with_shape_of(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::set_min(), Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::translate(), and Halide::Runtime::Buffer< T, Dims, InClassDimStorage >::transpose().
void* halide_buffer_t::padding |
Pads the buffer up to a multiple of 8 bytes.
Definition at line 1572 of file HalideRuntime.h.