[julia-users] Re: @time tic() toc()
The parallel calls are asynchronous so they will return right away? On Saturday, December 12, 2015 at 4:36:14 PM UTC+1, digxx wrote: > > Why @sync? > It's not mandatory or is it related to getting @time work? And why? >
[julia-users] Re: @time tic() toc()
Why @sync? It's not mandatory or is it related to getting @time work? And why?
[julia-users] Re: @time tic() toc()
Try @time @sync @parallel for i=1:10 ... end On Thursday, December 10, 2015 at 11:55:58 PM UTC+1, digxx wrote: > > Apparently for a parallel loop the @time macro or tic() toc() do not > measure the time?! > I directly get a result for the time but know that the calculation is > still ongoing. > Is the usage like this: > @time @parallel for i=1:10 > > > end >