Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > Mathematica System Setup > Parallel Computation Setup & Configuration > ParallelNeeds >
Mathematica > Systems Interfaces & Deployment > Parallel Computing > Parallel Computation Setup & Configuration > ParallelNeeds >
Mathematica > Core Language > Tuning & Debugging > Parallel Computing > Parallel Computation Setup & Configuration > ParallelNeeds >

ParallelNeeds

ParallelNeeds
evaluates Needs on all available parallel kernels.
  • ParallelNeeds in effect "registers" Needs specifications so that they are automatically performed in every new parallel kernel that may be launched.
Load package for master kernel:
Load package for parallel kernels:
Load package for master kernel:
In[1]:=
Click for copyable input
Load package for parallel kernels:
In[2]:=
Click for copyable input
ParallelNeeds uses ParallelEvaluate to run Needs on all parallel kernels:
An explicit ParallelEvaluate does the same:
Only the effect of ParallelNeeds is remembered for new kernels:
Use ParallelNeeds to set up a package on all parallel kernels:
Use DistributeDefinitions to set up your own definitions:
It is generally necessary to load any package also on the master kernel:
Symbols can now be used on the master and parallel kernels:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team
Format:   HTML  |  CDF