From 7f2bec6d72bb1517aee9ff916521c596f291fd1c Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Thu, 15 Mar 2018 10:49:58 +0100 Subject: [PATCH 1/1] [SMPI] Fix mmap bug The wrong actor was used (the +1 was from the transition to the pid-based approach) and that one wasn't initialized yet --- src/smpi/internals/smpi_memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/internals/smpi_memory.cpp b/src/smpi/internals/smpi_memory.cpp index 3556def61b..a6ca132808 100644 --- a/src/smpi/internals/smpi_memory.cpp +++ b/src/smpi/internals/smpi_memory.cpp @@ -117,7 +117,7 @@ void smpi_really_switch_data_segment(int dest) #if HAVE_PRIVATIZATION // FIXME, cross-process support (mmap across process when necessary) - simgrid::smpi::Process* process = smpi_process_remote(simgrid::s4u::Actor::byPid(dest+1)); + simgrid::smpi::Process* process = smpi_process_remote(simgrid::s4u::Actor::byPid(dest)); int current = process->privatized_region()->file_descriptor; XBT_DEBUG("Switching data frame to the one of process %d", dest); void* tmp = -- 2.20.1