From e3ffb0bb805a74348593824727c8884eb78fd169 Mon Sep 17 00:00:00 2001 From: Ben Prather Date: Tue, 12 Sep 2023 11:09:32 -0400 Subject: [PATCH] Fix a reductions HIP compile bug --- kharma/reductions/reductions_variables.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kharma/reductions/reductions_variables.hpp b/kharma/reductions/reductions_variables.hpp index 0ebe3681..46071eb2 100644 --- a/kharma/reductions/reductions_variables.hpp +++ b/kharma/reductions/reductions_variables.hpp @@ -58,7 +58,7 @@ enum class Var{phi, bsq, gas_pressure, mag_pressure, beta, // Function template for all reductions. template -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 <> @@ -249,4 +249,4 @@ KOKKOS_INLINE_FUNCTION Real reduction_var(REDUCE_FUNCTION_ARGS) } -#undef REDUCE_FUNCTION_ARGS \ No newline at end of file +#undef REDUCE_FUNCTION_ARGS