Newsgroups: comp.parallel.pvm
From: Juergen Kuersch <kue@eecs.rwth-aachen.de>
Subject: Re: Debugging Spawned Tasks Again
Organization: Chair of Electrical Engineering and Computer Systems (EECS)
Date: Thu, 22 May 1997 08:40:39 +0200
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <3383EA67.3575@eecs.rwth-aachen.de>

Aaron Brian McDonough wrote:
> 
> After many attempts, I am still having problems with debugging spawned
> tasks on remote hosts - any help here is much appreciated.
> 
> I spawn my task to debug with the following:-
> 
>     info = pvm_spawn("worker", 0, PvmTaskDebug|PvmTaskHost,
>                         "cephlon.ph.rmit.edu.au",
>                         1, &(task_ids[0]) );
> 
>     printf("Started %d task\n",info);   // 1 is outputtted here
> 
> I do this four times on separate hosts. I get a 4 task ids back - and
> info has the value 1. The only tasks that actually start are the ones
> spawned on the machine which I am using the console of. When I check

Aaron,

the manpage of pvm_spawn says pvm_spawn returns the actual number of
tasks started. I therefore assume the task ids with higher indices in
your task_ids vector are invalid and just have not been cleared by pvm.

Make sure that the binaries you are trying to spawn are visible 
and accessible on the remote hosts, as well as the scripts
$PVM_HOME/lib/debugger and $PVM_HOME/lib/debugger2 must be
executable.

Usually, at least some xterms should pop up if you use the default
debug scripts. If not, try to find out why.

Hope this helps.

GRTX
	Juergen Kuersch

-- 
----------------------------------------------------------------------------
      Juergen Kuersch,                    mailto:kue@eecs.rwth-aachen.de
             Chair of Electrical Engineering and Computer Systems
                             RWTH Aachen, Germany

