MATLAB PARALLEL COMPUTING TOOLBOX - S Guida Utente Pagina 90

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 89
3 Single Program Multiple Data (spmd)
3-12
parpool('local',2) % Create pool
spmd
codist = codistributor1d(3,[4,12]);
Z = zeros(3,3,16,codist);
Z = Z + labindex;
end
Z % View results in client.
% Z is a distributed array here.
delete(gcp) % Stop pool
For more details on codistributed arrays, see “Working with Codistributed Arrays” on
page 5-5.
Vedere la pagina 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 655 656

Commenti su questo manuale

Nessun commento