From bac76fd4bf4b15828849d984fff36c16c91f5c24 Mon Sep 17 00:00:00 2001 From: Luca Colagrande Date: Mon, 13 May 2024 21:57:53 +0200 Subject: [PATCH] snRuntime: Fix inline function definitions missing in static library (#136) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Markus Böck Co-authored-by: Philip Wiese --- sw/snRuntime/src/alloc.c | 8 ++++++++ sw/snRuntime/src/cls.c | 2 ++ sw/snRuntime/src/sync.c | 2 ++ sw/snRuntime/src/team.c | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/sw/snRuntime/src/alloc.c b/sw/snRuntime/src/alloc.c index 67c69f07f..72c12048e 100644 --- a/sw/snRuntime/src/alloc.c +++ b/sw/snRuntime/src/alloc.c @@ -4,12 +4,20 @@ snrt_allocator_t l3_allocator; +extern volatile uint32_t *snrt_zero_memory_ptr(); + extern void *snrt_l1_next(); extern void *snrt_l3_next(); +extern uint32_t snrt_l1_start_addr(); +extern uint32_t snrt_l1_end_addr(); + extern void *snrt_l1alloc(size_t size); extern void *snrt_l3alloc(size_t size); +extern snrt_allocator_t *snrt_l1_allocator(); +extern snrt_allocator_t *snrt_l3_allocator(); + extern void snrt_l1_update_next(void *next); extern void snrt_alloc_init(); diff --git a/sw/snRuntime/src/cls.c b/sw/snRuntime/src/cls.c index cec2155b6..57e1f2c24 100644 --- a/sw/snRuntime/src/cls.c +++ b/sw/snRuntime/src/cls.c @@ -5,3 +5,5 @@ __thread cls_t* _cls_ptr; cls_t __attribute__((section(".cbss"))) _cls; + +extern cls_t* cls(); diff --git a/sw/snRuntime/src/sync.c b/sw/snRuntime/src/sync.c index 10d6bd6f0..112dc07a4 100644 --- a/sw/snRuntime/src/sync.c +++ b/sw/snRuntime/src/sync.c @@ -30,3 +30,5 @@ extern void snrt_partial_barrier(snrt_barrier_t *barr, uint32_t n); extern void snrt_global_reduction_dma(double *dst_buffer, double *src_buffer, size_t len); + +extern uint32_t snrt_global_all_to_all_reduction(uint32_t value); diff --git a/sw/snRuntime/src/team.c b/sw/snRuntime/src/team.c index a9eb840bf..5290e1d28 100644 --- a/sw/snRuntime/src/team.c +++ b/sw/snRuntime/src/team.c @@ -10,6 +10,10 @@ extern uint32_t snrt_global_core_idx(); extern uint32_t snrt_global_core_num(); +extern uint32_t snrt_global_compute_core_num(); + +extern uint32_t snrt_global_compute_core_idx(); + extern uint32_t snrt_cluster_idx(); extern uint32_t snrt_cluster_num();