diff --git a/include/plsm/detail/KokkosExtension.h b/include/plsm/detail/KokkosExtension.h index b041436..70ecb56 100644 --- a/include/plsm/detail/KokkosExtension.h +++ b/include/plsm/detail/KokkosExtension.h @@ -12,10 +12,10 @@ namespace Kokkos * @brief Provide begin/end pairs so that Kokkos::Array can be used in a * range-based for loop */ -template +template KOKKOS_INLINE_FUNCTION auto -begin(Array& a) noexcept +begin(Array& a) noexcept { return a.data(); } @@ -24,10 +24,10 @@ begin(Array& a) noexcept * @brief Provide begin/end pairs so that Kokkos::Array can be used in a * range-based for loop */ -template +template KOKKOS_INLINE_FUNCTION auto -end(Array& a) noexcept +end(Array& a) noexcept { return a.data() + static_cast(N); } @@ -36,10 +36,10 @@ end(Array& a) noexcept * @brief Provide begin/end pairs so that Kokkos::Array can be used in a * range-based for loop */ -template +template KOKKOS_INLINE_FUNCTION auto -begin(const Array& a) noexcept +begin(const Array& a) noexcept { return a.data(); } @@ -48,10 +48,10 @@ begin(const Array& a) noexcept * @brief Provide begin/end pairs so that Kokkos::Array can be used in a * range-based for loop */ -template +template KOKKOS_INLINE_FUNCTION auto -end(const Array& a) noexcept +end(const Array& a) noexcept { return a.data() + static_cast(N); }