Halide  12.0.1
Halide compiler and libraries
Halide::Runtime Namespace Reference

Namespaces

 Internal
 

Classes

class  Buffer
 A templated Buffer class that wraps halide_buffer_t and adds functionality. More...
 
struct  AllInts
 
struct  AllInts<>
 
struct  AllInts< T, Args... >
 
struct  AllInts< float, Args... >
 
struct  AllInts< double, Args... >
 
struct  AllocationHeader
 A struct acting as a header for allocations owned by the Buffer class itself. More...
 
struct  DeviceRefCount
 A similar struct for managing device allocations. More...
 

Enumerations

enum class  BufferDeviceOwnership : int {
  Allocated , WrappedNative , Unmanaged , AllocatedDeviceAndHost ,
  Cropped
}
 This indicates how to deallocate the device for a Halide::Runtime::Buffer. More...
 

Enumeration Type Documentation

◆ BufferDeviceOwnership

This indicates how to deallocate the device for a Halide::Runtime::Buffer.

Enumerator
Allocated 
WrappedNative 

halide_device_free will be called when device ref count goes to zero

Unmanaged 

halide_device_detach_native will be called when device ref count goes to zero

AllocatedDeviceAndHost 

No free routine will be called when device ref count goes to zero

Cropped 

Call device_and_host_free when DevRefCount goes to zero.

Definition at line 93 of file HalideBuffer.h.