Newsgroups: comp.parallel.pvm
From: petit@callisto.lpl.arizona.edu (Jean-Marc Petit)
Subject: Re: pvmfconfig problems
Organization: University of Arizona, CCIT
Date: 08 Jun 1994 21:15:17 GMT
Message-ID: <PETIT.94Jun8141517@callisto.lpl.arizona.edu>

In article <2snbud$gnh@senator-bedfellow.MIT.EDU> hungy@ATHENA.MIT.EDU (Hung-Chou Tai) writes:

   Path: news.Arizona.EDU!news.Cerritos.edu!nic-nac.CSU.net!usc!howland.reston.ans.net!spool.mu.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!hungy
   From: hungy@ATHENA.MIT.EDU (Hung-Chou Tai)
   Newsgroups: comp.parallel.pvm
   Date: 3 Jun 1994 13:41:33 GMT
   Organization: Massachusetts Institute of Technology
   Lines: 26
   NNTP-Posting-Host: primavera.mit.edu

   Hi,

   I'm having problems with the pvmfconfig routine in PVM 3.2.6
   According to the Quick Reference Guide, the format of the
   call is

   call pvmfconfig(nhost, narch, dtid, host, arch, speed, info)

   I'm getting a segmentation fault whenever I reach that statement.
   The only other pvm call that I do before this one is

   call pvmfmytid(mytid)

   According to the user's guide, the format of the pvmfconfig call
   is:

   call pvmfconfig(nhost, narch, info)

   Which is correct?  I've tried both and have gotten the same problem.

   Thanks,
   Hung-Chou Tai
   CS Draper Labs
   hct4708@draper.com
   -- 
   Hung-Chou Tai

I'm myself using pvmfconfig, with the set of arguments in your first
calling sequence (the one described in the Quick Reference Guide). I
have no problems. Be sure that "nhost", "narch" and "info" are
INTEGERs, "dtid" and "speed" are arrays of INTEGERs and "host" and
"arch" are arrays of CHARACTERs long enough to hold the complete
name of each host and architecture (plus one character for char(0)
added by C). Be aware that you'll need to call pvmfconfig once for
each host since it gives only one name at a time:

      call pvmfconfig (nhost, narch, dtid, host, arch, speed,
     $  info)
      do i = 2, nhost
         call pvmfconfig (j, k, dtid(i), host(i), arch(i),
     $     speed(i), info)
      end do

Hope it helps.

Jean-marc Petit

