Hello, I'm very new using OpenMPI, so I was testing it and wrote this program:
//main.c
#include <mpi.h>
#include <stdio.h>

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

Reply via email to