Open antoine-levitt opened 1 month ago
I remember being able to do launch it in a quick and dirty way, but I am not so sure anymore…
On a local branch I enabled switching off the three parts where Threads is used.
It works most of the times but I just had this happen once. Switching off you mean this? https://github.com/JuliaMolSim/DFTK.jl/pull/972
Right now, for me it works none of the time on another stuff I am doing…
Yes, I was indeed looking at 972 and looks like a lot what I am using for parallel phonons.
(I think I gave up looking at how to do thread in thread because of the @timing
stuff.)
(I think I gave up looking at how to do thread in thread because of the @timing stuff.)
Yeah, should we just disable this by default?
I have never used the fact that it's enabled by default. I've always found this surprising.
I've had this happen when running DFTK from within threads.
I think this is because MPI is initialised twice. We should put the initialisation call around a semaphore or signal MPI in the way we initialise it that it could be called from multiple threads (I think it has a flag to do that).
I've had this happen when running DFTK from within threads. I'm not too clear on what we should do here.