[OMPI users] mpirun error

2014-11-04 Thread jfsanchez
Hello, I'm very new using OpenMPI, so I was testing it and wrote this program:
//main.c
#include 
#include 

int main(int argc, char **argv)
{
int rank;
char hostname[256];

MPI_Init(&argc,&argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
gethostname(hostname,255);
printf("Hello world!  I am process number: %d on host %s\n", rank, 
hostname);
MPI_Finalize();
return 0;
} 

and compiled using:
mpicc -o test main.c
but, when a run:
mpirun -np 4 test
it give me this error:
"mpirun noticed that the job aborted, but has no info as to the process
that caused that situation."

I'm using Ubuntu 14.04 and OpenMPI was installed from its repository.

Any suggestion.



III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 
2014. Ver www.uci.cu


Re: [OMPI users] mpirun error

2014-11-04 Thread jfsanchez
On Tuesday, November 04, 2014 11:06:06 PM Jeff Squyres wrote:
> mpirun -np 4 ./test
Oh man, THANKS for your quick answer.
LOL, nice, now it's running.
III Escuela Internacional de Invierno en la UCI del 17 al 28 de febrero del 
2014. Ver www.uci.cu