Skip to content

Commit

Permalink
Fix a reductions HIP compile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Prather committed Sep 12, 2023
1 parent ac048d6 commit e3ffb0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kharma/reductions/reductions_variables.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ enum class Var{phi, bsq, gas_pressure, mag_pressure, beta,

// Function template for all reductions.
template<Var T>
Real reduction_var(REDUCE_FUNCTION_ARGS);
KOKKOS_INLINE_FUNCTION Real reduction_var(REDUCE_FUNCTION_ARGS);

// Can also sum the hemispheres independently to be fancy (TODO?)
template <>
Expand Down Expand Up @@ -249,4 +249,4 @@ KOKKOS_INLINE_FUNCTION Real reduction_var<Var::neg_rho>(REDUCE_FUNCTION_ARGS)

}

#undef REDUCE_FUNCTION_ARGS
#undef REDUCE_FUNCTION_ARGS

0 comments on commit e3ffb0b

Please sign in to comment.