On 15/04/2014 13:31, Cristian Butincu wrote:
This is the simple MPI program (test.c) I was talking about: #include <mpi.h> #include <stdio.h> int main(int argc, char* argv[]) { int my_rank; /* rank of process */ int p; /* number of processes */ /* start up MPI */ MPI_Init(&argc, &argv); /* find out process rank */ MPI_Comm_rank(MPI_COMM_WORLD, &my_rank); /* find out number of processes */ MPI_Comm_size(MPI_COMM_WORLD, &p); printf("Hello MPI World! Num processes: %d\n", p); /* shut down MPI */ MPI_Finalize(); return 0; } Issued commands: $ mpicc test.c $ orterun -np 4 a.exe
on 64bit 1.7.5, as Symantec Endpoint protections, just decided that a portion of 32bit MPI is a Trojan... $ mpicc test_mpi.c -o test_mpi $ mpirun -n 4 ./test_mpi.exe Hello MPI World! Num processes: 4 Hello MPI World! Num processes: 4 Hello MPI World! Num processes: 4 Hello MPI World! Num processes: 4 Regards Marco