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

[Feature Request]: Adjust NCORE if subspacematrix error occurs #363

Open
Andrew-S-Rosen opened this issue Feb 11, 2025 · 0 comments
Open

Comments

@Andrew-S-Rosen
Copy link
Member

Andrew-S-Rosen commented Feb 11, 2025

Problem

If the subspacematrix error occurs in VASP, it can be because the user is studying a small system and using too many cores. There are many examples of this throughout the VASP Forum, such as here. The solution in this scenario is to increase NCORE that way there are more CPUs working on each band (and unset NPAR if present in the INCAR file to ensure the NCORE change is registered). The other solution is to drop the number of cores, but this is not something that Custodian has control over.

Proposed Solution

Add a section to the codeblock here that:

  • Doubles NCORE
actions.append({"dict": "INCAR", "action": {"_set": {"NCORE": vi["INCAR"].get("NCORE", 1) * 2}}})
  • Removes NPAR if it is present in the INCAR
if "NPAR" in vi["INCAR"]:
    actions.append({"dict": "INCAR", "action": {"_unset": {"NPAR": 0}}})

Then add a test.

Alternatives

No response

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

1 participant