Newsgroups: comp.parallel
From: thibaud@kether.cgd.ucar.edu (Francois P. Thibaud)
Subject: Re: Synchronizing PVM tasks
Organization: National Center for Atmospheric Research, Boulder, Colorado, USA
Date: 03 Mar 1995 01:14:30 GMT
Message-ID: <3ja73m$ctl@usenet.srv.cis.pitt.edu>

>>> On 28 Feb 1995 20:17:53 GMT, lorenz@cj.stu.rpi.edu (Lorenz Redlefsen) said:

LR> Sorry if this is a FAQ, but I couldn't find the answer to this in
LR> any of the documentation I have.

LR> I need to have a number of PVM tasks hang around until all other
LR> tasks are done. The obvious solution would be something like:

LR> 	pvm_joingroup( "something" );

LR> 	[... useful work ...]

LR> 	pvm_barrier( "something", num_tasks ); pvm_exit();

LR> Unfortunately, pvm_joingroup() fails with the error message:
LR> "gs_getgstid() failed to start group server: No such file"

LR> Now, the man page for pvm_joingroup(3) says that "something"
LR> should be the name of an already existing group. I have searched
LR> the documentation High And Low for a function that lets me create
LR> a group.

LR> Anyone in the know care to enlighten me, or at least tell me where
LR> to look?

LR> 	Thanks, Lorenz Redlefsen (lorenz@cj.stu.rpi.edu)

pvm_joingroup makes use of pvm_spawn to start pvmgs; pvm_spawn expects
to find pvmgs in $PVM_ROOT/bin/$PVM_ARCH. But Makefile.aimk in
$PVM_ROOT/pvmgs installs pvmgs in $PVM_ROOT/lib/$PVM_ARCH !!!

If you "ln -s ../../lib/$PVM_ARCH/pvmgs ." while in
$PVM_ROOT/bin/$PVM_ARCH, you should get things to work. I think this
is a bug (?)

Kind Regards !

Frangois P. Thibaud

