From 9b97155b1acea53453dd22c064dffd621e351224 Mon Sep 17 00:00:00 2001 From: Dongjin Na Date: Sat, 23 Nov 2024 14:48:06 +0000 Subject: [PATCH] Fix typo in buffer size assignment for matmul examples --- .../matmul_multi_core/matmul_multi_core.cpp | 2 +- .../matmul_multicore_reuse/matmul_multicore_reuse.cpp | 2 +- .../matmul_multicore_reuse_mcast.cpp | 8 ++++---- .../matmul_single_core/matmul_single_core.cpp | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tt_metal/programming_examples/matmul_multi_core/matmul_multi_core.cpp b/tt_metal/programming_examples/matmul_multi_core/matmul_multi_core.cpp index ab47971dbc6..edd767b98b5 100644 --- a/tt_metal/programming_examples/matmul_multi_core/matmul_multi_core.cpp +++ b/tt_metal/programming_examples/matmul_multi_core/matmul_multi_core.cpp @@ -111,7 +111,7 @@ void matmul_multi_core(std::vector& a, std::vector& 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 }; diff --git a/tt_metal/programming_examples/matmul_multicore_reuse/matmul_multicore_reuse.cpp b/tt_metal/programming_examples/matmul_multicore_reuse/matmul_multicore_reuse.cpp index 41e3a1cd231..741f57bc177 100644 --- a/tt_metal/programming_examples/matmul_multicore_reuse/matmul_multicore_reuse.cpp +++ b/tt_metal/programming_examples/matmul_multicore_reuse/matmul_multicore_reuse.cpp @@ -179,7 +179,7 @@ void matmul_multicore_reuse(std::vector& a, std::vector& 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 }; diff --git a/tt_metal/programming_examples/matmul_multicore_reuse_mcast/matmul_multicore_reuse_mcast.cpp b/tt_metal/programming_examples/matmul_multicore_reuse_mcast/matmul_multicore_reuse_mcast.cpp index b6beb079bea..2bcd10f8e4d 100644 --- a/tt_metal/programming_examples/matmul_multicore_reuse_mcast/matmul_multicore_reuse_mcast.cpp +++ b/tt_metal/programming_examples/matmul_multicore_reuse_mcast/matmul_multicore_reuse_mcast.cpp @@ -209,7 +209,7 @@ void matmul_multicore_reuse_mcast(std::vector& a, std::vector& a, std::vector& 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 };