ECP-copa / CabanaMD

Molecular dynamics proxy application based on Cabana
Other
19 stars 14 forks source link

Update NNP kernels #46

Closed streeve closed 4 years ago

streeve commented 4 years ago

First, this removes any dependency of NNP kernels on CabanaMD specific types (System), instead passing Cabana types (slices and neighbor lists)

It also aligns a few setup functions with the main n2p2 code (where possible).

Finally, arrays are converted to Kokkos::Views for more flexibility, with create_mirror_view_and_copy to reduce copying.

One downside is that while the number of symmetry functions is now dynamic within the NNP code, a compile time max number is needed for the AoSoAs.

This is one more piece towards #37