Skip to content

Commit

Permalink
mpi: fix detection of local messages in receiver
Browse files Browse the repository at this point in the history
  • Loading branch information
csegarragonz committed Feb 26, 2024
1 parent 4d738ad commit 7ec2294
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mpi/MpiWorld.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@ void MpiWorld::doRecv(std::shared_ptr<MPIMessage>& m,
assert(m->count() <= count);

const std::string otherHost = getHostForRank(m->destination());
bool isLocal = otherHost == thisHost;
bool isLocal =
getHostForRank(m->destination()) == getHostForRank(m->sender());

if (m->count() > 0) {
if (isLocal) {
Expand Down

0 comments on commit 7ec2294

Please sign in to comment.