Skip to content

Commit

Permalink
sw: explicit undef of BIST due to build err
Browse files Browse the repository at this point in the history
  • Loading branch information
Viviane Potocnik committed Jan 26, 2024
1 parent 305d560 commit 04e47f4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sw/blas/gemm/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,23 @@
#include "gemm.h"
#include "snrt.h"

#undef BIST

int main() {
int retcode = gemm(dtype_size, expand, 1, m_tiles, n_tiles, k_tiles,
snrt_cluster_num(), TA, TB, M, N, K, 1, a, b, BETA, c);

// TODO: currently only works for single cluster otherwise need to
// synchronize all cores here
#ifdef BIST
void *local_a, *local_b, *local_c;
void *remote_a, *remote_b, *remote_c;

// Allocate space in TCDM
local_a = (void *)snrt_l1_next();
local_b = local_a + size_frac_a;
local_c = local_b + size_b;

uint32_t errors = M * N;

if (snrt_cluster_core_idx() == 0) {
Expand Down

0 comments on commit 04e47f4

Please sign in to comment.