parfor giving : Maximum variable size allowed by the program is exceeded.
Show older comments
Dear All,
I'm getting an error message while using parfor which has completely stumped me. I'm doing the following numerical integration:
for i = 1:N
I = quadgk(@(u)Integrand1(u,x(i), etc, etc ) ,0,200,'RelTol',1e-6,'AbsTol',1e-6);
f(1,i) = (1/pi) * I;
end
for some Integrand which is defined and f & x are preallocated. This runs fine but takes a long time so would be efficient to run in parallel. When I run the loop with 'parfor' I get the following error:
Maximum variable size allowed by the program is exceeded.
Error in run (line 63)
evalin('caller', [script ';']);
Caused by:
Maximum variable size allowed by the program is exceeded.
I guess this error is due to my stack being filled up but that shouldn't happen here given that it runs in serial ok.
Answers (1)
Paul
on 20 Dec 2013
0 votes
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!