from what I understand, PARTR (resp. parts of what it will become) will be part of Julia 1.2. I’m keen to try it out, if possible, by my attempts at starting tasks within an @threads loop have failed, the tasks always seem to run on thread 1.
Does someone have a short PARTR example (assuming it’s indeed part of v1.2-rc1)?
Sure, I do set JULIA_NUM_THREADS, of course, and the @threads loop uses them - just the tasks I spawn in there all seem to run on thread one. By maybe I misunderstand how PARTR is supposed to work?
Ah, thanks, that clears thing up regarding @threads. So there’s some machinery for PARTR in v1.2, but not enough to use it yet? Or does one use it independently from @threads?
The machinery is mostly all in place, but for now @threads will still use the regular static scheduling.
We don’t know yet if there will be a different syntax to use depth-first scheduling.
For now then, there are pretty much no user-facing changes, which the exception as @jeff.bezanson said that a few more operations (IO and task switches) work inside @threads.
Maybe Jeff can give an update in case something changed since April.