Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
get the right sender for tracing, because it might not be known if MPI_ANY_SOURCE...
authorAugustin Degomme <degomme@idpann.imag.fr>
Thu, 20 Sep 2012 17:01:20 +0000 (19:01 +0200)
committerAugustin Degomme <degomme@idpann.imag.fr>
Thu, 20 Sep 2012 17:10:43 +0000 (19:10 +0200)
src/smpi/smpi_pmpi.c

index 5079400..561ad0d 100644 (file)
@@ -972,6 +972,8 @@ int PMPI_Recv(void *buf, int count, MPI_Datatype datatype, int src, int tag,
     retval = MPI_SUCCESS;
   }
 #ifdef HAVE_TRACING
+  //the src may not have been known at the beginning of the recv (MPI_ANY_SOURCE)
+  if(status!=MPI_STATUS_IGNORE)src_traced = smpi_group_rank(smpi_comm_group(comm), status->MPI_SOURCE);
   TRACE_smpi_ptp_out(rank, src_traced, rank, __FUNCTION__);
   TRACE_smpi_recv(rank, src_traced, rank);
   TRACE_smpi_computing_in(rank);