Skip to content

Commit

Permalink
Merge pull request #3654 from anagainaru/gpu-bug-guard
Browse files Browse the repository at this point in the history
Bug fix for Kokkos applications without GPU backend
  • Loading branch information
anagainaru authored Jun 6, 2023
2 parents c6b1cca + c041ed7 commit 643e3c7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bindings/CXX11/adios2/cxx11/KokkosView.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace adios2
namespace detail
{

#ifdef ADIOS2_HAVE_GPU_SUPPORT
template <typename T>
struct memspace_kokkos_to_adios2
{
Expand All @@ -19,6 +20,13 @@ struct memspace_kokkos_to_adios2<Kokkos::HostSpace>
{
static constexpr adios2::MemorySpace value = adios2::MemorySpace::Host;
};
#else
template <typename T>
struct memspace_kokkos_to_adios2
{
static constexpr adios2::MemorySpace value = adios2::MemorySpace::Host;
};
#endif

} // namespace detail

Expand Down

0 comments on commit 643e3c7

Please sign in to comment.