Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Port enforce2d kokkos #940
This adds a port of enforce2d to Kokkos. It significantly speeds up calculations if this fix is the only non-kokkos-enabled fix so it will probably be helpful for people.
It would help if a Kokkos-expert (Stan) looks at the implementation in post_force. The calls to enforce2d of other fixes cannot assume the other fixes are Kokkos-enabled, so I figured it should be run after the parallel execution of this fix, and I also assumed it needs to sync before doing so. If there are any function calls that are not necessary, please remove them.
Stefan Paquay and Matthew Peterson @ Brandeis University
Just adds features, so yes.
I just copy pasted enforce2d and aped how it works in fix_nve_kokkos
Post Submission Checklist
Please check the fields below as they are completed