MATLAB PARALLEL COMPUTING TOOLBOX - S Guida Utente Pagina 24

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 23
1 Getting Started
1-10
parfor
batch
MATLAB
®
workers
MATLAB
®
client
5
To view the results:
wait(job)
load(job,'A')
plot(A)
The results look the same as before, however, there are two important differences in
execution:
The work of defining the parfor-loop and accumulating its results are offloaded
to another MATLAB session by batch.
The loop iterations are distributed from one MATLAB worker to another set of
workers running simultaneously ('Pool' and parfor), so the loop might run
faster than having only one worker execute it.
6
When the job is complete, permanently delete its data and remove its reference from
the workspace:
delete(job)
clear job
Vedere la pagina 23
1 2 ... 19 20 21 22 23 24 25 26 27 28 29 ... 655 656

Commenti su questo manuale

Nessun commento