From: Frank Vardaro <vardaro@thm2.bnl.gov>
Newsgroups: comp.parallel.mpi
Subject: producer/consumer algorithms using MPI
Date: Mon, 17 May 1999 12:35:23 -0400
Organization: Brookhaven National Laboratory
Message-Id: <3740454B.B9B44CF2@thm2.bnl.gov>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Xref: ukc comp.parallel.mpi:5095


Hi,
    I just configured MPI on a quad pentium Linux machine using ch_shmem
comm. I ran the examples and they seemed to worked fine. I am new to
parallel computing and have been trying to parallelize existing code
using a producer/consumer approach. I don't know what type of
communications to use. I have tried everything and get it working for
only two processes  beyond that the program freezes. I used
blocking/non-blocking, MPI_Sendrecv, MPI_Gather, etc. I figured out that
it is unsafe to do this using blocking send/recv pairs so I have been
trying the non-blocking send/recv pair. I have followed a couple of
books but can't seem to get it working. Any advice is very much
appreciated!!

Thanks!

Frank Vardaro
vardaro@thm2.chm.bnl.gov

