Newsgroups: comp.parallel.pvm
From: hinker@informatik.uni-wuerzburg.de (Stefan Hinker)
Subject: Re: Misc questions
Organization: University of Wuerzburg, Germany
Date: 23 Jan 1996 23:17:27 GMT
Message-ID: <4e3qa7$9u9@winx03.informatik.uni-wuerzburg.de>

Boris A. Velikovich (boris@Glue.umd.edu) wrote:
: Several questions on PVM.

A: 0)  Please read the FAQ and PVM-Book.  Sorry, I don't have the references
handy just now.

: 1)

: Question is, does the value of msgtype matter, or we only care that it were
: the same for SEND and RECV commands?
A: 1)  No, as long as the message-tag (as it is called) is greater than zero,
and in the range of int, there should be no problem.  Just take care that
they are ALWAYS the same for send and recv!
: In my program, I tried different msgtypes (consistent for SEND and RECV),
: and for some values I got into indefinite waiting for RECV! For the values
: that do work, however, I get a run-time error "PVM_UPKINT: End of buffer",
: and I do not know WHY is it happening. Since all PKINTs match all UPKINTs,
The usual reason for "end of buffer" is trying to read more than you sent.
Check your code!
: I think the reason is the wrong value of msgtype.
It is not.
: How to choose the value for msgtype??
See above, the PVM-Book, and probably the FAQ!

: 2) While debugging a PVM program, how to get the spawned programs to print
: their results? I have lots of debugging PRINTs in my spawned program, yet
: for some reason the output disappears!
Again, see the FAQ and PVM-Book.  
stdout of your programs goes to /tmp/pvml.<uid> on the host running the
master pvmd.  Check the PVM-Book for information on how to redirect stdout of
clients.  Don't forget to use fflush(stdout) whenever you want to see your
output immediately!

Feel free to contact me directly for further help, if the FAQ and PVM-Book
fail you.

Greetings,
Stefan

--
===============================================================================
Stefan Hinker                         email: hinker@informatik.uni-wuerzburg.de
                   Short signatures, please! 
===============================================================================

