diff --git a/tt_metal/impl/dispatch/topology.cpp b/tt_metal/impl/dispatch/topology.cpp index e55990a31b4..02ed6206763 100644 --- a/tt_metal/impl/dispatch/topology.cpp +++ b/tt_metal/impl/dispatch/topology.cpp @@ -451,7 +451,7 @@ std::vector get_nodes(const std::set& device_ // Need a mapping from templated device id (1-8) to actual device id (from the tunnel) std::vector template_id_to_device_id; template_id_to_device_id.push_back(mmio_device_id); - for (auto tunnel : tt::Cluster::instance().get_tunnels_from_mmio_device(mmio_device_id)) { + for (const auto& tunnel : tt::Cluster::instance().get_tunnels_from_mmio_device(mmio_device_id)) { TT_ASSERT(tunnel.size() == 5, "Galaxy expected 4-deep tunnels."); for (auto remote_device_id : tunnel) { if (remote_device_id != mmio_device_id) {