Newsgroups: comp.parallel.pvm
From: wrankin@duke.edu (William T. Rankin)
Subject: Re: Spawned task output (stdout, stderr) doesn't show up in log file.
Organization: Duke University EE Dept.; Durham, NC
Date: 3 Nov 1995 19:54:20 GMT
Message-ID: <47ds1c$9hq@news.duke.edu>

Umm, Ken, the following questions may sound stupid, but I got to ask:

a) are you running PVM on multiple machines?  if so, then realize that
   stderr output is routed to the /tmp/pvml.[UID] file on the machine 
   where the process is running (not necessarily the same machine you
   are on).  the /tmp directory on one system is usually local to that
   one workstation, and not shared.

b) if you are "spawn"-ing the master process from the PVM prompt, then
   the master process may be spawned on a different processor than where
   you are running PVM on.  in that case, (a) above also applies.

c) fprintf(...) output is buffered and may not immediately be written out 
   to the file.  issuing a flush(...) command will cause the output 
   buffers to be written out.

d) since these are basically asynchronous processes, your out-of-order
   printing in /tmp/pvml.UID is reasonable when (c) is taken into account.


Hope this helps,

-bill

-- 
----                                /       __/    /    /
bill rankin                        /              /    /
wrankin@ee.duke.edu               ___  /    /    /    /
philosopher/coffee-drinker       /    /    /    /    /

