Dont use the name 'test' test is a unix command and it causes
problems when you name things 'test'
If you try
mpirun -np 4 ./test
it will work because that will use the test you just created not the
But really dont use the name test and it will work as expected.
Center for Advanced Computing
On Nov 14, 2007, at 10:07 AM, Sajjad wrote:
> 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?
> users mailing list