kokkos-utils
0.0.1
Loading...
Searching...
No Matches
EventRegexMatcher.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_UTILS_CALLBACKS_EVENTREGEXMATCHER_HPP
2
#define KOKKOS_UTILS_CALLBACKS_EVENTREGEXMATCHER_HPP
3
4
#include <regex>
5
6
#include "
kokkos-utils/callbacks/Events.hpp
"
7
8
namespace
Kokkos::utils::callbacks
9
{
10
12
struct
EventRegexMatcher
13
{
14
template
<NamedEvent EventType>
15
bool
operator()
(
const
EventType& event)
const
{
16
return
std::regex_search(event.name, this->regex);
17
}
18
19
template
<DataEvent EventType>
20
bool
operator()
(
const
EventType& event)
const
{
21
return
std::regex_search(event.alloc.name, this->regex);
22
}
23
24
std::regex
regex
;
25
};
26
27
}
// namespace Kokkos::utils::callbacks
28
29
#endif
// KOKKOS_UTILS_CALLBACKS_EVENTREGEXMATCHER_HPP
Events.hpp
Kokkos::utils::callbacks
Definition
EventInProfileSectionRegexMatcher.hpp:11
Kokkos::utils::callbacks::EventRegexMatcher
Matcher to select events whose name matches a regular expression.
Definition
EventRegexMatcher.hpp:13
Kokkos::utils::callbacks::EventRegexMatcher::operator()
bool operator()(const EventType &event) const
Definition
EventRegexMatcher.hpp:15
Kokkos::utils::callbacks::EventRegexMatcher::regex
std::regex regex
Definition
EventRegexMatcher.hpp:24
include
kokkos-utils
callbacks
EventRegexMatcher.hpp
Generated on Thu Apr 17 2025 12:50:27 for kokkos-utils by
1.13.2