Skip to content

Commit

Permalink
Merge pull request #1070 from ndellingwood/fix-missing-brace
Browse files Browse the repository at this point in the history
KokkosKernels_ExecSpaceUtils: kk_is_a64fx_mem_space add brace
  • Loading branch information
ndellingwood authored Jul 29, 2021
2 parents 753da60 + 2280a7b commit 760115c
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/common/KokkosKernels_ExecSpaceUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,18 +172,19 @@ template <>
constexpr KOKKOS_INLINE_FUNCTION bool
kk_is_a64fx_mem_space<Kokkos::HostSpace>() {
return true;
}
#endif // a64fx architectures

// Host function to determine free and total device memory.
// Will throw if execution space doesn't support this.
template <typename MemorySpace>
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 <typename MemorySpace>
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 <>
Expand Down

0 comments on commit 760115c

Please sign in to comment.