Matcher to select events that occur within a region. More...
#include <EventRegionMatcher.hpp>
Public Member Functions | |
| bool | operator() (const PushRegionEvent &event) |
If the event matches matcher, matching is set to true. | |
| bool | operator() (const PopRegionEvent &) |
| Decrement nested_level if we are still matching. | |
| template<Event EventType> | |
| bool | operator() (const EventType &) const |
Public Attributes | |
| MatcherType | matcher {} |
| The preprocessor condition is a workaround for an ICE in nvcc 12.8 with gcc 14.2.0. | |
| bool | matching = false |
| uint32_t | nested_level = invalid_nested_level |
Static Public Attributes | |
| static constexpr uint32_t | invalid_nested_level = Kokkos::Experimental::finite_max_v<uint32_t> |
Matcher to select events that occur within a region.
The region is selected by matcher.
Any event occuring between the matching PushRegionEvent and its corresponding PopRegionEvent will match.
Set TrueOnBoundary to true if it must return true for the opening PushRegionEvent and closing PopRegionEvent and false otherwise.
Definition at line 22 of file EventRegionMatcher.hpp.
|
inline |
Definition at line 62 of file EventRegionMatcher.hpp.
|
inline |
Decrement nested_level if we are still matching.
Definition at line 45 of file EventRegionMatcher.hpp.
|
inline |
If the event matches matcher, matching is set to true.
Definition at line 27 of file EventRegionMatcher.hpp.
|
staticconstexpr |
Definition at line 24 of file EventRegionMatcher.hpp.
| MatcherType Kokkos::utils::callbacks::EventRegionMatcher< MatcherType, TrueOnBoundary >::matcher {} |
The preprocessor condition is a workaround for an ICE in nvcc 12.8 with gcc 14.2.0.
Definition at line 70 of file EventRegionMatcher.hpp.
| bool Kokkos::utils::callbacks::EventRegionMatcher< MatcherType, TrueOnBoundary >::matching = false |
Definition at line 72 of file EventRegionMatcher.hpp.
| uint32_t Kokkos::utils::callbacks::EventRegionMatcher< MatcherType, TrueOnBoundary >::nested_level = invalid_nested_level |
Definition at line 73 of file EventRegionMatcher.hpp.