Skip to content

Commit

Permalink
transformer: test offsets in 2nd cluster and compute_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Viviane Potocnik committed Oct 20, 2023
1 parent 2f3bc31 commit 84a39a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sw/apps/transformer/src/transformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,7 @@ static inline void transformer_layer_fp64(transformer_layer_fp64_t *const l) {
if (snrt_is_compute_core()) {
// compute the gemm for the current row block and column block
uint32_t row_offset = (B_r_lin2 / num_cores) * compute_id * l->positional_embeddings_fa;
dump_id(compute_id);
dump_ct(row_offset);
uint32_t ofmap_offset = (B_r_lin2 / num_cores) * compute_id * B_c_lin2;
uint32_t start_gemm = snrt_mcycle();
Expand Down

0 comments on commit 84a39a0

Please sign in to comment.