Skip to content

Commit

Permalink
test_randomized_sampling.cpp: sample number to be 100
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkale authored Mar 7, 2024
1 parent 4c241a2 commit e6e6545
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/sampler/test_randomized_sampling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
struct Tester {
template <typename execution_space>
explicit Tester(const execution_space& space) {
//! Explicitly launch a kernel with a name, and run it 4 times with kernel
//! logger. Use a periodic sampling with skip rate 2. This should print out
//! Explicitly launch a kernel with a name, and run it 150 times with kernel
//! logger. Use a periodic sampling with skip rate 101. This should print out
//! 1 invocation In the test, we match the invocations output from the
//! second invocation and make sure the first
// and third are not printed out, and the second and fourth are sequenced
Expand All @@ -26,7 +26,7 @@ struct Tester {
};

static const std::vector<std::string> matchers{
"> (.*)\| KokkosP: sample 101 calling child-begin function...\nKokkosP: Sampler attempting to invoke tool-induced fence on device 0.\nKokkosP: Sampler sucessfully invoked tool-induced fence on device 0\n > (.*)\| KokkosP: sample 101 finished with child-begin function.\nKokkosP: sample 101 calling child-end function...\nKokkosP: Sampler attempting to invoke tool-induced fence on device 0.\nKokkosP: Sampler sucessfully invoked tool-induced fence on device 0\n > (.*)\|"
"> (.*)\| KokkosP: sample 100 calling child-begin function...\nKokkosP: Sampler attempting to invoke tool-induced fence on device 0.\nKokkosP: Sampler sucessfully invoked tool-induced fence on device 0\n > (.*)\| KokkosP: sample 100 finished with child-begin function.\nKokkosP: sample 100 calling child-end function...\nKokkosP: Sampler attempting to invoke tool-induced fence on device 0.\nKokkosP: Sampler sucessfully invoked tool-induced fence on device 0\n > (.*)\|"
};

/**
Expand Down

0 comments on commit e6e6545

Please sign in to comment.