Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: [OMPI users] OpenMPI - compilation
From: Sajjad (rupam.sajjad_at_[hidden])
Date: 2007-11-14 13:07:42


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_Comm_rank(MPI_COMM_WORLD, &rank);
        printf("my rank=%d\n",rank);

        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?