On Jul 1, 2005, at 6:32 PM, Marcelo Fukushima wrote:
> im really desperate now... ok now its running, but somehow it doesnt
> wait for the input but instead the ring example keeps looping a very
> big number (but it seens like the 0 node doesnt send anything)... can
> you help me out a lil more?
There is a known bug in 7.1.1 such that stdin is not setup properly.
As such, the
> also, is there a way to send an array? or at least part of it?
Yes, see below.
> one last doubt: if i send two msgs to a node with mpi_isend (async),
> will it stack on a queue? or will it return an error code?
You can invoke as many Isend's as you like (pending node resource
limitations, of course). You must, however, test for completion later
using some flavor of the completion functions (MPI_TEST, MPI_WAIT,
etc.).
I would strongly suggest taking an MPI tutorial (a very good one:
http://webct.ncsa.uiuc.edu:8900/public/MPI/), or at least looking at
the documentation, the MPI standard (see http://www.mpi-forum.org/), or
your favorite book about MPI, specifically with respect to the MPI
sending and non-blocking completion functions (e.g., MPI_SEND,
MPI_ISEND, MPI_TEST, MPI_WAIT, etc.).
--
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/
|