Newsgroups: comp.parallel.mpi
From: trancv@nosc.mil (Cam V. Tran)
Subject: Re: problems with MPI_Bcast in groups
Organization: NRaD - Code 761
Date: Tue, 12 Dec 1995 16:21:49 GMT
Message-ID: <1995Dec12.162149.29502@nosc.mil>

>Does somebody know how to use MPI_Bcast in groups.
>The following program didn't terminate. It ran on a Meiko CS-2 in Vienna.
>
>#include "mpi.h"
>#include <math.h>
>int main(int argc,char *argv[]){
>  int size,rank,gsize,grank,value=0,ranks[]={1,2,3,4};
>  MPI_Comm comm;
>  MPI_Group group,MPI_GROUP_WORLD;
>     .
>     .
>     .
>  MPI_Finalize();
>}

I tend to agree with Lutz Laemmer (who ran the program on a PowerXPlorer 
using MPICH 1.0.11 and had no problem) that the problem seems to be with 
the MPI implementation on the Meiko.  I tried it out on a Convex Exemplar 
SPP1200 using the current Convex MPI which is based on MPICH 1.0.11 and 
succesfully ran the code.  Using 8 nodes, the output looks like:

Prozess 1/2: is active.
Prozess 2/3: is active.
Prozess -32766/6: is active.
Prozess -32766/7: is active.
Prozess 3/4: is active.
Prozess -32766/5: is active.
Prozess 0/1: is active.
Prozess -32766/0: is active.
Prozess 0/1: sent 5.
Prozess 1/2: got 5.
Prozess 2/3: got 5.
Prozess 3/4: got 5.

Cam Tran  (trancv@nosc.mil)
NRaD - Code 761
San Diego, CA  92152
USA
__________________________________________________________________________






