Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
halide_buffer_t Struct Reference

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_tdevice_interface
 The interface used to interpret the above handle.
 
uint8_thost
 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_tdim
 The shape of the buffer.
 
void * padding
 Pads the buffer up to a multiple of 8 bytes.
 

Detailed Description

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.

Member Data Documentation

◆ device

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().

◆ device_interface

◆ host

◆ flags

uint64_t halide_buffer_t::flags

flags with various meanings.

Definition at line 1559 of file HalideRuntime.h.

◆ type

◆ dimensions

◆ dim

◆ padding

void* halide_buffer_t::padding

Pads the buffer up to a multiple of 8 bytes.

Definition at line 1572 of file HalideRuntime.h.


The documentation for this struct was generated from the following file: