Skip to content

Commit

Permalink
kp_sampler_skip.cpp: make probability sampling the priority (as before)
Browse files Browse the repository at this point in the history
Fix from a previous suggestion from contributed commit  - it may have been misunderstood that probability sampling is the priority here (I should have caught this).

Co-authored-by: Christian Trott <[email protected]>
  • Loading branch information
vlkale and crtrott authored May 3, 2024
1 parent bb538bb commit b03c2c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/kokkos-sampler/kp_sampler_skip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void kokkosp_init_library(const int loadSeq, const uint64_t interfaceVer,
}

const char* tool_sample = getenv("KOKKOS_TOOLS_SAMPLER_SKIP");
if (NULL != tool_sample) {
if (NULL != tool_sample && tool_prob_num == -1.0) {
tool_prob_num = 100.0;
kernelSampleSkip = atoi(tool_sample) + 1;
if (tool_verbosity > 0) {
Expand Down

0 comments on commit b03c2c4

Please sign in to comment.