| 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: , |
|