LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2003-06-27 07:28:21


On Fri, 27 Jun 2003, Sarath Devarajan wrote:

> I'm sending a 1D array of say 1000 elements, each, into processors 1-10
> from proc#0 using MPI_Send..the original array is composed of binary
> values only....and I've checked that it has only 0 and 1
>
> Now after sending, when I'm asking a processor, (#4 say) to display the
> array that it has recieved, I see that only 200 are binary, the first
> 100 and the last...
> All the remaining entries are printed out as 104646527..
> I dont know why this huge number has crept in? I've verified and it's
> the same for all the recieving proc's..

You might want to write a bunch of sentinel values into your destination
arrays (e.g., -1, or something even more obvious, like 0xdeadbeef) and
ensure that you're receiving properly at all. If you're not receiving at
all, you should double check your program -- ensure you're pointing to the
right buffer address, you've got the right datatype, count, that any
non-blocking message passing has completed (via MPI_Test or MPI_Wait),
etc.

> "Suppose the prophecy IS true
> Suppose tommorow the war'll be over
> And this MPI program runs error free
> Isnt that worth fighting for
> Isnt it worth DYING for" ;-)

LOL!

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/