Runtime::BufferDeviceOwnership#
-
enum class Halide::Runtime::BufferDeviceOwnership : int#
This indicates how to deallocate the device for a Halide::Runtime::Buffer.
Values:
-
enumerator Allocated#
-
enumerator WrappedNative#
halide_device_free will be called when device ref count goes to zero
-
enumerator Unmanaged#
halide_device_detach_native will be called when device ref count goes to zero
-
enumerator AllocatedDeviceAndHost#
No free routine will be called when device ref count goes to zero
-
enumerator Cropped#
Call device_and_host_free when DevRefCount goes to zero.
-
enumerator Allocated#