Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Parallel Processing' topicStudent Support Forum > General > Archives > "Parallel Processing"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
qm2008q
11/25/11 07:24am

Assuming the For function is not parallelized when using the Parallelize function, then you could wrap each For loop in a function, and distribute their definitions.

So originally you have

ParallelMap[For[x1...];For[x2...];,expr]

which then becomes

f1:=For[x1...];
f2:=For[x2...];
DistributeDefinitions[f1,f2];
ParallelMap[f1;f2;,expr]

Hope this helps,
Joe

URL: ,

Subject (listing for 'Parallel Processing')
Author Date Posted
Parallel Processing David 10/02/11 6:07pm
Re: Parallel Processing qm2008q 11/25/11 07:24am
< Previous CommentHelp | Reply To Comment | Reply To Topic