Halide 19.0.0
Halide compiler and libraries
Loading...
Searching...
No Matches
hexagon_dma_pool.h
Go to the documentation of this file.
1#ifndef _HEXAGON_DMA_POOL_H_
2#define _HEXAGON_DMA_POOL_H_
3
4#include "HalideRuntime.h"
5
6#ifdef COMPILING_HALIDE_RUNTIME
7// Guard this with COMPILING_HALIDE_RUNTIME so that apps/hexagon_dma
8// can include this file without getting runtime_internal.h
9#include "runtime_internal.h"
10#endif
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
17
18WEAK void *halide_hexagon_allocate_from_dma_pool(void *user_context, void *virtual_engine_id);
19
20WEAK int halide_hexagon_free_to_dma_pool(void *user_context, void *dma_engine, void *virtual_engine_id);
21
22WEAK int halide_hexagon_free_dma_resource(void *user_context, void *virtual_engine_id);
23
24WEAK void *halide_locked_cache_malloc(void *user_context, size_t size);
25
26WEAK void halide_locked_cache_free(void *user_context, void *ptr);
27
28WEAK int halide_hexagon_allocate_l2_pool(void *user_context);
29
30WEAK int halide_hexagon_free_l2_pool(void *user_context);
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif
This file declares the routines used by Halide internally in its runtime.
WEAK void * halide_locked_cache_malloc(void *user_context, size_t size)
WEAK int halide_hexagon_free_dma_resource(void *user_context, void *virtual_engine_id)
WEAK void * halide_hexagon_allocate_from_dma_pool(void *user_context, void *virtual_engine_id)
WEAK void * halide_hexagon_allocate_dma_resource(void *user_context)
WEAK int halide_hexagon_free_to_dma_pool(void *user_context, void *dma_engine, void *virtual_engine_id)
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)
#define WEAK