From: Clark Dorman <clark@s3i.com>
Newsgroups: comp.parallel.pvm
Subject: Re: Newbie question
Date: 26 Aug 1998 09:59:22 -0400
Organization: PSINet
Message-Id: <dg1ejj139.fsf@elmo.s3i.com>
References: <35E3AF42.874D6CBF@ozemail.com.au>


Stephen So <stso@ozemail.com.au> writes:
> Hi everyone,

Hi.
 
> I'm sort of newbie to PVM and I have a simple question. Since PVM can
> work over a heterogeneous network, do I have to compile my programs
> separately for each platform?

Yes, you do.  And you need to have compiled pvm for each one of the
platforms as well.  

Executables simply don't work from platform to platform, so you have
to have working executables for each one.  The hard part is making
sure that you are running the correct executable when you are on each
platform when you get there.  On my network, I have several versions
of SunOS, Irix (Silicon Graphics) and we just got a Linux machine (and
it is amazingly fast BTW).

A solution in terms of PVM is to have a host file (see the man page
for pvmd) and set ep=PATH to the executables for each platform.  Note
that ep is defaulted to:

          ep $HOME/pvm3/bin/$PVM_ARCH:$PVM_ROOT/bin/$PVM_ARCH

So, you can put the executables in the correct PVM_ARCH directory.  On
my system, I wanted to keep my personal executables someplace else (in
the bowels of my directory structure) and leave the pvm3 area "pure".

What is PVM_ARCH, if you go that route?  Look in the pvm3/lib
directory for pvmgetarch.  Run it on each of your systems and see what
it puts out.
 
-- 
Clark Dorman				"Evolution is cleverer than you are."
http://cns-web.bu.edu/pub/dorman/D.html                -Francis Crick

