Hi all,

I've the following problem. I downloaded/compiled/installed openMPI 1.0
on my Linux i386 box with ubuntu 5.10.

Now I tested with the following trivial 'hello world' program:
#include <stdio.h>
#include "mpi.h"

int main(argc,argv)
int argc;
char *argv[];
{
   int myid, numprocs;

   MPI_Init(&argc,&argv);
   MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
   MPI_Comm_rank(MPI_COMM_WORLD,&myid);

   printf ("%d of %d: Hello world!\n", myid, numprocs);


   MPI_Finalize();
   return 0;
}


Compilation with: mpicc -o hello hello.c
So far, so good. Now the weird things is that
sometimes I can run this program, sometimes I cannot!


Here is a cut and paste snippit of my terminal:
arnold@rc-429:~/programming/mpi$ mpirun -machinefile machinefile -np 4 ./hello
2 of 4: Hello world!
3 of 4: Hello world!
1 of 4: Hello world!
0 of 4: Hello world!
arnold@rc-429:~/programming/mpi$ mpirun -machinefile machinefile -np 4 ./hello
0 of 4: Hello world!
3 of 4: Hello world!
2 of 4: Hello world!
1 of 4: Hello world!
arnold@rc-429:~/programming/mpi$ mpirun -machinefile machinefile -np 4 ./hello mpirun noticed that job rank 3 with PID 7643 on node "rc-429" exited on signal 11.
3 processes killed (possibly by Open MPI)
arnold@rc-429:~/programming/mpi$ mpirun -machinefile machinefile -np 4 ./hello mpirun noticed that job rank 3 with PID 7657 on node "rc-429" exited on signal 11.
1 additional process aborted (not shown)
2 processes killed (possibly by Open MPI)
arnold@rc-429:~/programming/mpi$ mpirun -machinefile machinefile -np 4 ./hello
1 of 4: Hello world!
3 of 4: Hello world!
0 of 4: Hello world!
2 of 4: Hello world!
arnold@rc-429:~/programming/mpi$


Has anyone seen this behaviour before? And if Yes, what is
going on? (BTW signal 11 is segmentation fault. I don't see
how this program can result in that)


Any help appreciated,

  Arnold

Reply via email to