Hi,<br><br>I started using MPICH2 recently and found a problem about reading large file (>64KB) from stdin. My program hanged up on the line MPI_Init(&argc, &argv);. Could anyone help me? Thanks a lot.<br><br>My program: test.cpp<br>
#include <mpi.h><br><br>int main(int argc, char **argv)<br>{<br> MPI_Init(&argc, &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'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>