Hi,<br><br>I started using MPICH2 recently and found a problem about reading large file (&gt;64KB) from stdin. My program hanged up on the line MPI_Init(&amp;argc, &amp;argv);. Could anyone help me? Thanks a lot.<br><br>My program: test.cpp<br>
#include &lt;mpi.h&gt;<br><br>int main(int argc, char **argv)<br>{<br>    MPI_Init(&amp;argc, &amp;argv);<br>    MPI_Finalize();<br><br>    return 0;<br>}<br><br>Compile and run:<br>mpicxx test.cpp -o test<br>cat test.txt | mpiexec.gforker -n 2 ./test   # This is OK<br>
cat test.txt | mpiexec.hydra -n 2 ./test   # When test.txt is larger than 65536 bytes, this won&#39;t return.<br><br>The MPICH2 was installed with following commands:<br>./configure --prefix=/usr/local --enable-cxx --enable-fast=O3,nochkmsg,notiming,ndebug --with-pm=hydra:mpd:gforker --enable-smpcoll<br>
make<br>sudo make install<br><br>