Skip to content

Commit

Permalink
kp_sampler_skip.cpp: apply clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale committed May 3, 2024
1 parent 4c48eb0 commit bb538bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/kokkos-sampler/kp_sampler_skip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,9 @@ void kokkosp_init_library(const int loadSeq, const uint64_t interfaceVer,
const char* tool_probability = getenv("KOKKOS_TOOLS_SAMPLER_PROB");

if (NULL != tool_probability) {
// read sampling probability as a float between 0 and 100, representing
// Read sampling probability as a float between 0 and 100, representing
// a percentage that data should be gathered.
// Connector reasons about probability as a double between 0.0 and 1.0.
// Utility reasons about probability as a double between 0.0 and 1.0.
tool_prob_num = atof(tool_probability);
if (tool_prob_num > 100.0) {
std::cout << "KokkosP: The sampling probability value is set to be "
Expand All @@ -218,7 +218,7 @@ void kokkosp_init_library(const int loadSeq, const uint64_t interfaceVer,
}
if (tool_verbosity > 0) {
std::cout << "KokkosP: Probability for the sampler set to: "
<< tool_prob_num << '\n';
<< tool_prob_num << "\n";
}
kernelSampleSkip = 1;
return;
Expand Down

0 comments on commit bb538bb

Please sign in to comment.