MATLAB PARALLEL COMPUTING TOOLBOX - S Guia do Utilizador Página 98

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 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]
Vista de página 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 655 656

Comentários a estes Manuais

Sem comentários