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

Fix compile error with latest Kokkos develop branch #3739

Merged
merged 1 commit into from
Apr 19, 2023

Conversation

stanmoore1
Copy link
Contributor

Summary

Fix compile error with latest Kokkos lib, reported by Nick Curtis (AMD), @arghdos

Related Issue(s)

#3670

Author(s)

Stan Moore (SNL)

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

@stanmoore1
Copy link
Contributor Author

stanmoore1 commented Apr 18, 2023

According to Christian, this may be an unintended change in Kokkos, see kokkos/kokkos#6066.

@stanmoore1 stanmoore1 marked this pull request as draft April 18, 2023 21:56
@stanmoore1
Copy link
Contributor Author

It sounds like this may not be fixed in Kokkos for a while (if ever).

@stanmoore1 stanmoore1 marked this pull request as ready for review April 19, 2023 15:03
@stanmoore1 stanmoore1 assigned akohlmey and unassigned stanmoore1 Apr 19, 2023
@akohlmey akohlmey added this to the Stable Release Summer 2023 milestone Apr 19, 2023
@akohlmey
Copy link
Member

It sounds like this may not be fixed in Kokkos for a while (if ever).

This change looks like a good change, regardless. If you can use a const reference it is always preferred over a non-const reference. This is one of the things that clang-tidy suggests, for example, if it sees an opportunity.

@akohlmey akohlmey merged commit 9aa8f1b into lammps:develop Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants