-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Just noticed that ThreadSafeVarInfo makes heavy use of threadid:
DynamicPPL.jl/src/threadsafe.jl
Lines 22 to 29 in 715526f
| function acclogp!!(vi::ThreadSafeVarInfo, logp) | |
| vi.logps[Threads.threadid()] += logp | |
| return vi | |
| end | |
| function acclogp!!(vi::ThreadSafeVarInfoWithRef, logp) | |
| vi.logps[Threads.threadid()][] += logp | |
| return vi | |
| end |
That should be changed since it is broken in Julia >= 1.8 if users don't use @threads :static for ... (see e.g. https://discourse.julialang.org/t/behavior-of-threads-threads-for-loop/76042).
Metadata
Metadata
Assignees
Labels
No labels