kokkos-utils
0.0.5
Toggle main menu visibility
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
4
#include "
kokkos-utils/callbacks/Events.hpp
"
5
6
namespace
Kokkos::utils::callbacks
7
{
8
10
struct
EventNameMatcher
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
Events.hpp
Kokkos::utils::callbacks
Definition
BeginEndTimerListener.hpp:12
Kokkos::utils::callbacks::EventNameMatcher
Matcher to select events whose name matches name.
Definition
EventNameMatcher.hpp:11
Kokkos::utils::callbacks::EventNameMatcher::name
std::string name
Definition
EventNameMatcher.hpp:22
Kokkos::utils::callbacks::EventNameMatcher::operator()
bool operator()(const EventType &event) const
Definition
EventNameMatcher.hpp:13
include
kokkos-utils
callbacks
EventNameMatcher.hpp
Generated on
for kokkos-utils by
1.18.0