Skip to content

Commit

Permalink
#0: Fix grabbing data from ethernet cores
Browse files Browse the repository at this point in the history
I'm seeing `Always | FATAL    | Bounds-Error -- Logical_core=(x=9,y=0) is
outside of ethernet logical grid`, because we're passing a physical core to a
function that expects a logical core.
tt::Cluster::instance().get_soc_desc(device_id).physical_ethernet_cores returns
a physical coordinates, so we don't need a conversion there.
  • Loading branch information
jbaumanTT authored and mo-tenstorrent committed Nov 22, 2024
1 parent 9b7ad64 commit 1562d18
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tt_metal/tools/profiler/tt_metal_profiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,7 @@ void DumpDeviceProfileResults(Device *device, std::vector<CoreCoord> &worker_cor
}
for (const CoreCoord& core : tt::Cluster::instance().get_soc_desc(device_id).physical_ethernet_cores)
{
const auto curr_core = device->physical_core_from_logical_core(core, CoreType::ETH);
profiler_msg_t *profiler_msg = device->get_dev_addr<profiler_msg_t *>(curr_core, HalL1MemAddrType::PROFILER);
profiler_msg_t *profiler_msg = device->get_dev_addr<profiler_msg_t *>(core, HalL1MemAddrType::PROFILER);
std::vector<std::uint32_t> control_buffer = tt::llrt::read_hex_vec_from_core(
device_id,
core,
Expand Down

0 comments on commit 1562d18

Please sign in to comment.