From b6be86264fea73c03aab3e2c78a25b2e44dd7440 Mon Sep 17 00:00:00 2001
From: stamoor <stamoor@f3b2605a-c512-4ea7-a41b-209d697bcdaa>
Date: Wed, 10 Feb 2016 22:50:51 +0000
Subject: [PATCH] Fixing Kokkos bug

git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@14584 f3b2605a-c512-4ea7-a41b-209d697bcdaa
---
 src/KOKKOS/atom_vec_full_kokkos.cpp | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/KOKKOS/atom_vec_full_kokkos.cpp b/src/KOKKOS/atom_vec_full_kokkos.cpp
index 10043d5dd0..d41a88bd88 100644
--- a/src/KOKKOS/atom_vec_full_kokkos.cpp
+++ b/src/KOKKOS/atom_vec_full_kokkos.cpp
@@ -764,8 +764,11 @@ struct AtomVecFullKokkos_PackBorder {
   union ubuf {
     double d;
     int64_t i;
+    KOKKOS_INLINE_FUNCTION
     ubuf(double arg) : d(arg) {}
+    KOKKOS_INLINE_FUNCTION
     ubuf(int64_t arg) : i(arg) {}
+    KOKKOS_INLINE_FUNCTION
     ubuf(int arg) : i(arg) {}
   };
 
@@ -1030,8 +1033,11 @@ struct AtomVecFullKokkos_UnpackBorder {
   union ubuf {
     double d;
     int64_t i;
+    KOKKOS_INLINE_FUNCTION
     ubuf(double arg) : d(arg) {}
+    KOKKOS_INLINE_FUNCTION
     ubuf(int64_t arg) : i(arg) {}
+    KOKKOS_INLINE_FUNCTION
     ubuf(int arg) : i(arg) {}
   };
 
@@ -1177,8 +1183,11 @@ struct AtomVecFullKokkos_PackExchangeFunctor {
   union ubuf {
     double d;
     int64_t i;
+    KOKKOS_INLINE_FUNCTION
     ubuf(double arg) : d(arg) {}
+    KOKKOS_INLINE_FUNCTION
     ubuf(int64_t arg) : i(arg) {}
+    KOKKOS_INLINE_FUNCTION
     ubuf(int arg) : i(arg) {}
   };
 
@@ -1527,8 +1536,11 @@ struct AtomVecFullKokkos_UnpackExchangeFunctor {
   union ubuf {
     double d;
     int64_t i;
+    KOKKOS_INLINE_FUNCTION
     ubuf(double arg) : d(arg) {}
+    KOKKOS_INLINE_FUNCTION
     ubuf(int64_t arg) : i(arg) {}
+    KOKKOS_INLINE_FUNCTION
     ubuf(int arg) : i(arg) {}
   };
 
-- 
GitLab