Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Cygwin compilation problems for openmpi-1.8
From: Marco Atzeri (marco.atzeri_at_[hidden])
Date: 2014-04-15 08:35:26


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