Re: [OMPI users] printf and scanf problem of C code compiled with Open MPI

2011-03-30 Thread Meilin Bai
er hand, do you really observe that the time of the scanf () and > the time to enter "N" be insignificant ? > > Pascal > > Meilin Bai a écrit : > > So it means that MPI doesn't suit to interactive programming? Though we can > really use fflush(stdout) to get t

Re: [OMPI users] printf and scanf problem of C code compiled with Open MPI

2011-03-29 Thread Meilin Bai
exist. Maybe it is because I/O implement is a built-in part of Fortran, while in C/C++ it is realized only through function like scanf, printf, et al? On Wed, Mar 30, 2011 at 2:38 AM, Prentice Bisbal wrote: > On 03/29/2011 01:29 PM, Meilin Bai wrote: > > Dear open-mpi users: > &

[OMPI users] printf and scanf problem of C code compiled with Open MPI

2011-03-29 Thread Meilin Bai
message till I input an integer n. And if I add the fflush function between them, it works as expected, though comsumming time obviously. However, when I compiled it with Mpich2-1.3.2p1, without fflush function in the code, it works correctly. Can anyone know what the matter is. Thanks! -- Meilin Bai