-
Notifications
You must be signed in to change notification settings - Fork 139
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
add elpa native to solver generate eigen #4969
Conversation
Please update docs to parameter |
This part of docs (docs/advanced/acceleration/cuda.md) also needs to be updated. Please update it. Thank you! |
Made some updates, please review. |
In the |
genelpa is a generalized eigenvalue solver based on elpa developed by Shen Yu and Xiaohui. It is the solver that Abacus has always used. The newly added elpa directly calls elpa's native interface. |
Well, why did we develop our own distributed generalized eigenvalue solver? I think one of the main reason is that when genelpa was developed, elpa did not support generalized eigenvalue solving yet. The rest story you can ask these 2 guys when next mianji offline. |
It seems new features are included. I will accept the PR. More discussions are welcome. |
Maybe the information that elpa should be installed with gpu support should also be updated to the "Easy Installation" part of the document, and place it in where ELPA package is first metioned, or place it in the "USE_ELPA" parameter explanation. In "Advanced Installation Options", "Build with CUDA support" may also need to be updated with this info. The document now is a bit difficult to locate this infomation and may cause confusion for users when they find that they fail to build the CUDA version (because of this elpa setting). |
Or maybe adding an "USE_GPU_ELPA" option is better? |
elpa_setup(handle); | ||
elpa_set(handle, "solver", ELPA_SOLVER_1STAGE, &success); | ||
|
||
#ifdef __CUDA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it is possible to use ELPA_WITH_NVIDIA_GPU_VERSION
from elpa/elpa_configured_options.h to determine if elpa is installed with GPU support.
@goodchong Hello, I'm compiling elpa the way you did, the gpu is nvidia 30 series, but I'm getting this error on |
dear user, maybe you should add a SCALAPACK_LDFLAGS="-lstdc++" to your configure parameters. for example : |
i think this is apt install libs. If you are using oneAPI to compile, you can check the official documentation of ELPA. The documentation provides a set of very complex configuration options. Alternatively, you can refer to the example in one of my previous replies. |
What's changed?
usage:
edit INPUT file to:
compile the code:
known issue
some gpu log looks like:
Any changes of core modules? (ignore if not applicable)