I think I know where the problem is. My code is something like this- size=5000000; if ~isdefined(:PARALLEL) a = fill(1.0,size); b = fill(2.0,size); c = fill(0.0,size); else a = dfill(1.0,size); b = dfill(2.0,size); c = dfill(0.0,size); end
Now, when I try to access the arrays, there is lot of overhead. How can this be fixed ? ᐧ Regards, Kapil Agarwal On Sat, Nov 1, 2014 at 1:52 PM, Stefan Karpinski <ste...@karpinski.org> wrote: > On Sat, Nov 1, 2014 at 1:45 PM, Kapil <kapil6...@gmail.com> wrote: > >> global size; >> global times; >> > > You don't need these lines – these are global by default since they are > never introduced as locals. >