Skip to content
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

LocalPreferences.toml got reset #16

Open
Technici4n opened this issue Oct 25, 2024 · 1 comment
Open

LocalPreferences.toml got reset #16

Technici4n opened this issue Oct 25, 2024 · 1 comment

Comments

@Technici4n
Copy link
Collaborator

Technici4n commented Oct 25, 2024

At some point my local preferences got reset from

[DFTK]
DFTK_threads = 1

[HDF5]
libhdf5 = "/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5.so"
libhdf5_hl = "/usr/lib/x86_64-linux-gnu/hdf5/openmpi/libhdf5_hl.so"

[MPIPreferences]
__clear__ = ["preloads_env_switch"]
_format = "1.0"
abi = "OpenMPI"
binary = "system"
cclibs = []
libmpi = "libmpi"
mpiexec = "mpiexec"
preloads = []

to just

[DFTK]
DFTK_threads = 1

I am not sure what exactly happened. I might have killed a julia process that was precompiling something, but that might not be related.
I suspect at least that AiidaDFTK modifies the local preferences during precompilation. (EDIT: This is indeed the case when precompiling with MPI. That is already a bad idea because it tends to deadlock, but it can happen.)

It's worth investigating.

@mfherbst
Copy link
Member

The fact that you have DFTK_threads = 1 is weird. Should not happen unless you start Julia with more threads than you want to use in DFTK. Not sure this is such a good idea. In fact this could potentially trigger a rewrite of the properties file. Can you not do that (i.e. disable_threading without specifying DFTK threads explicitly and with using exactly one Julia thread) and see if the problem persists.

But yes we should investigate this and figure out what we can do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants