https://github.com/halide/Halide
Raw File
Tip revision: cc6e06d0a8109daee522ffd41f7f82c49e991df0 authored by Andrew Adams on 03 April 2023, 23:43:52 UTC
Increase test threshold for mullapudi histogram test
Tip revision: cc6e06d
hexagon_dma_pool.h
#ifndef _HEXAGON_DMA_POOL_H_
#define _HEXAGON_DMA_POOL_H_

#include "HalideRuntime.h"

#ifdef COMPILING_HALIDE_RUNTIME
// Guard this with COMPILING_HALIDE_RUNTIME so that apps/hexagon_dma
// can include this file without getting runtime_internal.h
#include "runtime_internal.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif

WEAK void *halide_hexagon_allocate_dma_resource(void *user_context);

WEAK void *halide_hexagon_allocate_from_dma_pool(void *user_context, void *virtual_engine_id);

WEAK int halide_hexagon_free_to_dma_pool(void *user_context, void *dma_engine, void *virtual_engine_id);

WEAK int halide_hexagon_free_dma_resource(void *user_context, void *virtual_engine_id);

WEAK void *halide_locked_cache_malloc(void *user_context, size_t size);

WEAK void halide_locked_cache_free(void *user_context, void *ptr);

WEAK int halide_hexagon_allocate_l2_pool(void *user_context);

WEAK int halide_hexagon_free_l2_pool(void *user_context);

#ifdef __cplusplus
}
#endif

#endif
back to top