Skip to content

Commit

Permalink
add RSMPI_SUM
Browse files Browse the repository at this point in the history
  • Loading branch information
jedbrown committed Aug 9, 2024
1 parent 1b41f0b commit 904cadf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion enzyme/Enzyme/CallDerivatives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,8 @@ void AdjointGenerator::handleMPI(llvm::CallInst &call, llvm::Function *called,
C = CE->getOperand(0);
}
if (auto GV = dyn_cast<GlobalVariable>(C)) {
if (GV->getName() == "ompi_mpi_op_sum") {
if (GV->getName() == "ompi_mpi_op_sum" ||
GV->getName() == "RSMPI_SUM") {
isSum = true;
}
}
Expand Down

0 comments on commit 904cadf

Please sign in to comment.