Update Kokkos library in LAMMPS to v4.6.0
This commit is contained in:
@ -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!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user