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

ParallelDo

ParallelDo[expr, {imax}]
evaluates expr in parallel imax times.
ParallelDo[expr, {i, imax}]
evaluates expr in parallel with the variable i successively taking on the values 1 through imax (in steps of 1).
ParallelDo[expr, {i, imin, imax}]
starts with i=imin.
ParallelDo[expr, {i, imin, imax, di}]
uses steps di.
ParallelDo[expr, {i, {i1, i2, ...}}]
uses the successive values i1, i2, ....
ParallelDo[expr, {i, imin, imax}, {j, jmin, jmax}, ...]
evaluates expr looping in parallel over different values of j, etc. for each i.
  • ParallelDo is a parallel version of Do which automatically distributes different evaluations of expr among different kernels and processors.
  • If side effects involve unshared variables, they will in general work differently than in Do.
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team