Skip to content

Commit

Permalink
Merge pull request #247 from vlkale/fix-ptpi-ptr
Browse files Browse the repository at this point in the history
Remove tool programming interface pointer in kp_sampler_skip.cpp and kp_core.hpp
  • Loading branch information
crtrott authored Apr 4, 2024
2 parents 8a68323 + bac317d commit b41533f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions common/kokkos-sampler/kp_sampler_skip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ void invoke_ktools_fence(uint32_t devID) {
}

void kokkosp_provide_tool_programming_interface(
uint32_t num_funcs, Kokkos_Tools_ToolProgrammingInterface* funcsFromTPI) {
uint32_t num_funcs, Kokkos_Tools_ToolProgrammingInterface funcsFromTPI) {
if (!num_funcs) {
if (tool_verbosity > 0)
printf(
"KokkosP: Note: Number of functions in Tools Programming Interface "
"is 0!\n");
}
tpi_funcs = *funcsFromTPI;
tpi_funcs = funcsFromTPI;
}

void kokkosp_init_library(const int loadSeq, const uint64_t interfaceVer,
Expand Down
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 b41533f

Please sign in to comment.