Skip to content

Commit

Permalink
sw: Fix snrt_global_barrier (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerbarton authored Jan 15, 2024
1 parent 301743f commit 62fb295
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sw/snRuntime/src/sync.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ inline void snrt_cluster_hw_barrier() {

/// Synchronize clusters globally with a global software barrier
inline void snrt_global_barrier() {
snrt_cluster_hw_barrier();

// Synchronize all DM cores in software
if (snrt_is_dm_core()) {
// Remember previous iteration
Expand Down Expand Up @@ -101,4 +103,4 @@ inline void snrt_partial_barrier(snrt_barrier_t *barr, uint32_t n) {
while (prev_it == barr->iteration)
;
}
}
}

0 comments on commit 62fb295

Please sign in to comment.