Minimize MDCS Data Transfer
1 view (last 30 days)
I am using MDCS on a Linux cluster. I repeatedly for a parfor loop in the following spirit:
x(i) = a(i,:)*b;
Here the vector b is used on all cores, every time I call parfor. However, I believe each time I call parfor, b is being sent to all the cores, which slows down the code. How can I repeatedly use parfor with constant data such that I do not have to keep resending the same data each time I call a parfor loop? Thank you.