Hello,

I have installed openmpi from the ubuntu repository for the 64-bit
dual core AMD processor.

and i tried to compile the simple test program with the help of the
tutorial page but nothing seems to happen.

#include <stdio.h>
#include <mpi.h>

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

        MPI_Init(&argc,&argv);
        MPI_Comm_rank(MPI_COMM_WORLD, &rank);
        printf("my rank=%d\n",rank);
        MPI_Finalize();

        return 0;
}


then from the console i issued the following command

mpicc test.c -o test
mpirun -np 4 test

nothing happens. actually after the command "mpicc test.c -o test"
shouldnt i be having a .o file?

I do not understand how do i get to know if my current installation is
fine or not.


Any suggestion?



Regards
Sajjad

Reply via email to