Skip to content

Commit

Permalink
#11623: Adding workaround for ND BH hang for MatmulMultiCoreMultiDRAM…
Browse files Browse the repository at this point in the history
…In0MCastIn1MCast
  • Loading branch information
abhullar-tt committed Sep 3, 2024
1 parent 19f4a6d commit c975aba
Showing 1 changed file with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,18 @@ bool matmul_multi_core_multi_dram_in0_mcast_in1_mcast(tt_metal::Device *device){
uint32_t M = 16 * num_cores_r;
uint32_t K = 16 * 12;
uint32_t N = 16 * num_cores_c;
int out_subblock_h = 4;
int out_subblock_w = 2;
int in0_block_w = 2;
int out_subblock_h;
int out_subblock_w;
int in0_block_w;
if (device->arch() == tt::ARCH::BLACKHOLE and not getenv("TT_METAL_DISABLE_BH_ND_WORKAROUND")) {
out_subblock_h = 1;
out_subblock_w = 1;
in0_block_w = 1;
} else {
out_subblock_h = 4;
out_subblock_w = 2;
in0_block_w = 2;
}
int per_core_M = M / num_cores_r;
int per_core_N = N / num_cores_c;
uint32_t single_tile_size = 2 * 1024;
Expand All @@ -360,6 +369,7 @@ bool matmul_multi_core_multi_dram_in0_mcast_in1_mcast(tt_metal::Device *device){
uint32_t out_dram_addr = 800 * 1024 * 1024;


log_info(LogTest, "Grid size = {}x{}", num_cores_r, num_cores_c);
log_info(LogTest, "M = {}, N = {}, K = {}", M, N, K);
log_info(LogTest, "Activation = {}x{}", M * 32, K * 32);
log_info(LogTest, "Weights = {}x{}", K * 32, N * 32);
Expand Down

0 comments on commit c975aba

Please sign in to comment.