Open scottstanie opened 5 years ago
We'll have to add locks around the calls to hdf5.
I seem to be getting segfaults from JLD.jl when saving some computation results from within a Threads.@threads for
loop. Could it be related to this? Tested on 1.6.3 and 1.7.0.
When I use jld write in a loop, it seems to ruin the ability of
Threads.@threads
to distribute work. This might be a Julia 1.3 bug, but reporting it here first:At first, the threading works (here I have set JULIA_NUM_THREADS=56 on a big machine):
Now the weirder part:
So not only does the JLD not save in parallel, it makes the former simple example from the blog post https://julialang.org/blog/2019/07/multithreading fail