Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reserve vector in cluster function #16507

Merged
merged 1 commit into from
Jan 7, 2025
Merged

Reserve vector in cluster function #16507

merged 1 commit into from
Jan 7, 2025

Conversation

aliuTT
Copy link
Contributor

@aliuTT aliuTT commented Jan 7, 2025

Ticket

Link to Github Issue

Problem description

Missed a change in previous fix.

What's changed

Patch

Checklist

  • Post commit CI passes
  • Blackhole Post commit (if applicable)
  • Model regression CI testing passes (if applicable)
  • Device performance regression CI testing passes (if applicable)
  • (For models and ops writers) Full new models tests passes
  • New/Existing tests provide coverage for changes

@@ -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());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be clearer to reserve by devices_grouped_by_assoc_mmio_device_.size()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is correct. We may clean up devices_grouped_by_assoc_mmio_device_ especially for the Quanta Galaxy.

@aliuTT aliuTT merged commit 26a4797 into main Jan 7, 2025
207 of 209 checks passed
@aliuTT aliuTT deleted the aliu/fix-cluster-bug branch January 7, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants