Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Datatype: Make encode() a static member
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 21 Mar 2018 14:50:17 +0000 (15:50 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Wed, 28 Mar 2018 15:33:51 +0000 (17:33 +0200)
commit033eb0461ca0bc73eff29615c388a81fb5bd80e8
tree662df9b6b0bf13cf82dd88ba127f065a5bc3f1eb
parent1576bb1d7806d7c5c0bc14271cb1539618bf8e19
[SMPI] Datatype: Make encode() a static member

MPI_DATATYPE_NULL may be passed to the encode function and we hence
need to check if the argument is null; if we just call
dt->encode(), we would always have to check before that call if dt is nullptr
This way, we just call Datatype::encode(dt)
src/smpi/include/smpi_datatype.hpp
src/smpi/internals/smpi_replay.cpp
src/smpi/mpi/smpi_datatype.cpp