From: "B. Lee" <bslee@pvmcube4.snu.ac.kr>
Newsgroups: comp.parallel.pvm
Subject: Re: Beginners Guide???
Date: Sun, 06 Sep 1998 13:02:04 +0900
Organization: ETRI/Super Computer Center
Message-Id: <35F2093C.2970@pvmcube4.snu.ac.kr>
References: <35F1AB8F.5736407B@nospam.cybertrails.com>
Reply-To: bslee@pvmcube4.snu.ac.kr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Nathan Alan Haney wrote:
> 
> I could really use a beginner's guide to the basic setup of pvm (ie
> permissions, hosts.equiv, etc) Maybe I'll just write on as I go...
> 
> Setup:  4 486 40MHz (free) 1 pentium 200 (my workstation)
>         all are running Redhat 5.1
>         installed 3.3.11-2 then upgraded to 3.3.11-11 (to get around missing
> aimk)
> 
>         I can run the pvm console on my workstation and add the 4 other hosts.
> I compiled the test program hello/hello_other. I can spawn and run hello
> on any of the 5 hosts from the pvm console. I always get the same error:
> 
> pvm> spawn -> /home/pvm/pvm3/bin/LINUX/hello
> [13]
> 1 successful
> tc0001
> pvm> [13:tc0001] i'm tc0001
> [13:tc0001] can't start hello_other
> [13:tc0001] EOF
> [13] finished
> 
> This smells of a permissions error to me. I can rlogin & rsh from
> machine to machine. What else should I check???
> 
It's not a permission error. It's path problem.
Default execution path is
'$HOME/pvm3/bin/$PVM_ARCH:$PVM_ROOT/bin/$PVM_ARCH' if you don't set
explicitly in your hostfile. Set ep option in your hostfile like below,
'linuxsvr.seri.re.kr ep=$HOME/pvm3/bin/$PVM_ARCH:$PVM_ROOT/bin/$PVM_A
RCH:full path include hello_other' or copy hello_other to
$HOME/pvm3/bin/$PVM_ARCH or to $PVM_ROOT/bin/PVM_ARCH

And 'wd' option is for setting working directory. If you read data from
files, the data files must be located in working directory. Default 'wd'
is your home directory. So pvm searches data files in your home
directory unless set full data path. If you want to set 'wd', add like
belows,

'linuxsvr.seri.re.kr wd=/home/users/bslee/meta/DATA/NS2D'
These options are explained in FAQ of pvm in pvm homepages.

My hostfile example is below.

linuxsvr.seri.re.kr    
ep=$HOME/pvm3/bin/$PVM_ARCH:$PVM_ROOT/bin/$PVM_ARCH:/hom
e/users/bslee/meta/CODE/NS2D-PVM  wd=/home/users/bslee/meta/DATA/test
elbereth.seri.re.kr    
ep=$HOME/pvm3/bin/$PVM_ARCH:$PVM_ROOT/bin/$PVM_ARCH:/usr
2/people/bslee/meta/CODE/NS2D-PVM      
wd=/usr2/people/bslee/meta/DATA/test
crayt3e.seri.re.kr     
ep=$HOME/pvm3/bin/$PVM_ARCH:$PVM_ROOT/bin/$PVM_ARCH:/scc
/bslee/meta/CODE/NS2D-PVM   wd=/scc/bslee/meta/DATA/test
crayc90.seri.re.kr     
ep=$HOME/pvm3/bin/$PVM_ARCH:$PVM_ROOT/bin/$PVM_ARCH:/ser
i/bslee/meta/CODE/NS2D-PVM  wd=/seri/bslee/meta/DATA/test

I installed my execution code in $HOME/meta/CODE/NS2D-PVM in each hosts,
and data files are located in $HOME/meta/DATA/test.

Good luck.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Bo-sung Lee
ETRI/Super Computer Center, Korea
mailto:bslee@pvmcube4.snu.ac.kr
mailto:bslee@linuxsvr.seri.re.kr
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++

