-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Threading + MPI #974
Comments
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? #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 |
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 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.
The text was updated successfully, but these errors were encountered: