Skip to content

Commit

Permalink
Remove useless template
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Feb 22, 2025
1 parent f3c8fcd commit 14405b8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions include/ddc/discrete_space.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ namespace ddc {
namespace detail {

#if defined(KOKKOS_ENABLE_CUDA)
template <class T>
void device_throw_on_error(
T const err,
inline void device_throw_on_error(
cudaError_t const err,
const char* const func,
const char* const file,
const int line)
Expand All @@ -55,9 +54,8 @@ void device_throw_on_error(
}
}
#elif defined(KOKKOS_ENABLE_HIP)
template <class T>
void device_throw_on_error(
T const err,
inline void device_throw_on_error(
hipError_t const err,
const char* const func,
const char* const file,
const int line)
Expand Down

0 comments on commit 14405b8

Please sign in to comment.