1
pvm_spawn_independent Scilab // Group Scilab function pvm_spawn_independent
3
pvm_spawn_independent - Starts new PVM processes.
6
[tids, numt] = pvm_spawn_independent(task, ntask, [where])
8
task: string, which is the executable file name of the PVM process to be
9
started. The executable must already reside on the host on which it
10
is to be started. The name may be a file in the PVM search path or
11
an absolute path. The default PVM search path is
12
$HOME/pvm3/bin/$PVM_ARCH/ .
15
integer, specifying the number of copies of the executable file to start.
18
string (optional), can be a host name such as ``tequila.ens-lyon.fr'' or
19
a PVM architecture class such as ``SUN4''.
21
numt: integer, the actual number of tasks started. Values less than zero
22
indicate a system error.
24
tids: row of integers, array of the tids of the PVM processes
25
started by this pvm_spawn_independent call.
28
pvm_spawn_independent starts
30
copies of the executable named
32
On systems that support environment, spawn passes selected variables from
33
parent environment to children tasks. If set, the envar PVM_EXPORT is
34
passed. If PVM_EXPORT contains other names (separated by ':') they will
35
be passed too. This is useful for e.g.:
38
setenv DISPLAY myworkstation:0.0
40
setenv PVM_EXPORT DISPLAY:MYSTERYVAR
41
The hosts on which the PVM processes are started are determined by the
43
arguments. On return the array
45
contains the PVM task identifiers for each process started.
47
If pvm_spawn_independent starts one or more tasks,
49
will be the actual number of tasks started. If a system error occurs
56
then some executables have failed to start and the user should check the
61
array which will contain error codes (see below for meaning). The first
63
tids in the array are always valid.
67
is omitted a heuristic (round-robin assignment) is used to distribute
70
processes across the virtual machine.
72
In the special case where a multiprocessor is specified by
74
pvm_spawn_independent will start all
76
copies on this single machine using the vendor's underlying routines.
79
[tids, numt] = pvm_spawn_independent("a.out",2)