Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
avoid allocating comm_self if not needed
authorAugustin Degomme <adegomme@users.noreply.github.com>
Sat, 3 Apr 2021 08:30:12 +0000 (10:30 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Sat, 3 Apr 2021 08:30:12 +0000 (10:30 +0200)
src/smpi/mpi/smpi_comm.cpp

index a10451b..5bb9651 100644 (file)
@@ -65,7 +65,7 @@ void Comm::destroy(Comm* comm)
     Comm::destroy(smpi_process()->comm_world());
     return;
   }
-  if(comm != MPI_COMM_WORLD && comm != MPI_COMM_SELF)
+  if(comm != MPI_COMM_WORLD)
     comm->mark_as_deleted();
   Comm::unref(comm);
 }