Skip to content

Commit

Permalink
gemm: Use multicast
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Jan 11, 2024
1 parent d4c4cad commit a064467
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sw/blas/gemm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ int main() {
// Copy data in TCDM
if (snrt_is_dm_core()) {
snrt_dma_start_1d(local_a, remote_a, size_frac_a);
#ifdef USE_MULTICAST
if (snrt_cluster_idx() == 0)
snrt_dma_start_1d_mcast(local_b, remote_b,
(snrt_cluster_num() - 1) << 18, size_b);
#else
snrt_dma_start_1d(local_b, remote_b, size_b);
#endif
snrt_dma_start_1d(local_c, remote_c, size_frac_c);
snrt_dma_wait_all();
}
Expand Down

0 comments on commit a064467

Please sign in to comment.