4 ms·
How easy would it be to use Julia on a problem that would take advantage of the 16 hyperthreaded cores on my computer? Does it use threads, async/await mechanis
by ralphc 6y ago
How easy would it be to use Julia on a problem that would take advantage of the 16 hyperthreaded cores on my computer? Does it use threads, async/await mechanism, something else? Is it intuitive to use?
- leephillips 6y agoAs easy as starting up the interpreter with -t auto and then using, e.g., pmap instead of map.
- ddragon 6y agoJulia's main parallel primitive (@spawnat) [1] is heavily inspired in Go, in which you just run anything in a managed lightweight thread, using a channel to pass data and sync with a fetch. That API is quite recent though (Julia 1.3), so there is still a lot of work going on both on the language side and on the library side to give higher level mechanisms, such as [2]. [1] https://julialang.org/blog/2019/07/multithreading/ https://julialang.org/blog/2019/07/multithreading/ [2] https://juliafolds.github.io/data-parallelism/tutorials/quick-introduction/ https://juliafolds.github.io/data-parallelism/tutorials/quic...