Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
pending implementation of new algorithms (see fixme), avoid using _lr as replacement...
authorAugustin Degomme <adegomme@gmail.com>
Wed, 23 Feb 2022 08:52:36 +0000 (08:52 +0000)
committerAugustin Degomme <adegomme@gmail.com>
Wed, 23 Feb 2022 08:52:36 +0000 (08:52 +0000)
_lr is not valid for some sizes, and may default to calling _ompi again, which causes an infinite loop.
todo: find theses cases and eliminate them

src/smpi/colls/smpi_openmpi_selector.cpp

index 2809bab..d1607bd 100644 (file)
@@ -30,8 +30,8 @@ int allreduce__ompi(const void *sbuf, void *rbuf, int count,
     int communicator_size = comm->size();
     int alg = 1;
     int(*funcs[]) (const void*, void*, int, MPI_Datatype, MPI_Op, MPI_Comm)={
-        &allreduce__lr,
-        &allreduce__lr,
+        &allreduce__redbcast,
+        &allreduce__redbcast,
         &allreduce__rdb,
         &allreduce__lr,
         &allreduce__ompi_ring_segmented,