From c2c22fc2ede651fe5b9da1f7c45a4c05ab543951 Mon Sep 17 00:00:00 2001 From: Dan Ibanez Date: Mon, 6 Mar 2017 10:57:19 -0700 Subject: [PATCH] add missing KOKKOS_INLINE_FUNCTION to fix_shardlow --- src/KOKKOS/Install.sh | 4 ++-- src/KOKKOS/fix_shardlow_kokkos.cpp | 1 + src/KOKKOS/fix_shardlow_kokkos.h | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/KOKKOS/Install.sh b/src/KOKKOS/Install.sh index 68bd8d2ea8..5707a4e53c 100644 --- a/src/KOKKOS/Install.sh +++ b/src/KOKKOS/Install.sh @@ -28,8 +28,8 @@ action () { # force rebuild of files with LMP_KOKKOS switch -touch ../accelerator_kokkos.h -touch ../memory.h +#touch ../accelerator_kokkos.h +#touch ../memory.h # list of files with optional dependcies diff --git a/src/KOKKOS/fix_shardlow_kokkos.cpp b/src/KOKKOS/fix_shardlow_kokkos.cpp index 996f37257d..0dfbce5033 100644 --- a/src/KOKKOS/fix_shardlow_kokkos.cpp +++ b/src/KOKKOS/fix_shardlow_kokkos.cpp @@ -433,6 +433,7 @@ void FixShardlowKokkos::ssa_update_dpd( ------------------------------------------------------------------------- */ template template +KOKKOS_INLINE_FUNCTION void FixShardlowKokkos::ssa_update_dpde( int start_ii, int count, int id ) diff --git a/src/KOKKOS/fix_shardlow_kokkos.h b/src/KOKKOS/fix_shardlow_kokkos.h index c4711f5b8b..4dc47709e1 100644 --- a/src/KOKKOS/fix_shardlow_kokkos.h +++ b/src/KOKKOS/fix_shardlow_kokkos.h @@ -124,6 +124,7 @@ class FixShardlowKokkos : public FixShardlow { // template // void ssa_update_dpd(int, int); // Constant Temperature template + KOKKOS_INLINE_FUNCTION void ssa_update_dpde(int, int, int); // Constant Energy };