I am using the following code to distribute an array to local workers on my machine:
A = ones(10000); spmdD = codistributed(A); end
However, as soon as the SPMD block starts execution, I find that the memory utilization of my client MATLAB process rises to several times the size of the matrix 'A', during which time data is distributed to the worker processes. Eventually, the memory utilization settles to reasonable values, i.e. the previously occupied memory is released. I would like MATLAB to use my client process' memory more efficiently.
Best Answer