Hi all,<br><br>Thanks for the help in advance. Here's a detailed explanantion of the problem I'm running in to.<br><br>A little background . . . I am running the latest MPICH2. I am using Rocks, running on Xeon EM64T processors with Gig-E IP between the compute nodes. Not completely relevant, but want to be complete.
<br><br>I have written an app that has the following source code. 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 <
mpi.h><br>#include <stdio.h><br><br>int main(int argc, char** argv) {<br> MPI::Init(argc, argv);<br> printf("My app is running!!!!\n");<br> MPI::Finalize();<br> return 0;<br>}<br><br>I compiled it like this:
<br> mpicxx -o my_app my_app.cpp<br><br>I start an mpd daemon on the the head node 'mpd &', and verify with mpdtrace. So far so good.<br><br>I then execute the following:<br> mpiexec -l -n 1 ./myapp<br><br>and I get:
<br> 0: My app is running!!!!<br><br>and it quits. I then run:<br> mpiexec -l -n 4 ./myapp<br><br>and I get (as expected):<br> 0: My app is running!!!!<br> 1: My app is running!!!!<br> 3: My app is running!!!!
<br> 2: My app is running!!!!<br><br>OK, so this is good so far. Here's where things go awry...<br><br>I then run:<br> mpiexec -l -n 1 hostname : -n 1 date<br><br>and I get (again as expected):<br> 0: <hostname>
<br> 1: <date><br><br>Then I run (and here's where the problem is):<br> mpiexec -l -n 1 ./myapp : -n 1 hostname<br><br>and I get:<br> 1: <hostname><br><br>And NOTHING else! 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. Also, this is true regardless of the "other" app that I am running, not necessarilly just 'hostname' or 'date', and does not matter how many nodes that I am using. The real apps that I am trying to run both are using MPI and am trying to pass data between the two processes. 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>