Skip to content

Commit

Permalink
snRuntime: Fix inline function definitions missing in static library (#…
Browse files Browse the repository at this point in the history
…136)

Co-authored-by: Markus Böck <[email protected]>
Co-authored-by: Philip Wiese <[email protected]>
  • Loading branch information
3 people authored May 13, 2024
1 parent 6ce945d commit bac76fd
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sw/snRuntime/src/alloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
2 changes: 2 additions & 0 deletions sw/snRuntime/src/cls.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@
__thread cls_t* _cls_ptr;

cls_t __attribute__((section(".cbss"))) _cls;

extern cls_t* cls();
2 changes: 2 additions & 0 deletions sw/snRuntime/src/sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
4 changes: 4 additions & 0 deletions sw/snRuntime/src/team.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit bac76fd

Please sign in to comment.