Skip to content

Commit

Permalink
Fix typo in buffer size assignment for matmul examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dongjin-na committed Nov 25, 2024
1 parent dfd4e60 commit 9b97155
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void matmul_multi_core(std::vector<bfloat16>& a, std::vector<bfloat16>& b, std::

tt_metal::InterleavedBufferConfig dram_config_C{
.device= device,
.size = dram_buffer_B_size,
.size = dram_buffer_C_size,
.page_size = single_tile_size,
.buffer_type = tt_metal::BufferType::DRAM
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ void matmul_multicore_reuse(std::vector<bfloat16>& a, std::vector<bfloat16>& b,

tt_metal::InterleavedBufferConfig dram_config_C{
.device= device,
.size = dram_buffer_B_size,
.size = dram_buffer_C_size,
.page_size = single_tile_size,
.buffer_type = tt_metal::BufferType::DRAM
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void matmul_multicore_reuse_mcast(std::vector<bfloat16>& a, std::vector<bfloat16

tt_metal::InterleavedBufferConfig dram_config_C{
.device= device,
.size = dram_buffer_B_size,
.size = dram_buffer_C_size,
.page_size = single_tile_size,
.buffer_type = tt_metal::BufferType::DRAM
};
Expand Down Expand Up @@ -460,9 +460,9 @@ int main(int argc, char **argv) {
// NOTE: Maximum number of tiles in output is 120 * 16^2 = 30,720 (eg. [1, 1, 5120, 6144])

/* Create source data */
constexpr uint32_t M = 3200; // user-defined
constexpr uint32_t N = 3200; // user-defined
constexpr uint32_t K = 3200; // user-defined
constexpr uint32_t M = 3584; // user-defined
constexpr uint32_t N = 3072; // user-defined
constexpr uint32_t K = 768; // user-defined
constexpr uint32_t B = 1; // user-defined

uint32_t Mt = M / TILE_HEIGHT;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ void matmul_single_core(std::vector<bfloat16>& a, std::vector<bfloat16>& b, std:

tt_metal::InterleavedBufferConfig dram_config_C{
.device= device,
.size = dram_buffer_B_size,
.size = dram_buffer_C_size,
.page_size = single_tile_size,
.buffer_type = tt_metal::BufferType::DRAM
};
Expand Down

0 comments on commit 9b97155

Please sign in to comment.