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

  • Download
  • Add to my manuals
  • Print
  • Page
    / 656
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 96
Run Communicating Jobs Interactively Using pmode
4-3
Run Communicating Jobs Interactively Using pmode
This example uses a local scheduler and runs the workers on your local MATLAB client
machine. It does not require an external cluster or scheduler. The steps include the
pmode prompt (P>>) for commands that you type in the Parallel Command Window.
1
Start the pmode with the pmode command.
pmode start local 4
This starts four local workers, creates a communicating job to run on those workers,
and opens the Parallel Command Window.
You can control where the command history appears. For this exercise, the position
is set by clicking Window > History Position > Above Prompt, but you can set it
according to your own preference.
2
To illustrate that commands at the pmode prompt are executed on all workers, ask
for help on a function.
P>> help magic
3
Set a variable at the pmode prompt. Notice that the value is set on all the workers.
P>> x = pi
Page view 96
1 ... 96 97 98 ... 656

Comments to this Manuals

No comments