PVM.options {rpvm} | R Documentation |
Get or set the value of libpvm options.
PVM.options (what, val)
what |
a character string specifying libpvm options, must be one
of the following,
|
val |
integer value of the option |
.PVM.options
sets or queries miscellaneous options in the PVM
library. The options are,
"Route"
"DebugMask"
"AutoErr"
"AutoErr"
is set to 1 (the default), an error message is
automatically printed on stderr. A set ting of 0 disables this.
A setting of 2 causes the library to terminate the task by calling
exit() after printing the error message. A setting of 3 causes
the library to abort after printing the error message.
"OutputTid"
val
is the TID of a PVM task. Setting
PvmOutputTid to 0 redirects stdout to the master pvmd, which
writes to the log file /tmp/pvml.<uid> The default setting is
inherited from the parent task, else is 0.
"OutputCode"
"OutputTid"
set to itself.
"TraceTid"
val
is the TID of a PVM task. Setting
"TraceTid"
to 0 discards trace data. The default setting
is inherited from the parent task, else is 0.
"TraceCode"
"TraceTid"
set to itself.
"FragSize"
"ResvTids"
"BadParam"
error when a reserved identifier is
specified.
"SelfOutputTid"
stdout
destination for the task. Every thing
printed on stdout
is packed into messages and sent to the
destination. Note: this only works for spawned tasks, because the
pvmd doesn't get the output from tasks started by other means.
The value is the TID of a PVM task. Setting
"SelfOutputTid"
to 0 redirects stdout to the master pvmd,
which writes to the log file /tmp/pvml.<uid>. The default setting
is inherited from the parent task, else is 0. Setting either
"SelfOutputTid"
or "SelfOutputCode"
also causes both
"OutputTid"
and "OutputCode"
to take on the values
of "SelfOutputTid"
and "SelfOutputCode"
,
respectively.
"SelfOutputCode"
"PvmSelfTraceTid"
"SelfTraceTid"
to 0 discards trace data.
The default setting is inherited from the parent task, else is 0.
Setting either "SelfTraceTid"
or "SelfTraceCode"
also
causes both "TraceTid"
and "TraceCode"
to take on the
values of "SelfTraceTid"
and "SelfTraceCode"
,
respectively.
"SelfTraceCode"
"ShowTids"
pvm_catchout
(note: not supported by
rpvm) tags each line of output printed by a child task with the
task id. Otherwise, output is exactly as printed.
"PollType"
"PollType"
to "PollConstant"
causes the application to spin on its message queue waiting for a
message. Setting "PollType"
to "PollSleep"
causes
the application to poll the message queue for messages
"PollTime"
times before pending on the semaphore.
"PollTime"
"PollType"
is set to "PollConstant"
.
Returns the current option value. If val
is present, set the
corresonding option to new value val
.
Na (Michael) Li nali@umn.edu and A.J. Rossini rossini@u.washington.edu
PVM documentation
## Not run: PVM.options (what = "DebugMask")