Nathan, the execution of these two functions gives essentially the same timings, no matter of many processes I have added with addprocs() Very surprising to me... Of course I prefer the speeded-up version :)
Best, Ferran. On Thursday, July 21, 2016 at 6:40:14 PM UTC+2, Nathan Smith wrote: > > Try comparing these two function: > > function serial_example() > A = [[1.0 1.001];[1.002 1.003] > z = A > for i in 1:1000000000 > z *= A > end > return z > end > > function parallel_example() > A = [[1.0 1.001]; [1.002 1.003]] > z = @parallel (*) for i in 1:1000000000 > A > end > return z > end > >