Skip to content

Commit

Permalink
Reserve vector in cluster function
Browse files Browse the repository at this point in the history
  • Loading branch information
aliuTT committed Jan 7, 2025
1 parent 8a683ef commit eda9d65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tt_metal/llrt/tt_cluster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,6 +982,7 @@ void Cluster::set_internal_routing_info_for_ethernet_cores(bool enable_internal_
std::vector<chip_id_t> non_mmio_devices;
std::vector<chip_id_t> mmio_devices = target_mmio_devices;
if (mmio_devices.size() == 0) {
mmio_devices.reserve(tt::Cluster::instance().number_of_pci_devices());
for (const auto &[assoc_mmio_device, devices] : this->devices_grouped_by_assoc_mmio_device_) {
mmio_devices.emplace_back(assoc_mmio_device);
}
Expand Down

0 comments on commit eda9d65

Please sign in to comment.