pmap is probably useful here.
Just to make sure, you *have* read the manual section on parallel programming <http://docs.julialang.org/en/latest/manual/parallel-computing/>, right? There's a lot of good stuff there =) //T On Tuesday, June 17, 2014 1:30:36 PM UTC+2, Jon Norberg wrote: also this works but does not change values in b > > @parallel for i=1:20 b[i]=k[i].r*k[i].K end > > I tried making b=DArray{Float64,1} or b=dones(20,1) but still values in b > are not updated > > do I need to use spawn/fetch or pmap or something like this? > > Sorry, not fluent in parallel programming yet, but I am trying to make my > simple code scalable from start > > //J >
