Newsgroups: comp.parallel.pvm
Path: ukc!uknet!pipex!uunet!ferkel.ucsb.edu!piggy!kpwang
From: kpwang@ferkel.ucsb.edu (K P Wang)
Subject: Re: How do I avoid killing the master pvmd?
Message-ID: <kpwang.761593314@piggy>
Organization: University of California, Santa Barbara
References: <2k1hpv$63g@vixen.cso.uiuc.edu>
Date: Fri, 18 Feb 1994 17:41:54 GMT
Lines: 41

dalke@uxa.cso.uiuc.edu (Andrew Dalke) writes:

>  When my pvm program ends, I do not want the pvmds sitting around
>doing nothing.  I would also like to run multiple programs on the same pvm.
>at the same time.
>  I have a list of all the machines I used and a list of all machines
>on which I started a pvmd.  What I want to do is see if there are any
>pvm programs running on each of the nodes I used (by using
>pvm_tasks()).  Since I know that all my programs have stopped, if
>there are no tids on the remote machine, then that pvmd is idle.
>Thus, I can call pvm_delhost() to get rid of it.
>  That's all fine _except_ that I shouldn't delete the pvmd if it is
>the first one.  If I recall, if that one dies, the whole parallel
>machine dies.  So, is there any way my program can tell which is the
>master pvmd?  

>Thanks.

>					Andrew
>					dalke@lisboa.ks.uiuc.edu


You can get in pvm and then issue a reset command:

%pvm
pvm> reset

This will kill the spawned processes and the pvmd stays .

K.P.

============================================================================
Dr. Kai-Ping Wang, PGR                   kpwang@piggy.ucsb.edu
MEE Dept.                                tel:(805)893-4113
UC Santa Barbara                         fax:(805)893-8651

I am working on parallel computation. Anyone interested in parallel 
computation please feel free to contact me!

Parallel FEA & FDA : Domain Decomposition : Dynamic Load Balancing
============================================================================

