Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI/REPLAY] Fix issues with daemons
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Tue, 17 Jul 2018 11:44:52 +0000 (13:44 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 18 Jul 2018 14:42:11 +0000 (16:42 +0200)
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

index a11183d..dd65a62 100644 (file)
@@ -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});
     }
 };