Skip to content

Commit

Permalink
[Profiler] Do not aggregate frames with different devices (#9290)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkonolige authored Oct 15, 2021
1 parent acff61c commit c00ce37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime/profiling.cc
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ String ReportNode::AsTable(bool sort, bool aggregate) const {
if (frame.find("Argument Shapes") != frame.end()) {
name += Downcast<String>(frame["Argument Shapes"]);
}
if (frame.find("Device") != frame.end()) {
name += Downcast<String>(frame["Device"]);
}

if (aggregates.find(name) == aggregates.end()) {
aggregates[name] = {i};
Expand Down

0 comments on commit c00ce37

Please sign in to comment.