<br><font size=2 face="sans-serif">Hi,</font>
<br><font size=2 face="sans-serif">When running a very basic "hello
world" app, I've found that the app's behavior depends on the order
I use for hosts in the command line. For example, if I use:</font>
<br>
<br><font size=2 face="sans-serif">mpiexec -hosts 2 10.0.0.6 1 10.0.0.101
1 helloworld.exe</font>
<br>
<br><font size=2 face="sans-serif">The program executes flawlessly. But,
if I use:</font>
<br>
<br><font size=2 face="sans-serif">mpiexec -hosts 2 10.0.0.101 1 10.0.0.6
1 helloworld.exe</font>
<br>
<br><font size=2 face="sans-serif">then the program never gets past the
call to "MPI_Bcast()". Here is my code:</font>
<br>
<br><font size=2 face="sans-serif">-------------------</font>
<br>
<br><font size=2 face="sans-serif">#include "mpi.h"</font>
<br>
<br><font size=2 face="sans-serif">#define MPI_FLUSH()
fflush(stdout)</font>
<br>
<br><font size=2 face="sans-serif">int main( int argc, char* argv[] )</font>
<br><font size=2 face="sans-serif">{</font>
<br><font size=2 face="sans-serif"> int
g_Thread_ID, g_Num_Threads;</font>
<br><font size=2 face="sans-serif"> int
test = 0;</font>
<br>
<br><font size=2 face="sans-serif"> /**************************************************\
</font>
<br><font size=2 face="sans-serif"> *
MPI Initialization
*</font>
<br><font size=2 face="sans-serif"> \**************************************************/</font>
<br><font size=2 face="sans-serif"> MPI_Init(&argc, &argv);</font>
<br><font size=2 face="sans-serif"> MPI_Comm_rank(MPI_COMM_WORLD,
&g_Thread_ID);</font>
<br><font size=2 face="sans-serif"> MPI_Comm_size(MPI_COMM_WORLD,
&g_Num_Threads);</font>
<br>
<br><font size=2 face="sans-serif"> printf("thread
%d: main: About to execute MPI_Bcast\n", g_Thread_ID);</font>
<br><font size=2 face="sans-serif"> MPI_FLUSH();</font>
<br>
<br><font size=2 face="sans-serif"> //
Broadcast integer</font>
<br><font size=2 face="sans-serif"> int
err = MPI_Bcast(&test, 1, MPI_INT, 0, MPI_COMM_WORLD);</font>
<br>
<br><font size=2 face="sans-serif"> printf("thread
%d: completed MPI_Bcast\n", g_Thread_ID);</font>
<br><font size=2 face="sans-serif"> MPI_FLUSH();</font>
<br>
<br><font size=2 face="sans-serif"> MPI_Finalize();</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">------------------</font>
<br>
<br><font size=2 face="sans-serif">I am running Windows Vista on both machines.
Has anyone seen this before? Thanks,</font>
<br><font size=2 face="sans-serif">David</font>
<br>