Newsgroups: comp.parallel.mpi
From: Jean-Paul Dzisiak <JP.Dzisiak@ulg.ac.be>
Subject: [Q] Another question about MPI...
Organization: Environment Center - ULg
Date: Thu, 19 Feb 1998 11:38:00 +0100
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <34EC0B88.476E1CC3@ulg.ac.be>

Hello !

I have written an MPMD model between a "master" and a "slave". The
"slave" sends data to the "master" with the "MPI_SEND" and the "master
receives its data with the "MPI_RECV" MPI call.

My questions are:

1) When the "slave" has finished, how can I inform the master ? I've
tried
    to call "MPI_FINALIZE" in the "slave" but the "master" is waiting
its
    data through "MPI_RECV" (a blocking call). Should I try the
"MPI_PRODE"
    call in order to know if the "slave" is still present ?

2) If an error occur in the "master" or in the "slave" (file not found,
etc...),
    how can I shutdown these 2 programs ?

3) When a program stops, I am obliged to call "MPI_FINALIZE" or when an
error
    occur, do I have to call "MPI_ABORT". Can't I use STOP (in Fortran)
only ?

Help would be very appreciated...

Jep


