Newsgroups: comp.parallel.pvm
From: hafidi@lifl.fr (hafidi zouhir)
Subject: Re: Location of spawned tasks/group functions
Organization: Laboratoire d'Informatique Fondamentale de Lille - France
Date: 21 Feb 1995 10:47:03 GMT
Message-ID: <3icgb7$5to@netserver.univ-lille1.fr>

In article mem@gensva.athena.livjm.ac.uk, Niall Adams <cmsnadam@kryten.cms.livjm.ac.uk> () writes:
> Hello,	
>         I have a program which consists of a master program that 
> spawns p slaves. I notice that a slave task is often spawned on the
> local host, where the master task is executing. It seems to me that
> this must slow the execution time of the PVM program since the local
> host is doing more work than is desirable. Is this correct? If so,
> is there a way to force slaves to be spawned on machines other than
> the local host?
> 
> 	My slave tasks, (and indeed the master ) perform very similar
> tasks. Is there any benefit in using 'process groups'? Are there 
> any references to their use?
> 
> Thanks,
> 
> Niall Adams
> n.adams@livjm.ac.uk 
> 
> 

Hi,
sure you can force the execution of a slave on a particular host,
this is possible by pvm_spawn() call as follows:

  pvm_spawn(<slave name>, <slave argv>, PvmTaskHost, <host name>, 
                                        ^^^^^^^^^^^
            <nb slaves>, <tid>);

I advise you to avoid 'process groups' as far as possible
if you are not obliged to use them to get high performance.

best regards,
---
------------------------------------------------------
HAFIDI Zouhir
Universite des Sciences et Technologie de LILLE 1
Cite scientifique Batiment M3
59655 FRANCE

E-mail: hafidi@lifl.fr
------------------------------------------------------


