I'm new to parallel processing, here's my problem:
I have a big data variable that cannot fit twice in RAM. Therefore, this won't work:
for ind=1:4
data{ind}=load_data(ind);
end
parfor ind=1:4
process_longtime(data{ind});
end
As there's a memory overflow. My hypothesis is, that Matlab tries to copy the whole data
variable to every worker.
If this is correct - is there a way to distribute data
into 4 (or n
) parts to the workers, so they do not need access to the whole data
variable?