From b648c77f4fd38a85c7fa8e516f210e18d6008fc4 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Sat, 7 Aug 2021 19:25:23 +0200 Subject: [PATCH] fix issues in replay of scatter and scatterv --- src/smpi/internals/smpi_replay.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/smpi/internals/smpi_replay.cpp b/src/smpi/internals/smpi_replay.cpp index 4b8b3b1353..87262080b2 100644 --- a/src/smpi/internals/smpi_replay.cpp +++ b/src/smpi/internals/smpi_replay.cpp @@ -318,6 +318,7 @@ void ScatterArgParser::parse(simgrid::xbt::ReplayAction& action, const std::stri 4) 0 is the send datatype id, see simgrid::smpi::Datatype::decode() 5) 0 is the recv datatype id, see simgrid::smpi::Datatype::decode() */ + comm_size = MPI_COMM_WORLD->size(); CHECK_ACTION_PARAMS(action, 2, 3) comm_size = MPI_COMM_WORLD->size(); send_size = parse_integer(action[2]); @@ -338,6 +339,7 @@ void ScatterVArgParser::parse(simgrid::xbt::ReplayAction& action, const std::str 4) 0 is the send datatype id, see simgrid::smpi::Datatype::decode() 5) 0 is the recv datatype id, see simgrid::smpi::Datatype::decode() */ + comm_size = MPI_COMM_WORLD->size(); CHECK_ACTION_PARAMS(action, comm_size + 1, 2) recv_size = parse_integer(action[2 + comm_size]); disps = std::vector(comm_size, 0); -- 2.20.1