Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] An error occured in MPI_Bcast; MPI_ERR_TYPE: invalid datatype
From: Eugene Loh (eugene.loh_at_[hidden])
Date: 2010-05-21 10:21:23


Pankatz, Klaus wrote:

>Hi folks,
>
>openMPI 1.4.1 seems to have another problem with my machine, or something on it.
>
>This little program here (compiled with mpif90) startet with mpiexec -np 4 a.out produces the following output:
>Suriprisingly the same thing written in C-Code (compiled with mpiCC) works without a problem.
>
>
Not so surprising since it's C code!

For Fortran:

MPI_INT -> MPI_INTEGER
and add an ierror argument to your MPI_Bcast call (the way you have for
MPI_Comm_rank/size).