Skip to content

Commit

Permalink
transformer: add debug info of snRuntime
Browse files Browse the repository at this point in the history
  • Loading branch information
Viviane Potocnik committed Oct 20, 2023
1 parent 3f07167 commit d61883e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sw/apps/transformer/src/transformer.h
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,11 @@ 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
if (core_id == 0) {
dump_idx(compute_id);
dump_idx(cluster_id);
dump_idx(num_cores);
}
uint32_t row_offset = (B_r_lin2 / num_cores) * compute_id * l->positional_embeddings_fa;
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 d61883e

Please sign in to comment.