MATLAB PARALLEL COMPUTING TOOLBOX - S Podręcznik Użytkownika Strona 90

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 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.
Przeglądanie stron 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 655 656

Komentarze do niniejszej Instrukcji

Brak uwag