Closed ziyiyin97 closed 2 years ago
Can you try not to use -p
and use addporcs
disabling lazy comm setup
Add
using Distributed
addprocs(2; lazy=false)
solves the problem indeed. But ... why?
In this not actually erroring, yu get your result properly. It is just telling you, and the log is quite explicit, that the communication between two workers hasn't been initialized. So it complains about it then initializes it and continue doing what it's supposed to. I also mentioned it in the julia issue you commented on as well so please avoid duplicating issues when on already provided an answer.
But can I still do thread pinning after addprocs(2; lazy=true)
?
Yes, check the FWI tutorial https://github.com/slimgroup/ConstrainedFWIExamples/blob/master/notebooks/01_constr_fwi_judi.ipynb
Thanks closing due to existing issue here https://github.com/JuliaLang/julia/issues/43627
MFE is below
I did
julia -p 2 -L ~/startup.jl
with the startup file asterminal log is
Note that the error doesn't occur when model size
n
is small, nor first generatedobs
by forward modelling and then dolsrtm_objective
.Any idea what causes the error?