forked from kokkos/kokkos-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,21 @@ | ||
#pragma once | ||
|
||
struct Tester { | ||
template <typename execution_space> | ||
explicit Tester(const execution_space& space) { | ||
//! Explicitly launch a kernel with a name, and run it 15 times with kernel | ||
//! logger. Use a periodic sampling with skip rate 5. This should print | ||
//! out 2 invocations, and there is a single matcher with a regular | ||
//! expression to check this. | ||
|
||
long int N = 1024; | ||
long int result; | ||
|
||
for (int iter = 0; iter < 15; iter++) { | ||
result = 0; | ||
Kokkos::parallel_scan("named kernel scan", N, *this, result); | ||
} | ||
} | ||
|
||
KOKKOS_FUNCTION void operator()(const int, long int&, bool) const {} | ||
}; |