Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix stupid tag collision bug. RMA tag is used to order consecutive MPI_Accumulate...
[simgrid.git] / src / smpi / smpi_request.cpp
index 397a8cc..aa1bf22 100644 (file)
@@ -876,7 +876,7 @@ int Request::waitany(int count, MPI_Request requests[], MPI_Status * status)
 
 static int sort_accumulates(MPI_Request a, MPI_Request b)
 {
-  return (a->tag() < b->tag());
+  return (a->tag() > b->tag());
 }
 
 int Request::waitall(int count, MPI_Request requests[], MPI_Status status[])