MATLAB PARALLEL COMPUTING TOOLBOX - S Guida Utente Pagina 98

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 97
4 Interactive Parallel Computation with pmode
4-4
4
A variable does not necessarily have the same value on every worker. The labindex
function returns the ID particular to each worker working on this communicating
job. In this example, the variable x exists with a different value in the workspace of
each worker.
P>> x = labindex
5
Return the total number of workers working on the current communicating job with
the numlabs function.
P>> all = numlabs
6
Create a replicated array on all the workers.
P>> segment = [1 2; 3 4; 5 6]
Vedere la pagina 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 655 656

Commenti su questo manuale

Nessun commento