Skip to content

Commit

Permalink
kp_sampler_skip.cpp: provide_tpi parameter changed
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale authored Feb 15, 2024
1 parent dae1f2c commit 68c1093
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions common/kokkos-sampler/kp_sampler_skip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ uint32_t getDeviceID(uint32_t devid_in) {
}

void invoke_ktools_fence(uint32_t devID) {
if ((*tpi_funcs.fence) != nullptr)) {
if (tpi_funcs.fence != nullptr)) {
if (tool_verbosity > 1) {
printf(
"KokkosP: Sampler attempting to invoke"
" tool-induced fence on device %d.\n",
getDeviceID(devID));
}
(*tpi_funcs.fence)(devID);
(*(tpi_funcs.fence))(devID);
if (tool_verbosity > 1) {
printf(
"KokkosP: Sampler sucessfully invoked"
Expand All @@ -74,14 +74,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

0 comments on commit 68c1093

Please sign in to comment.