kokkos-utils
0.0.1
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
using
event_id_t
= uint64_t;
13
14
static
constexpr
event_id_t
invalid_event_id
= Kokkos::Experimental::finite_max_v<event_id_t>;
15
16
template
<IndexedEvent EventType>
17
bool
operator()
(
const
EventType& event)
const
{
18
return
event
.event_id ==
event_id
;
19
}
20
21
event_id_t
event_id
=
invalid_event_id
;
22
};
23
24
}
// namespace Kokkos::utils::callbacks
25
26
#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::invalid_event_id
static constexpr event_id_t invalid_event_id
Definition
EventIdMatcher.hpp:14
Kokkos::utils::callbacks::EventIdMatcher::operator()
bool operator()(const EventType &event) const
Definition
EventIdMatcher.hpp:17
Kokkos::utils::callbacks::EventIdMatcher::event_id
event_id_t event_id
Definition
EventIdMatcher.hpp:21
Kokkos::utils::callbacks::EventIdMatcher::event_id_t
uint64_t event_id_t
Definition
EventIdMatcher.hpp:12
include
kokkos-utils
callbacks
EventIdMatcher.hpp
Generated on Wed Jun 25 2025 05:46:48 for kokkos-utils by
1.13.2