Newsgroups: comp.parallel.pvm
From: saroff@msc.edu (Stephen Saroff Minnesota Supercomputer Center)
Subject: Portable start ups
Organization: UTexas Mail-to-News Gateway
Date: 27 Jun 1995 12:53:20 -0500
Message-ID: <9506271753.AA19213@ee.msc.edu>

Is there a recommended best way for writing a PVM code such that it
is portable between the T3D and a standard environment.\


I generally do a check like 

      call pvmfparent( iparent )
C
C     Find parent (master), only the pare/master will not have one.
c     Set number of tasks spawned to number of hosts less the master
c
      if( iparent .eq. PvmNoParent ) then
         tid(0)=mytid
         call pvmfspawn('somecode',PVMDEFAULT,'*',NumTasks,tid(1),istatus)
      endif
C

in network pvm, but that isn't a good idea on the T3d I would guess.


------
 Stephen Saroff				Computational Physicist
 Minnesota Supercomputer Ctr.		email: saroff@msc.edu
 1200 Washington Ave S.			voice: 612/337-3423
 Minneapolis, MN 55415			fax  : 612/337 3400

