Newsgroups: comp.parallel.pvm
From: Chris Humphres <chumphre@ee.duke.edu>
Subject: Re: Q: adding a host more than once if it has more than 1 CPU
Organization: Duke University
Date: Tue, 29 Oct 1996 13:34:23 -0500
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <32764E2F.41C67EA6@ee.duke.edu>

Jeff Taylor wrote:
> 
> In article <1996Oct25.221446.23697@jarvis.cs.toronto.edu>,
>         wayne@cs.toronto.edu (Wayne Hayes) writes:
> > I'm using PVM on a network of SPARCstations.  Some of them have more
> > than one CPU (SUNMP is their type), and I'd like to allow as many
> > PVM jobs as there are CPUs run on these machines.  However, I can't
> > find a way to "add" the name of such machines more than once.  (I
> > know I could use pvm_spawn with a specific machine name more than
> > once, but I want a multiple-CPU machine to act transparently like
> > a "bunch" of machines, as many as it has CPUs.)
> >
> > Is this possible?  I can't imagine it's not, I just haven't found the
> > trick yet.
> >
> > --
> 
> You don't need to add the host again, one pvmd is enough.  Just have your
> master spawn more than one slave on the MP hosts.  Unfortunately, there is'nt
> an easy way for the master to know how many CPUs are available on a given
> host.  You just have to hard code it in your program.

An alternative is to set the speed of each host using a hostfile
to the number of processors available and use that to spawn the
appropriate number of processes.

Chris
 
> Jeff
> 
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Jeffrey S. Taylor                               Protein Crystallography
> The Wistar Institute and                        Molecular Modelling
> The University of Pennsylvania                  Software development
> Philadelphia, PA 19104                          Molecular Biology
> (215) 898-2202                  E-Mail    Jeff@aries.wistar.upenn.edu
>                                 WWW     http://adeno.wistar.upenn.edu
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

