Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[smpi+mc] When restoring a snapshot, always remap the SMPI privatisation segment
authorGabriel Corona <gabriel.corona@loria.fr>
Fri, 17 Oct 2014 12:50:21 +0000 (14:50 +0200)
committerGabriel Corona <gabriel.corona@loria.fr>
Fri, 17 Oct 2014 12:50:21 +0000 (14:50 +0200)
commit4a85fbe15d839396514cb6c2be3ea977d766d95e
tree477d8f82245ac2a73de426c58842e1d10f845102
parent4d0617c56af053f27de9027fe5264f9788c3da08
[smpi+mc] When restoring a snapshot, always remap the SMPI privatisation segment

After restoring the global variables in a snapshot, the global
variable containing the currently active SMPI privatization segment is
overwritten. As a consequence, the segment SMPI thinks active might be
inconsistent with the currently active segment (which the kernels
knows about).

In this case, we want to remap the segment regardless of what SMPI
thinks.

We might be more clever to avoid unecessary segment switch if the
segment which is really mapped is the same as the one we want.
src/mc/mc_checkpoint.c
src/smpi/private.h
src/smpi/smpi_bench.c