Skip to content

Commit

Permalink
improve output
Browse files Browse the repository at this point in the history
  • Loading branch information
greole committed Feb 2, 2025
1 parent b90af91 commit 6932c08
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/CommunicationPattern.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,10 +264,18 @@ std::ostream &operator<<(std::ostream &out, const CommunicationPattern &e)
{
// TODO add implementation
out << "CommunicationPattern: for rank: " << e.exec_handler.get_rank();
// out << " {";
// out << "\ntarget_ids: " << e.target_ids;
// out << "\ntarget_sizes: " << e.target_sizes;
// out << "}\n";
out << " {";
out << "\ntarget_ids: " << e.target_ids;
out << "target_sizes: " << e.target_sizes;
out << "send idxs: " << e.target_sizes;
for (auto send_idx: e.send_idxs){
out << "[";
for (auto idx: send_idx){
out << idx << " ";
}
out << "]\n";
}
out << "}\n";
return out;
}

Expand Down

0 comments on commit 6932c08

Please sign in to comment.