Newsgroups: comp.parallel.pvm
Path: ukc!uknet!pipex!howland.reston.ans.net!cs.utexas.edu!swrinde!sgiblab!sgigate.sgi.com!olivea!charnel!psgrain!news.clark.edu!serval!tribble!unibhanp
From: unibhanp@tribble.eecs.wsu.edu (Uma Nibhanpudi - EECS)
Subject: Re: Send / receive [Newbie ques].
Message-ID: <1994Jan21.192324.22455@serval.net.wsu.edu>
Sender: news@serval.net.wsu.edu (USENET News System)
Organization: Washington State University
References: <CJw6pC.5wn@newcastle.ac.uk>
Date: Fri, 21 Jan 94 19:23:24 GMT
Lines: 31

Raj.Subramani@newcastle.ac.uk (D. Subramani) writes:
>
>I tried to hack the master1.c/slave1.c code that comes
>in the examples dir with pvm3.x so as to send a message
>to a particular slave.
>
>tids was just one number (one slave), created by
>
>pvm_spawn(SLAVENAME, (char **) 0, "machine_name", 1, &tids);


The correct format of pvm_spawn is
             
pvm_spawn( char *task, char **argv, int flag, char *where, int ntask,
           int *tids )

Try with 

     pvm_spawn(SLAVENAME, (char **) 0, 1, "machine_name", 1, &tids);

Hope this helps.
      
>
>Thanks for any help
>
>Cheers
>
>-raj.subramani@newcastle.ac.uk

-uma@beta.tricity.wsu.edu


