The documentation of the class says that the default allocator functions are malloc and free, whereas the HalideRuntime.h specifies halide_malloc and halide_free for memory management.
Additionally, Halide::Runtime::Buffer does not allow for creating buffers with other allocators. You always go through an allocate() call using the default malloc/free, which is wasteful if you want to use a custom allocator afterwards.
Halide/src/runtime/HalideBuffer.h
Line 743 in a914574
The documentation of the class says that the default allocator functions are malloc and free, whereas the HalideRuntime.h specifies halide_malloc and halide_free for memory management.
Additionally, Halide::Runtime::Buffer does not allow for creating buffers with other allocators. You always go through an allocate() call using the default malloc/free, which is wasteful if you want to use a custom allocator afterwards.