Skip to content

Conversation

@mikovtun
Copy link
Contributor

@mikovtun mikovtun commented Nov 28, 2023

This PR adds device (CUDA) support for XC calculations with Unrestricted and Generalized Kohn-Sham references. LDA and GGA functionals are supported.

Copy link
Owner

@wavefunction91 wavefunction91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick once over - this looks like a good start. Definitely want to get UKS GGA + unification of the RKS/UKS drivers (e.g. the local_work bits). Will do a more thorough review once its more complete!

@wavefunction91 wavefunction91 changed the title Device LDA UKS Device UKS Implementation Nov 29, 2023
@wavefunction91 wavefunction91 changed the title Device UKS Implementation Device UKS/GKS Implementation May 8, 2024
@mikovtun
Copy link
Contributor Author

_5e6a6f4c-c911-4efb-91df-bee0a6b80c09

Copy link
Owner

@wavefunction91 wavefunction91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a screenshot / terminal output showing no performance degradation for Ubi DZ/PBE between current master and this PR + the misc minor changes noted, and this is g2g.

Sorry for the delay.


if (mtemp > dtolsq) {
const double inv_mnorm = rsqrt(mtemp);
mnorm = 1./inv_mnorm;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For future note, this is likely the culprit for #134.

@mikovtun
Copy link
Contributor Author

To demonstrate this PR doesn't degrade RKS performance, I present the timings (from standalone_driver) for Ubiquitin/DZ/PBE on a single A100 on Perlmutter. ( master here is 1a47c11 and UKS_device is 448bec8 )
Screen Shot 2024-07-30 at 1 12 24 PM

Copy link
Owner

@wavefunction91 wavefunction91 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wavefunction91 wavefunction91 merged commit 2e489d4 into wavefunction91:master Jul 30, 2024
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

Successfully merging this pull request may close these issues.

2 participants