You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, I was not able to create a MRE. The error seems to only occur with more complex code (as is often the case with parallelization-related errors).
I believe it is caused by incorrect use of Threads.threadid() to index into an array here;
Hi, I have encountered an error, which I believe is caused by a bug in PRIMA.jl.
When I run multiple PRIMA.jl optimization runs in parallel, sometimes I get the following error;
Stacktrace
Unfortunately, I was not able to create a MRE. The error seems to only occur with more complex code (as is often the case with parallelization-related errors).
I believe it is caused by incorrect use of
Threads.threadid()
to index into an array here;PRIMA.jl/src/PRIMA.jl
Lines 818 to 826 in 8502a75
One should not use
Threads.threadid()
to index into an array, because the parallel tasks can migrate between threads at any moment in Julia. See the note at https://docs.julialang.org/en/v1/base/multi-threading/#Base.Threads.threadid.The text was updated successfully, but these errors were encountered: