From: Luis on
Dear all,

Can anyone be so kind to explain me why the following code results in memory leakage!

------
matlabpool open local 2
for k=1:10, spmd; end; end
------
(Finite element code on Matlab 2009a win x64)

Can I avoid this?

Thank you very much,
Luís Mendes
From: Narfi on
This is clearly a bug! Sorry for the inconvenience and thank you for letting us know.

This appers to significantly affect spmd blocks in scripts and at the command line. The only work-around that I can suggest at this point in time is to put your spmd blocks in functions as they appear not to be nearly as significantly affected.

Best,

Narfi
"Luis " <luismm(a)removethis.lnec.pt> wrote in message <hj7a6q$f6e$1(a)fred.mathworks.com>...
> Dear all,
>
> Can anyone be so kind to explain me why the following code results in memory leakage!
>
> ------
> matlabpool open local 2
> for k=1:10, spmd; end; end
> ------
> (Finite element code on Matlab 2009a win x64)
>
> Can I avoid this?
>
> Thank you very much,
> Luís Mendes