kokkos-utils
0.0.5
Toggle main menu visibility
Loading...
Searching...
No Matches
EventIdMatcher.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_UTILS_CALLBACKS_EVENTIDMATCHER_HPP
2
#define KOKKOS_UTILS_CALLBACKS_EVENTIDMATCHER_HPP
3
4
#include "
kokkos-utils/callbacks/Events.hpp
"
5
6
namespace
Kokkos::utils::callbacks
7
{
8
10
struct
EventIdMatcher
11
{
12
template
<IndexedEvent EventType>
13
bool
operator()
(
const
EventType& event)
const
{
14
return
event
.event_id ==
event_id
;
15
}
16
17
EventTraits::event_id_t
event_id
=
EventTraits::invalid_event_id
;
18
};
19
20
}
// namespace Kokkos::utils::callbacks
21
22
#endif
// KOKKOS_UTILS_CALLBACKS_EVENTIDMATCHER_HPP
Events.hpp
Kokkos::utils::callbacks
Definition
BeginEndTimerListener.hpp:12
Kokkos::utils::callbacks::EventIdMatcher
Match an event whose event_id is event_id.
Definition
EventIdMatcher.hpp:11
Kokkos::utils::callbacks::EventIdMatcher::event_id
EventTraits::event_id_t event_id
Definition
EventIdMatcher.hpp:17
Kokkos::utils::callbacks::EventIdMatcher::operator()
bool operator()(const EventType &event) const
Definition
EventIdMatcher.hpp:13
Kokkos::utils::callbacks::EventTraits::event_id_t
uint64_t event_id_t
Definition
Events.hpp:15
Kokkos::utils::callbacks::EventTraits::invalid_event_id
static constexpr event_id_t invalid_event_id
Definition
Events.hpp:17
include
kokkos-utils
callbacks
EventIdMatcher.hpp
Generated on
for kokkos-utils by
1.18.0