From 3bca94dfc4107547760ed9aab623274edb4d2f16 Mon Sep 17 00:00:00 2001 From: Vladimir Milosevic <157983820+vmilosevic@users.noreply.github.com> Date: Thu, 12 Dec 2024 05:30:38 +0100 Subject: [PATCH] Uplift third_party/tt-metal to 2f59d5e02ef0da955b99cf0f49da1759c772a67a 2024-12-11 (#1568) * Uplift third_party/tt-metal to 2f59d5e02ef0da955b99cf0f49da1759c772a67a 2024-12-11 * update calling removed function dram_core_from_logical_core --------- Co-authored-by: kmitrovicTT <169657397+kmitrovicTT@users.noreply.github.com> Co-authored-by: Brata Choudhury --- runtime/lib/common/system_desc.cpp | 10 ++++------ third_party/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/runtime/lib/common/system_desc.cpp b/runtime/lib/common/system_desc.cpp index 1d635ea82..914c000d6 100644 --- a/runtime/lib/common/system_desc.cpp +++ b/runtime/lib/common/system_desc.cpp @@ -102,12 +102,10 @@ createChipPhysicalCores(const ::tt::tt_metal::Device *device, } } - CoreCoord dram_grid_size = device->dram_grid_size(); - for (uint32_t y = 0; y < dram_grid_size.y; y++) { - for (uint32_t x = 0; x < dram_grid_size.x; x++) { - CoreCoord physical = device->dram_core_from_logical_core(CoreCoord(x, y)); - dram_cores.emplace_back(::tt::target::Dim2d(physical.y, physical.x)); - } + for (int dram_channel = 0; dram_channel < device->num_dram_channels(); + ++dram_channel) { + CoreCoord logical = device->logical_core_from_dram_channel(dram_channel); + dram_cores.emplace_back(::tt::target::Dim2d(logical.y, logical.x)); } for (const CoreCoord &logical : device->get_active_ethernet_cores(true)) { diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index a8582f885..54a1563c4 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -1,6 +1,6 @@ include(ExternalProject) -set(TT_METAL_VERSION "c2d7b099da7b194475ca7e6cf18c2eff496f866c") +set(TT_METAL_VERSION "2f59d5e02ef0da955b99cf0f49da1759c772a67a") if ("$ENV{ARCH_NAME}" STREQUAL "grayskull") set(ARCH_NAME "grayskull")