Halide
Halide::Runtime Namespace Reference

Namespaces

 Internal
 

Classes

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

Enumerations

enum  BufferDeviceOwnership : int {
  BufferDeviceOwnership::Allocated, BufferDeviceOwnership::WrappedNative, BufferDeviceOwnership::Unmanaged, BufferDeviceOwnership::AllocatedDeviceAndHost,
  BufferDeviceOwnership::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 91 of file HalideBuffer.h.