Skip to content

Commit

Permalink
kp_sampler_skip.cpp: putting back in conditional as requested
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale authored May 3, 2024
1 parent d571b94 commit a426547
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions common/kokkos-sampler/kp_sampler_skip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,12 @@ void kokkosp_init_library(const int loadSeq, const uint64_t interfaceVer,
return;
}

if (tool_prob_num == -1.0)
{
// If the tool probability is set to -1 (no probability sampling
// desired) and the user also didn't set
// skip rate, then use a default with a probability sampling of 10%.

if (tool_verbosity > 0) {
std::cout << "KokkosP: Neither the probability nor the skip rate for "
"sampling were set...\n";
Expand All @@ -253,7 +255,7 @@ void kokkosp_init_library(const int loadSeq, const uint64_t interfaceVer,
<< tool_prob_num
<< " percent. The skip rate for sampler will not be used.\n";
}

}
} // end kokkosp_init_library


Expand Down

0 comments on commit a426547

Please sign in to comment.