Just put @sync in front of @parallel. The workers are not yet done with their
tasks before you run your test.
Please capture these hints by making pull requests to improve the parallel
documentation---you'll save future users the confusion you're suffering
(sorry), and other developers the
Thanks Tim.
Richard
On Wednesday, July 22, 2015 at 12:27:52 PM UTC+1, Tim Holy wrote:
Just put @sync in front of @parallel. The workers are not yet done with
their
tasks before you run your test.
Please capture these hints by making pull requests to improve the parallel
Running 0.4.0-dev+5933. I expected the print outs from this code to be the
same and to equal zero. What am I doing wrong? Thanks in advance.
addprocs(4);
@everywhere function test(state)
return state.^2.0
end
const n = 1;
const m = 1;
states = randn(n);
store = zeros(n,m);
for i =