Update Kokkos library in LAMMPS to v4.6.0

This commit is contained in:
Stan Moore
2025-03-28 15:29:14 -06:00
parent 48893236ec
commit b7b9a4a599
384 changed files with 13243 additions and 9477 deletions

View File

@ -37,7 +37,7 @@
template <int V>
struct TestFunctor {
double values[V];
double values[V] = {};
Kokkos::View<double*> a;
int K;
TestFunctor(Kokkos::View<double*> a_, int K_) : a(a_), K(K_) {}
@ -50,7 +50,7 @@ struct TestFunctor {
template <int V>
struct TestRFunctor {
double values[V];
double values[V] = {};
Kokkos::View<double*> a;
int K;
TestRFunctor(Kokkos::View<double*> a_, int K_) : a(a_), K(K_) {}
@ -247,12 +247,15 @@ int main(int argc, char* argv[]) {
// anything that doesn't start with --
if (arg.size() < 2 ||
(arg.size() >= 2 && arg[0] != '-' && arg[1] != '-')) {
// signing off that arg.data() is null terminated
// NOLINTBEGIN(bugprone-suspicious-stringview-data-usage)
if (i == 1)
N = atoi(arg.data());
else if (i == 2)
M = atoi(arg.data());
else if (i == 3)
K = atoi(arg.data());
// NOLINTEND(bugprone-suspicious-stringview-data-usage)
else {
Kokkos::abort("unexpected argument!");
}