Skip to content

Commit

Permalink
added support for DMA-only tiles in trace
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Schumacher <[email protected]>
  • Loading branch information
Paul Schumacher committed Dec 20, 2023
1 parent 05e25ce commit a3ce366
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ namespace xdp {
&& shimTileMetricsSettings.empty() && shimGraphMetricsSettings.empty()) {
isValidMetrics = false;
} else {
getConfigMetricsForTiles(aieTileMetricsSettings, aieGraphMetricsSettings, module_type::core);
// Use DMA type here to include both core-active tiles and DMA-only tiles
getConfigMetricsForTiles(aieTileMetricsSettings, aieGraphMetricsSettings, module_type::dma);
getConfigMetricsForTiles(memTileMetricsSettings, memGraphMetricsSettings, module_type::mem_tile);
getConfigMetricsForInterfaceTiles(shimTileMetricsSettings, shimGraphMetricsSettings);
setTraceStartControl(compilerOptions.graph_iterator_event);
Expand Down Expand Up @@ -314,8 +315,8 @@ namespace xdp {

std::set<tile_type> allValidTiles;
auto validTilesVec = metadataReader->getTiles("all", type, "all");
std::unique_copy(validTilesVec.begin(), validTilesVec.end(), std::inserter(allValidTiles, allValidTiles.end()),
tileCompare);
std::unique_copy(validTilesVec.begin(), validTilesVec.end(),
std::inserter(allValidTiles, allValidTiles.end()), tileCompare);

// STEP 1 : Parse per-graph and/or per-kernel settings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ class AieTraceMetadata {

std::map<module_type, std::string> defaultSets {
{ module_type::core, "functions"},
{ module_type::dma, "functions"},
{ module_type::mem_tile, "input_channels"},
{ module_type::shim, "input_ports"}
};
Expand Down

0 comments on commit a3ce366

Please sign in to comment.