From d2b2afbf7bc555994023dae47c6c60f38f8c565c Mon Sep 17 00:00:00 2001 From: Ben Prather Date: Tue, 7 Nov 2023 15:21:18 -0500 Subject: [PATCH 1/2] Forceinline par_for_inner: add meshblock version --- src/mesh/meshblock.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/meshblock.hpp b/src/mesh/meshblock.hpp index e488c9db424e..49065f769f85 100644 --- a/src/mesh/meshblock.hpp +++ b/src/mesh/meshblock.hpp @@ -57,7 +57,7 @@ class StateDescriptor; // - Not defined in kokkos_abstraction.hpp because it requires the compile time option // DEFAULT_INNER_LOOP_PATTERN to be set. template -KOKKOS_INLINE_FUNCTION void par_for_inner(const team_mbr_t &team_member, const int &il, +KOKKOS_FORCEINLINE_FUNCTION void par_for_inner(const team_mbr_t &team_member, const int &il, const int &iu, const Function &function) { parthenon::par_for_inner(DEFAULT_INNER_LOOP_PATTERN, team_member, il, iu, function); } From 47123d673d5955c60eaa6b2e9c0699a4109a19a2 Mon Sep 17 00:00:00 2001 From: Ben Prather Date: Tue, 7 Nov 2023 15:36:54 -0500 Subject: [PATCH 2/2] Newlines for the formatting gods --- src/mesh/meshblock.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesh/meshblock.hpp b/src/mesh/meshblock.hpp index 49065f769f85..07ceb9f8bd2a 100644 --- a/src/mesh/meshblock.hpp +++ b/src/mesh/meshblock.hpp @@ -57,8 +57,9 @@ class StateDescriptor; // - Not defined in kokkos_abstraction.hpp because it requires the compile time option // DEFAULT_INNER_LOOP_PATTERN to be set. template -KOKKOS_FORCEINLINE_FUNCTION void par_for_inner(const team_mbr_t &team_member, const int &il, - const int &iu, const Function &function) { +KOKKOS_FORCEINLINE_FUNCTION void par_for_inner(const team_mbr_t &team_member, + const int &il, const int &iu, + const Function &function) { parthenon::par_for_inner(DEFAULT_INNER_LOOP_PATTERN, team_member, il, iu, function); }