MATLAB PARALLEL COMPUTING TOOLBOX 4 Guida Utente Pagina 114

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 128
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 113
R2007b
16-2
New Parallel for-Loops (parfor-Loops)
New parallel for-loop (parfor-loop) functionality automatically executes a loop body
in parallel on dynamically allocated cluster resources, allowing interleaved serial and
parallel code. For details of new parfor functionality, see Parallel for-Loops (parfor) in the
Distributed Computing Toolbox™ documentation.
Limitations
P-Code Scripts
You can call P-code script files from within a parfor-loop, but P-code script cannot
contain a parfor-loop.
Compatibility Considerations
In past releases, parfor was a different function. The new parfor uses parentheses in
defining its range to distinguish it from the old parfor.
New parfor:
parfor (ii = 1:N); <body of code>; end;
Old parfor:
parfor ii = 1:N; <body of code>; end;
For this release, the old form of parfor without parentheses is still supported,
although it generates a warning. You can read more about the new form of this existing
functionality in Using a for-Loop Over a Distributed Range (for-drange). You should
update your existing parfor code to use the new form of for-loops over a distributed
range (for-drange), thus,
for ii = drange(1:N); <body of code>; end;
Configurations Manager and Dialogs
This release introduces a new graphical user interface for creating and modifying user
configurations, and for designating the default configuration used by some toolbox
functions. For details about the configurations manager, see Cluster Profiles in the
Distributed Computing Toolbox documentation.
Vedere la pagina 113
1 2 ... 109 110 111 112 113 114 115 116 117 118 119 ... 127 128

Commenti su questo manuale

Nessun commento