Unverified Commit 643e3c75 authored by Ana Gainaru's avatar Ana Gainaru Committed by GitHub
Browse files

Merge pull request #3654 from anagainaru/gpu-bug-guard

Bug fix for Kokkos applications without GPU backend
parents c6b1cca0 c041ed71
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ namespace adios2
namespace detail
{

#ifdef ADIOS2_HAVE_GPU_SUPPORT
template <typename T>
struct memspace_kokkos_to_adios2
{
@@ -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