Re: [OMPI users] Allreduce with Op

2021-03-13 Thread Pierre Jolivet via users
Thanks George, Pierre > On 13 Mar 2021, at 22:24, George Bosilca wrote: >  > Hi Pierre, > > MPI is allowed to pipeline the collective communications. This explains why > the MPI_Op takes the len of the buffers as an argument. Because your MPI_Op > ignores this length it alters data outside t

Re: [OMPI users] Allreduce with Op

2021-03-13 Thread George Bosilca via users
Hi Pierre, MPI is allowed to pipeline the collective communications. This explains why the MPI_Op takes the len of the buffers as an argument. Because your MPI_Op ignores this length it alters data outside the temporary buffer we use for the segment. Other versions of the MPI_Allreduce implementat

[OMPI users] Allreduce with Op

2021-03-13 Thread Pierre Jolivet via users
Hello, The following piece of code generates Valgrind errors with OpenMPI 4.1.0, while it is Valgrind-clean with MPICH and OpenMPI 4.0.5. I don’t think I’m doing anything illegal, so could this be a regression introduced in 4.1.0? Thanks, Pierre $ /opt/openmpi-4.1.0/bin/mpicxx ompi.cxx -g -O0 -