Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Is this an OpenMPI bug?
From: Terry Frankcombe (terry_at_[hidden])
Date: 2009-02-21 01:14:24

When you say "a real variable", you mean default real, no crazy implicit
typing or anything?

I think if x is real(8) you'd see what you say you see.

On Fri, 2009-02-20 at 18:54 -0500, -Gim wrote:
> I am trying to use the mpi_bcast function in fortran. I am using
> open-mpi-v-1.2.7
> Say x is a real variable of size 100. np =100 I try to bcast this to
> all the processors.
> I use call mpi_bcast(x,np,mpi_real,0,ierr)
> When I do this and try to print the value from the resultant
> processor, exactly half the values gets broadcast. In this case, I
> get 50 correct values in the resultant processor and rest are junk.
> Same happened when i tried with np=20.. Exactly 10 values gets
> populated and rest are junk.!!
> ps: I am running this in a single processor. ( Just testing purposes )
> I run this with "mpirun -np 4 <filename> "
> Cheerio,
> Gim
> _______________________________________________
> users mailing list
> users_at_[hidden]