From: Christian Heinrich Date: Thu, 19 Apr 2018 10:49:24 +0000 (+0200) Subject: [SMPI] Added two comments... X-Git-Tag: v3.20~356 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/1534e8b86fec84f67d8a253131a1ef60396a3a38?ds=sidebyside [SMPI] Added two comments... --- diff --git a/src/smpi/bindings/smpi_pmpi_request.cpp b/src/smpi/bindings/smpi_pmpi_request.cpp index 5f50bff1be..458f7f9608 100644 --- a/src/smpi/bindings/smpi_pmpi_request.cpp +++ b/src/smpi/bindings/smpi_pmpi_request.cpp @@ -89,6 +89,11 @@ int PMPI_Ssend_init(void* buf, int count, MPI_Datatype datatype, int dst, int ta return retval; } +/* + * This function starts a request returned by init functions such as + * MPI_Send_init(), MPI_Ssend_init (see above), and friends. + * They should already have performed sanity checks. + */ int PMPI_Start(MPI_Request * request) { int retval = 0; diff --git a/src/smpi/include/smpi_request.hpp b/src/smpi/include/smpi_request.hpp index 47c6e5c97a..0a8d220217 100644 --- a/src/smpi/include/smpi_request.hpp +++ b/src/smpi/include/smpi_request.hpp @@ -18,8 +18,8 @@ class Request : public F2C { /* in the case of non-contiguous memory the user address should be keep * to unserialize the data inside the user memory*/ void *old_buf_; - /* this let us know how to unserialize at the end of - * the communication*/ + /* this is especially for derived datatypes that we need to serialize/unserialize. + * It let us know how to unserialize at the end of the communication */ MPI_Datatype old_type_; size_t size_; int src_;