Scilab function

pvm_spawn_independent - Starts new PVM processes.

Sequence d'appel

[tids, numt] = pvm_spawn_independent(task, ntask, [where])

Parametres

Description

pvm_spawn_independent starts

copies of the executable named

On systems that support environment, spawn passes selected variables from parent environment to children tasks. If set, the envar PVM_EXPORT is passed. If PVM_EXPORT contains other names (separated by ':') they will be passed too. This is useful for e.g.:


 setenv DISPLAY myworkstation:0.0
 setenv MYSTERYVAR 13
 setenv PVM_EXPORT DISPLAY:MYSTERYVAR
   

The hosts on which the PVM processes are started are determined by the

arguments. On return the array

contains the PVM task identifiers for each process started.

If pvm_spawn_independent starts one or more tasks,

will be the actual number of tasks started. If a system error occurs then

will be < 0. If

is less than

then some executables have failed to start and the user should check the last

locations in the

array which will contain error codes (see below for meaning). The first

tids in the array are always valid.

When the argument

is omitted a heuristic (round-robin assignment) is used to distribute the

processes across the virtual machine.

In the special case where a multiprocessor is specified by

pvm_spawn_independent will start all

copies on this single machine using the vendor's underlying routines.

Exemples

Voir aussi