Newsgroups: comp.parallel.pvm
From: wjiang@thud.cs.utk.edu (weicheng jiang   )
Subject: Re: Bug in CM-5 version: Groups don't work.
Organization: Computer Science Dept, University of Tennessee, Knoxville
Date: 18 Aug 1995 15:23:13 GMT
Message-ID: <412b92INNaq7@CS.UTK.EDU>

>I have been attempting to port gexample.c to the CM-5, but the code always
>hangs on  pvm_joingroup.

Did you compile it properly? I compiled it the same way as spmd:

gexample: $(SDIR)/gexample.c  $(XDIR)
    $(CC) $(CFLAGS) -c $(SDIR)/gexample.c
    cmmd-ld -comp cc -o gexample -host $(LIBDIR)/pvmhost.o \
        $(LIBDIR)/libpvm3.a -node gexample.o $(GLIB) $(NODELIBS)
    mv gexample $(XDIR)

It worked without a hitch:

cranberry>pvm
pvmd already running.
pvm> spawn -> gexample
[1]
1 successful
t60000
pvm> ps
                    HOST      TID   FLAG 0x COMMAND
               cranberry    40004     6/c,f pvmgs       
               cranberry    4000a     6/c,f gexample.host
               cranberry    60000       4/c gexample    
pvm> ps
                    HOST      TID   FLAG 0x COMMAND
               cranberry    40004     6/c,f pvmgs       
               cranberry    4000a     6/c,f gexample.host
               cranberry    4000b     6/c,f gexample.host
               cranberry    60000       4/c gexample    
               cranberry    60800       4/c gexample    
               cranberry    60801       4/c gexample    
               cranberry    60802       4/c gexample    
               cranberry    60803       4/c gexample    
               cranberry    60804       4/c gexample    
               cranberry    60805       4/c gexample    
               cranberry    60806       4/c gexample    
               cranberry    60807       4/c gexample    
               cranberry    60808       4/c gexample    
pvm> [1:t60000]  This program demonstrates some group and reduction  
[1:t60000]  operations in PVM.  The output displays the 
[1:t60000]  the product of the first column of a Toeplitz matrix
[1:t60000]  and the matrix 1-norm. The matrix data is distributed 
[1:t60000]  among several processors.  The Toeplitz matrix is 
[1:t60000]  symmetric with the first row being the row 
[1:t60000]  vector [1 2 ... n].
[1:t60000] 
[1:t60000] 
[1:t60000]  The 1-Norm is 5050  
[1:t60000]  ( Should be the sum of the integers from 1 to 100 )
[1:t60000]  The product of column 1 is 9.33262e+157  
[1:t60000]  ( Should be 100 factorial)
[1:t60000] EOF
[1] finished

pvm> ps
                    HOST      TID   FLAG 0x COMMAND
               cranberry    40004     6/c,f pvmgs       
pvm> 



-Weicheng Jiang
PVM Group, University of Tennessee


