From 4e75941a4ef612130d991abcd37dcc60378e42ad Mon Sep 17 00:00:00 2001 From: Vivek Kale <11766050+vlkale@users.noreply.github.com> Date: Mon, 1 Apr 2024 14:25:34 -0700 Subject: [PATCH] kp_core.hpp: no pointer for ptpi variable The last parameter of kokkosp_provide_tool_programming_interface function should be passed by value and not by pointer. This is pertinent for the tool-invoked fence used in the sampler. --- profiling/all/kp_core.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profiling/all/kp_core.hpp b/profiling/all/kp_core.hpp index c63db1863..cc51bc3d9 100644 --- a/profiling/all/kp_core.hpp +++ b/profiling/all/kp_core.hpp @@ -55,7 +55,7 @@ using Kokkos::Tools::SpaceHandle; #define EXPOSE_PROVIDE_TOOL_PROGRAMMING_INTERFACE(FUNC_NAME) \ __attribute__((weak)) void kokkosp_provide_tool_programming_interface( \ const uint32_t num_actions, \ - Kokkos_Tools_ToolProgrammingInterface* ptpi) { \ + Kokkos_Tools_ToolProgrammingInterface ptpi) { \ FUNC_NAME(num_actions, ptpi); \ }