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

Fix issue w/ CBs getting allocated on ETH cores #12792

Merged
merged 3 commits into from
Sep 18, 2024
Merged

Conversation

pgkeller
Copy link
Contributor

Ticket

#12738

Problem description

Program kernel config init wasn't considering the core type when assigning CBs so CBs on worker cores w/ logical coordinates that overlapped eth cores would get assigned to both tensix and eth

What's changed

Updated the HAL to contain a flag which specifies if the core type supports CBs, this disables CBs on eth cores (not supported). Fixed a couple minor related issues with calculating the size of the CB config

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)
  • New/Existing tests provide coverage for changes

tt::tt_metal::detail::ReadFromDeviceL1(
device, core_coord, program.get_sem_base_addr(device, core_coord, CoreType::WORKER), cb_config_buffer_size, cb_config_vector);

for (const auto &[buffer_index, golden_cb_config] : cb_config_per_buffer_index) {
auto base_index = UINT32_WORDS_PER_CIRCULAR_BUFFER_CONFIG * buffer_index;
fprintf(stderr, "testing %d\n", buffer_index);
Copy link
Contributor

Choose a reason for hiding this comment

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

debug print?

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