From 9279f6b385cd5473c4366f243987b0e2ea8a05d9 Mon Sep 17 00:00:00 2001 From: Stan Moore Date: Thu, 13 Apr 2023 12:33:31 -0600 Subject: [PATCH 1/2] Fix bug in Kokkos version of PACE --- src/KOKKOS/pair_pace_kokkos.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/KOKKOS/pair_pace_kokkos.cpp b/src/KOKKOS/pair_pace_kokkos.cpp index 6f1e3feaf8..55d0081110 100644 --- a/src/KOKKOS/pair_pace_kokkos.cpp +++ b/src/KOKKOS/pair_pace_kokkos.cpp @@ -584,6 +584,7 @@ void PairPACEKokkos::compute(int eflag_in, int vflag_in) Kokkos::deep_copy(A, 0.0); Kokkos::deep_copy(A_rank1, 0.0); Kokkos::deep_copy(rhos, 0.0); + Kokkos::deep_copy(rho_core, 0.0); EV_FLOAT ev_tmp; From 24365d735323a860c3c6adfa2ff4cc8b5f95707f Mon Sep 17 00:00:00 2001 From: Stan Moore Date: Thu, 13 Apr 2023 12:33:44 -0600 Subject: [PATCH 2/2] Allow UVM to compile --- src/KOKKOS/pair_pace_extrapolation_kokkos.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/KOKKOS/pair_pace_extrapolation_kokkos.h b/src/KOKKOS/pair_pace_extrapolation_kokkos.h index a65841f8f6..4c12e6618a 100644 --- a/src/KOKKOS/pair_pace_extrapolation_kokkos.h +++ b/src/KOKKOS/pair_pace_extrapolation_kokkos.h @@ -219,7 +219,7 @@ class PairPACEExtrapolationKokkos : public PairPACEExtrapolation { typedef Kokkos::View t_ace_4c; typedef Kokkos::View t_ace_4c3; - typedef Kokkos::View::HostMirror th_ace_1d; + typedef typename Kokkos::View::HostMirror th_ace_1d; t_ace_3d A_rank1; t_ace_4c A;