Ok. Here is detailed explanation. There is example 5.22 on page 182 in mpi22-report.pdf, which can be found here http://www.mpi-forum.org/docs/docs.html Here is test code http://pastebin.com/ZhYfhDVK (same code here http://www.everfall.com/paste/id.php?0b7mgk2zh0xg, just in case) If i run this code using openmpi in archlinux, i get the following result (as expected, in accordance with info from mpi22-report.pdf). mpicc code.c -o openmpi_version (mpicc from openmpi package, mpich is not installed in archlinux) mpirun -n 8 ./openmpi_version 0 0 1.000000 1 0 2.000000 2 1 1.000000 3 1 2.000000 4 1 3.000000 5 0 1.000000 6 0 2.000000 7 1 1.000000 <===== 1, as expected But if i run this code using mpich2 in ubuntu 10.04, (mpich package version 1.2.1.1), i get unexpected result. It was also tested in mpich2-1.4.1p1 and mpich2-1.5 in Windows 7 and Ubuntu 10.04.2 respectively. mpicc code.c -o mpich_version (mpicc from mpich2 package, openmpi is not installed in ubuntu) mpirun -n 8 ./mpich_version 0 0 1.000000 1 0 2.000000 2 1 1.000000 5 0 1.000000 3 1 2.000000 4 1 3.000000 6 0 2.000000 7 1 3.000000 <===== expected to be 1 Also, in openmpi version output is sorted, in accordance with code in lines 60-73 (see pastebin), but in mpich2 this does not work as expected too. On Tue, Dec 18, 2012 at 11:25 PM, Dave Goodell <[email protected]> wrote:
On Dec 18, 2012, at 4:47 AM CST, n n wrote:
I think, i've found a bug in function mpi_scan
Would you care to share any details of the bug on the mailing list? Forgive my caution, but you have a somewhat spammy looking email address and email name and wrote a rather terse email...
-Dave
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss