Skip to content

Commit

Permalink
kp_core.hpp: no pointer for ptpi variable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
vlkale authored Apr 1, 2024
1 parent 5f16d23 commit 4e75941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profiling/all/kp_core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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); \
}

Expand Down

0 comments on commit 4e75941

Please sign in to comment.