MATLAB PARALLEL COMPUTING TOOLBOX - S User's Guide Page 90

  • Download
  • Add to my manuals
  • Print
  • Page
    / 656
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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.
Page view 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 655 656

Comments to this Manuals

No comments