From 1534e8b86fec84f67d8a253131a1ef60396a3a38 Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Thu, 19 Apr 2018 12:49:24 +0200 Subject: [PATCH] [SMPI] Added two comments... --- src/smpi/bindings/smpi_pmpi_request.cpp | 5 +++++ src/smpi/include/smpi_request.hpp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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_; -- 2.20.1