Skip to content

Commit

Permalink
Remove unused KOKKOS_FUNCTION annotations and backend headers
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Feb 22, 2025
1 parent 14405b8 commit 7666098
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions include/ddc/detail/dual_discretization.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@

#include <Kokkos_Core.hpp>

#if defined(KOKKOS_ENABLE_CUDA)
#include <cuda.h>
#endif
#if defined(KOKKOS_ENABLE_HIP)
#include <hip/hip_runtime.h>
#endif

namespace ddc::detail {

#if defined(KOKKOS_ENABLE_CUDA)
Expand Down Expand Up @@ -50,7 +43,7 @@ class DualDiscretization
}

template <class MemorySpace>
KOKKOS_FUNCTION typename DDim::template Impl<DDim, MemorySpace> const& get()
typename DDim::template Impl<DDim, MemorySpace> const& get()
{
if constexpr (std::is_same_v<MemorySpace, Kokkos::HostSpace>) {
return m_host;
Expand All @@ -65,12 +58,12 @@ class DualDiscretization
}
}

KOKKOS_FUNCTION DDimImplHost const& get_host()
DDimImplHost const& get_host()
{
return m_host;
}

KOKKOS_FUNCTION DDimImplDevice const& get_device()
DDimImplDevice const& get_device()
{
#if defined(KOKKOS_ENABLE_CUDA) || defined(KOKKOS_ENABLE_HIP)
return m_device_on_host;
Expand Down

0 comments on commit 7666098

Please sign in to comment.