Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/hls_examples/hls_support/HalideRuntimeZynq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ static int cma_get_buffer(UBuffer* ptr) {
}

static int cma_free_buffer(UBuffer* ptr) {
return ioctl(fd_cma, FREE_IMAGE, (long unsigned int)ptr);
return ioctl(fd_cma, FREE_BUFFER, (long unsigned int)ptr);
}

int halide_zynq_cma_alloc(struct halide_buffer_t *buf) {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/zynq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ static int cma_get_buffer(UBuffer* ptr) {
}

static int cma_free_buffer(UBuffer* ptr) {
return ioctl(fd_cma, FREE_IMAGE, (long unsigned int)ptr);
return ioctl(fd_cma, FREE_BUFFER, (long unsigned int)ptr);
}

WEAK int halide_zynq_cma_alloc(struct halide_buffer_t *buf) {
Expand Down