ProgressMeter and Threads.@Threads

Has there been any progress on this? I have tried using it in a manner similar the documentation (but for @threads) and couldn’t get this to work. I am currently using julia-1.2.0. A plain

@showprogress 1 "Computing..." Threads.@threads for i in 1:100 
      #do something      
end

doesn’t seem to work but

@showprogress 1 "Computing..." @distributed () for i in 1:100 
      #do something      
end

does.

1 Like

It’s in progress :wink:

4 Likes

awesome!

FYI, an alternative is a combination of Transducers.withprogress, reduce, and one of the progress monitor packages. I implemented a simple monitor ConsoleProgressMonitor.jl wrapping ProgressMeter.jl.

3 Likes

Thank you, this works great too!

Thanks to some great work :fireworks: by @ianshmean, ProgressMeter 1.2 has just been released and supports threading. See the documentation section here.

3 Likes

Thank you! This is awesome!