Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of scm.gforge.inria.fr:/gitroot/simgrid/simgrid
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 27 Sep 2012 11:45:46 +0000 (13:45 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 27 Sep 2012 11:45:46 +0000 (13:45 +0200)
examples/smpi/mc_bugged2.c
src/msg/msg_gos.c
src/xbt/datadesc/datadesc.c

index 707950e..479b147 100644 (file)
@@ -13,7 +13,7 @@
 
 int main(int argc, char **argv)
 {
-  int recv_buff, err, size, rank;
+  int x,y, err, size, rank;
   MPI_Status status;
 
   /* Initialize MPI */
@@ -32,10 +32,10 @@ int main(int argc, char **argv)
   }
 
   if (rank % 3 == 0) {
-    MPI_Recv(&recv_buff, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
-    printf("(%d) receive %d\n", rank, recv_buff);
-    MPI_Recv(&recv_buff, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
-    printf("(%d) receive %d\n", rank, recv_buff);
+    MPI_Recv(&x, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
+    printf("(%d) x <- %d\n", rank, x);
+    MPI_Recv(&y, 1, MPI_INT, MPI_ANY_SOURCE, MPI_ANY_TAG, MPI_COMM_WORLD, &status);
+    printf("(%d) y <- %d\n", rank, y);
   }else{
     MPI_Send(&rank, 1, MPI_INT, (rank / 3) * 3, 42, MPI_COMM_WORLD);
     printf("Sent %d to rank %d\n", rank, (rank / 3) * 3);
index e63d05f..a883deb 100644 (file)
@@ -664,7 +664,7 @@ msg_task_t MSG_comm_get_task(msg_comm_t comm)
 }
 
 /**
- * \brief This function is called by SIMIX to copy the data of a comm.
+ * \brief This function is called by SIMIX in kernel mode to copy the data of a comm.
  * \param comm the comm
  * \param buff the data copied
  * \param buff_size size of the buffer
index 8c2328f..40856a5 100644 (file)
@@ -170,10 +170,8 @@ void xbt_datadesc_preinit(void)
  **/
 void xbt_datadesc_postexit(void)
 {
-  XBT_VERB("Exiting DataDesc");
   xbt_set_free(&xbt_datadesc_set_local);
   xbt_dict_free(&xbt_dd_constants);
-  XBT_DEBUG("Exited DataDesc");
 }
 
 /** This is mainly to debug */