Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Have SMPI fail on MPI_ERR_* in MC mode
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 17 Aug 2019 20:24:44 +0000 (22:24 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 17 Aug 2019 23:34:10 +0000 (01:34 +0200)
commit4c973838831fbfc14675fd437af1e8b060cb8a3a
tree07c6aecba90992daf7353ed61a80a99918fa78c8
parenta517c01c5a06289e36436e8f90d7a6228ce59a87
Have SMPI fail on MPI_ERR_* in MC mode

The standard says that upon error, implementations should call the
current MPI error handler, which is MPI_ERRORS_ARE_FATAL by default
but could be changed to MPI_ERRORS_RETURN on need.

Since we don't implement MPI_Comm_set_errhandler() to switch between
modes, the simulation mode of SMPI is only issuing a warning on
errors (which is similar to MPI_ERRORS_RETURN).

This commit adds a MC_assert() stating that every MPI call succeed.
This will lead to a property failure (visible only in MC mode) when a
MPI_ERR_* is issued by the implementation (which is somehow similar to
MPI_ERRORS_ARE_FATAL).
ChangeLog
src/smpi/bindings/smpi_mpi.cpp