From d37b22379fc9b7e760482d6edc10b645d9862db6 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Tue, 17 Jul 2018 13:44:52 +0200 Subject: [PATCH 1/1] [SMPI/REPLAY] Fix issues with daemons When daemons are running, process-id's of the ranks don't start at 1. Here, we insert the pid's of the actual actors. --- src/smpi/internals/smpi_replay.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/smpi/internals/smpi_replay.cpp b/src/smpi/internals/smpi_replay.cpp index a11183d07f..dd65a620c4 100644 --- a/src/smpi/internals/smpi_replay.cpp +++ b/src/smpi/internals/smpi_replay.cpp @@ -134,7 +134,10 @@ public: /* Sometimes we need to re-insert MPI_REQUEST_NULL but we still need src,dst and tag */ void addNullRequest(int src, int dst, int tag) { - store.insert({req_key_t(src, dst, tag), MPI_REQUEST_NULL}); + store.insert({req_key_t( + MPI_COMM_WORLD->group()->actor(src)->get_pid()-1, + MPI_COMM_WORLD->group()->actor(dst)->get_pid()-1, + tag), MPI_REQUEST_NULL}); } }; -- 2.20.1