Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: spmd and parfor with large broadcast variables
Posted:
Dec 31, 2012 3:11 AM
|
|
Hello Edric, I'm having the same problem as the person above and would love to use your code. Could you please clarify your first example
> to minimise the data transfer. If 'loadBigData' can run on the labs > (i.e. has access to the data files), you could do: > > bigdWrapper = WorkerObjWrapper(@loadBigData, {}); > r = zeros(100,1); > parfor ii = 1:100, > r(ii) = doSomething(ii,bigdWrapper.Value); > end
from the second?
- > otherwise create bigdWrapper like so: > > bigdWrapper = WorkerObjWrapper(loadBigData());
What would the entire code of the second example look like? Also are there any improvements you could make on the existing code? I will work on using it and possibly provide feedback.
Cheers!
|
|
|
|