From a001a5ceb0c446e10e5ba1cb8fd12785c44b5888 Mon Sep 17 00:00:00 2001 From: Stan Moore Date: Thu, 9 Mar 2017 12:20:49 -0700 Subject: [PATCH 1/2] Fixing memory overflow issue in comm_kokkos --- src/KOKKOS/comm_kokkos.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/KOKKOS/comm_kokkos.cpp b/src/KOKKOS/comm_kokkos.cpp index 5dc1e5fa4a..f38a6c21c9 100644 --- a/src/KOKKOS/comm_kokkos.cpp +++ b/src/KOKKOS/comm_kokkos.cpp @@ -93,6 +93,9 @@ CommKokkos::~CommKokkos() void CommKokkos::init() { + maxsend = BUFMIN; + maxrecv = BUFMIN; + grow_send_kokkos(maxsend+bufextra,0,Host); grow_recv_kokkos(maxrecv,Host); From b28b84d444a4f55a6a9209060a26ab3b1df30d97 Mon Sep 17 00:00:00 2001 From: Stan Moore Date: Thu, 9 Mar 2017 14:00:27 -0700 Subject: [PATCH 2/2] Fix half from full nlist issue with Kokkos --- src/neighbor.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/neighbor.cpp b/src/neighbor.cpp index b0e55a6c1a..8da6c1b9d2 100644 --- a/src/neighbor.cpp +++ b/src/neighbor.cpp @@ -1129,6 +1129,11 @@ void Neighbor::morph_halffull() if (!irq->half) continue; + // Kokkos doesn't yet support half from full + + if (irq->kokkos_host) continue; + if (irq->kokkos_device) continue; + // these lists are created other ways, no need for halffull // do want to process skip lists @@ -1154,8 +1159,6 @@ void Neighbor::morph_halffull() // this includes custom cutoff set by requestor // no need to check respaouter b/c it stores same pairs // no need to check dnum b/c only set for history - // NOTE: need check for 2 Kokkos flags? - // Kokkos doesn't yet support half from full? if (irq->ghost != jrq->ghost) continue; if (irq->size != jrq->size) continue;