Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Added two comments...
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Thu, 19 Apr 2018 10:49:24 +0000 (12:49 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 20 Apr 2018 14:35:54 +0000 (16:35 +0200)
src/smpi/bindings/smpi_pmpi_request.cpp
src/smpi/include/smpi_request.hpp

index 5f50bff..458f7f9 100644 (file)
@@ -89,6 +89,11 @@ int PMPI_Ssend_init(void* buf, int count, MPI_Datatype datatype, int dst, int ta
   return retval;
 }
 
   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;
 int PMPI_Start(MPI_Request * request)
 {
   int retval = 0;
index 47c6e5c..0a8d220 100644 (file)
@@ -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_;
     /* 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_;
     MPI_Datatype old_type_;
     size_t size_;
     int src_;