Halide 22.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
13 extern "C" {
14#endif
15
16 WEAK void *halide_hexagon_allocate_dma_resource(void *user_context);
17
18 WEAK void *halide_hexagon_allocate_from_dma_pool(void *user_context, void *virtual_engine_id);
19
20 WEAK int halide_hexagon_free_to_dma_pool(void *user_context, void *dma_engine, void *virtual_engine_id);
21
22 WEAK int halide_hexagon_free_dma_resource(void *user_context, void *virtual_engine_id);
23
24 WEAK void *halide_locked_cache_malloc(void *user_context, size_t size);
25
26 WEAK void halide_locked_cache_free(void *user_context, void *ptr);
27
28 WEAK int halide_hexagon_allocate_l2_pool(void *user_context);
29
30 WEAK int halide_hexagon_free_l2_pool(void *user_context);
31
32#ifdef __cplusplus
33}
34#endif
35
36#endif
HalideRuntime.h
This file declares the routines used by Halide internally in its runtime.
halide_locked_cache_malloc
WEAK void * halide_locked_cache_malloc(void *user_context, size_t size)
halide_hexagon_free_dma_resource
WEAK int halide_hexagon_free_dma_resource(void *user_context, void *virtual_engine_id)
halide_hexagon_allocate_from_dma_pool
WEAK void * halide_hexagon_allocate_from_dma_pool(void *user_context, void *virtual_engine_id)
halide_hexagon_allocate_dma_resource
WEAK void * halide_hexagon_allocate_dma_resource(void *user_context)
halide_hexagon_free_to_dma_pool
WEAK int halide_hexagon_free_to_dma_pool(void *user_context, void *dma_engine, void *virtual_engine_id)
halide_locked_cache_free
WEAK void halide_locked_cache_free(void *user_context, void *ptr)
halide_hexagon_allocate_l2_pool
WEAK int halide_hexagon_allocate_l2_pool(void *user_context)
halide_hexagon_free_l2_pool
WEAK int halide_hexagon_free_l2_pool(void *user_context)
runtime_internal.h
WEAK
#define WEAK
Definition runtime_internal.h:52
user_context
void * user_context
Definition vulkan_resources.h:178