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

Enable force calculations on GPU runs #1031

Merged
merged 1 commit into from
Dec 5, 2024
Merged

Conversation

abussy
Copy link
Collaborator

@abussy abussy commented Dec 4, 2024

Unfortunately, when attempting to calculate forces with DFTK's GPU architecture, the program simply crashes. This PR fixes this issue in the simplest way possible: the offending operations are executed on the CPU, and the data is moved back and forth. While this may not be optimal, it makes the application usable. Future profiling/benchmarking will reveal whether optimization is necessary.

This was thoroughly tested, including in combination with GeometryOptimization. Added a couple of regression tests for forces on GPUs as well.

@mfherbst
Copy link
Member

mfherbst commented Dec 5, 2024

Not awesome, but ok, let's do it like this for now.

@mfherbst mfherbst merged commit ed7ae28 into JuliaMolSim:master Dec 5, 2024
6 of 8 checks passed
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