Hi all,<br><br>Thanks for the help in advance.&nbsp; Here's a detailed explanantion of the problem I'm running in to.<br><br>A little background . . . I am running the latest MPICH2.&nbsp; I am using Rocks, running on Xeon EM64T processors with Gig-E IP between the compute nodes.&nbsp; Not completely relevant, but want to be complete.
<br><br>I have written an app that has the following source code.&nbsp; It is a very very simple because my real program which is quite complicated was not working, and I figured that this app would work just fine.<br><br>#include &lt;
mpi.h&gt;<br>#include &lt;stdio.h&gt;<br><br>int main(int argc, char** argv) {<br>&nbsp;&nbsp;&nbsp; MPI::Init(argc, argv);<br>&nbsp;&nbsp;&nbsp; printf(&quot;My app is running!!!!\n&quot;);<br>&nbsp;&nbsp;&nbsp; MPI::Finalize();<br>&nbsp;&nbsp;&nbsp; return 0;<br>}<br><br>I compiled it like this:
<br>&nbsp;&nbsp;&nbsp; mpicxx -o my_app my_app.cpp<br><br>I start an mpd daemon on the the head node 'mpd &amp;', and verify with mpdtrace.&nbsp; So far so good.<br><br>I then execute the following:<br>&nbsp;&nbsp;&nbsp; mpiexec -l -n 1 ./myapp<br><br>and I get:
<br>&nbsp;&nbsp;&nbsp; 0: My app is running!!!!<br><br>and it quits.&nbsp; I then run:<br>&nbsp;&nbsp;&nbsp; mpiexec -l -n 4 ./myapp<br><br>and I get (as expected):<br>&nbsp;&nbsp;&nbsp; 0: My app is running!!!!<br>&nbsp;&nbsp;&nbsp; 1: My app is running!!!!<br>&nbsp;&nbsp;&nbsp; 3: My app is running!!!!
<br>&nbsp;&nbsp;&nbsp; 2: My app is running!!!!<br><br>OK, so this is good so far.&nbsp;&nbsp; Here's where things go awry...<br><br>I then run:<br>&nbsp;&nbsp;&nbsp; mpiexec -l -n 1 hostname : -n 1 date<br><br>and I get (again as expected):<br>&nbsp;&nbsp;&nbsp; 0: &lt;hostname&gt;
<br>&nbsp;&nbsp;&nbsp; 1: &lt;date&gt;<br><br>Then I run (and here's where the problem is):<br>&nbsp;&nbsp;&nbsp; mpiexec -l -n 1 ./myapp : -n 1 hostname<br><br>and I get:<br>&nbsp;&nbsp;&nbsp; 1: &lt;hostname&gt;<br><br>And NOTHING else!&nbsp; Just hangs FOREVER . . . have to hit CTRL-C to quit.
<br><br>This continues regardless of the order that I run my app in, whether it's the first or second on the line, it does not matter.&nbsp; Also, this is true regardless of the &quot;other&quot; app that I am running, not necessarilly just 'hostname' or 'date', and does not matter how many nodes that I am using.&nbsp; The real apps that I am trying to run both are using MPI and am trying to pass data between the two processes.&nbsp; I have rebuilt MPICH2 multiple times, and tried various configure options with zero luck.
<br><br>Please help, this has become a showstopper for me.<br><br>Thanks!<br><br>Matt<br>