Skip to content

Commit

Permalink
add n_ranks print
Browse files Browse the repository at this point in the history
  • Loading branch information
usainzg committed Oct 29, 2024
1 parent a66af10 commit a104c83
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Transform/Affine/AffineDistributeToMPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ struct AffineDistributeToMPI

// TODO: change to work with funcOp instead of affineForOp?
void runOnOperation() {
// print number of ranks
llvm::errs() << "n_ranks=" << n_ranks << "\n";

// capture affineForOp and walk the IR
getOperation()->walk([&](AffineForOp op) {
OpBuilder builder(op.getContext());

Expand Down

0 comments on commit a104c83

Please sign in to comment.