From 2280a7ba7db099dc880f3f4a12011f2d069ed45a Mon Sep 17 00:00:00 2001 From: Nathan Ellingwood Date: Thu, 29 Jul 2021 10:16:45 -0600 Subject: [PATCH] KokkosKernels_ExecSpaceUtils: kk_is_a64fx_mem_space add brace Fix compilation issues on ARM architectures Cleanup indentation --- src/common/KokkosKernels_ExecSpaceUtils.hpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/common/KokkosKernels_ExecSpaceUtils.hpp b/src/common/KokkosKernels_ExecSpaceUtils.hpp index 8ee543913d..9f66c4d44a 100644 --- a/src/common/KokkosKernels_ExecSpaceUtils.hpp +++ b/src/common/KokkosKernels_ExecSpaceUtils.hpp @@ -172,18 +172,19 @@ template <> constexpr KOKKOS_INLINE_FUNCTION bool kk_is_a64fx_mem_space() { return true; +} #endif // a64fx architectures - // Host function to determine free and total device memory. - // Will throw if execution space doesn't support this. - template - inline void kk_get_free_total_memory( - size_t& /* free_mem */, size_t & /* total_mem */) { - std::ostringstream oss; - oss << "Error: memory space " << MemorySpace::name() - << " does not support querying free/total memory."; - throw std::runtime_error(oss.str()); - } +// Host function to determine free and total device memory. +// Will throw if execution space doesn't support this. +template +inline void kk_get_free_total_memory( + size_t& /* free_mem */, size_t & /* total_mem */) { + std::ostringstream oss; + oss << "Error: memory space " << MemorySpace::name() + << " does not support querying free/total memory."; + throw std::runtime_error(oss.str()); +} #ifdef KOKKOS_ENABLE_CUDA template <>