Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

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