-
Notifications
You must be signed in to change notification settings - Fork 146
Cherry-picked #5775 to resolve the single-precision version error. #6418
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
Conversation
* use psi_initializer * fix compile * same results of random init * make atomic initialized results right * finish refactor * fix compile * fix compile * fix UTs * update results * update results * update GPU results * update * refactor pw * change 108_PW_RE_PINT_RKS results * update results * remove openmp for random generate * update * remove psi_initializer in Doc * remove omp2 * fix compile
It seems to me that the PR does not belong to LTS version |
…est/test_hsolver_sdft.cpp file cherry-pick deepmodeling#5775 has resolved the issue of single-precision version errors Tests were conducted locally on the previous and subsequent versions of cherry-pick, and it was found that the failed samples of both were almost the same. It was concluded that the problem was not caused by cherry-pick
Thanks for the PR. |
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.
LGTM
I have checked the tests with this PR carefully, I think this refactoring would not include high risk into LTS branch, the main change of this refactoring is dropping the old wavefunction initialization code. In my opinion, it is okay to accept this PR. |
OK @dyzheng if you consider this is OK, you can go ahead and merge the PR |
Adding the option "precision = single" to the INPUT file caused the simulation to fail.

The single-precision simulation crash bug does not exist on the develop branch.
A specific commit was identified where the single-precision bug exists in versions prior to this commit but is absent in versions after it. Therefore, this commit was cherry-picked onto the LTS branch.
Resolved two conflicts arising from two cherry-picks.
* source/module_hsolver/test/test_hsolver_sdft.cpp
* source/module_psi/psi_initializer_nao.cpp
After the cherry-pick, the program runs normally with precision = single.


The results of the same test case in single vs. double precision are compared below.( Double-precision is presented first)