kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
EventNameMatcher.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_UTILS_CALLBACKS_EVENTNAMEMATCHER_HPP
2#define KOKKOS_UTILS_CALLBACKS_EVENTNAMEMATCHER_HPP
3
5
7{
8
11{
12 template <NamedEvent EventType>
13 bool operator()(const EventType& event) const {
14 return event.name == this->name;
15 }
16
17 template <DataEvent EventType>
18 bool operator()(const EventType& event) const {
19 return event.alloc.name == this->name;
20 }
21
22 std::string name;
23};
24
25} // namespace Kokkos::utils::callbacks
26
27#endif // KOKKOS_UTILS_CALLBACKS_EVENTNAMEMATCHER_HPP
Matcher to select events whose name matches name.
bool operator()(const EventType &event) const