MATLAB PARALLEL COMPUTING TOOLBOX - S Guía de usuario Pagina 98

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 656
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de 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]
Vista de pagina 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 655 656

Comentarios a estos manuales

Sin comentarios