Update Kokkos library in LAMMPS to v4.1.0#3670
Conversation
|
Note: here is a list of minimum compiler versions for Kokkos 4.0: kokkos/kokkos#5285 (comment) |
|
Kokkos regression tests passed. Need to check performance. |
rbberger
left a comment
There was a problem hiding this comment.
The CMake changes look fine to me.
|
Any progress here? Fedora Rawhide has updated kokkos to 4.0 and now the lammps builds are failing. A new release would be very helpful. Thanks. |
|
@opoplawski I think #3701 will address the issue you are seeing, can you confirm? |
|
@akohlmey it looks like the run test failure is unrelated to this PR? |
|
Since this PR requires c++17, we are planning to wait until after the next stable release to merge this, to maximize backwards compatibility. Deprecated code was removed in #3701, which should allow LAMMPS to be compatible with an external Kokkos v4.0. |
That is correct. It is a ripple from the removal of installing the python module from "make install". The run and regression tests depend on it, and the replacement has a race condition when running "make install-python" concurrently from the same source checkout. It took me a while to narrow down where the exact issue is since there were multiple problems that needed changes in multiple places. |
|
FWIW Stan, I still see a bunch of hash map errors: when building w/ your branch + Kokkos develop. I think it's because there's still an implicit constructor in the dual_hash_type: that isn't deleted (and therefore defaults to This might be something specific to develop however. |
|
@stanmoore1 created stanmoore1#16 with some cleanups and a HIP bugfix, which would merge into this PR branch. |
Cleanups and HIP bugfix
|
Can confirm, this builds w/ the latest kokkos develop on MI-2XX |
|
@akohlmey would like to get this merged ASAP now that the stable is out. |
Yup. I am working through the back log right now. |

Summary
Update Kokkos library in LAMMPS to v4.1.0
NOTE: Requires C++17
Related Issue(s)
None
Author(s)
Stan Moore (SNL), Kokkos developers
Licensing
By submitting this pull request, I agree, that my contribution will be included in LAMMPS and redistributed under either the GNU General Public License version 2 (GPL v2) or the GNU Lesser General Public License version 2.1 (LGPL v2.1).
Backward Compatibility
Yes