#16339: let DispatchMemMap
get created with custom DispatchSettings
#17449
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Ticket
#16339
Problem description
DispatchMemMap
hardcoded to use default settings.Need to be able to use different settings for tests like Test Prefetcher and Test Dispatcher.
Need to be able to use settings that could be loaded from a file along with the FD topology.
What's changed
Singleton interface to customize
DispatchSettings
. Singleton will persist settings for variouscore_type
/num_hw_cq
combos. Callers can get / reset / modify the settings for the core type / cq combo.DispatchMemMap
will be created using theDispatchSettings
, which may have been customized.NOTE: Custom
DispatchSettings
should be setup early. E.g., during Device or DevicePool initializationThe
DispatchSettings
will be persisted for each {CoreType, #CQs}.DispatchMemMap
with a different CoreType can happen, e.g., during FD Topology init it needs the MemMap for WORKER AND ETH cores (tunnelers).Test
CommandQueueSingleCardFixture.TestDispatchSettingsMutations
Checklist
TGG: https://github.com/tenstorrent/tt-metal/actions/runs/13130873636
APC: https://github.com/tenstorrent/tt-metal/actions/runs/13130870905
T3K: https://github.com/tenstorrent/tt-metal/actions/runs/13130877271