kokkos-utils
0.0.2
Loading...
Searching...
No Matches
EventQueueMatcher.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_UTILS_CALLBACKS_EVENTQUEUEMATCHER_HPP
2
#define KOKKOS_UTILS_CALLBACKS_EVENTQUEUEMATCHER_HPP
3
4
#include "
kokkos-utils/callbacks/Events.hpp
"
5
6
namespace
Kokkos::utils::callbacks
7
{
8
10
template
<Kokkos::ExecutionSpace Exec>
11
struct
EventQueueMatcher
12
{
13
template
<EnqueuedEvent EventType>
14
bool
operator()
(
const
EventType& event)
const
{
15
return
event
.dev_id ==
dev_id
;
16
}
17
18
Exec
exec
;
19
uint32_t
dev_id
= Kokkos::Tools::Experimental::device_id(
exec
);
20
};
21
22
}
// namespace Kokkos::utils::callbacks
23
24
#endif
// KOKKOS_UTILS_CALLBACKS_EVENTQUEUEMATCHER_HPP
Events.hpp
Kokkos::utils::callbacks
Definition
BeginEndTimerListener.hpp:12
Kokkos::utils::callbacks::EventQueueMatcher
Match an event whose dev_id is the same as the one of exec.
Definition
EventQueueMatcher.hpp:12
Kokkos::utils::callbacks::EventQueueMatcher::dev_id
uint32_t dev_id
Definition
EventQueueMatcher.hpp:19
Kokkos::utils::callbacks::EventQueueMatcher::exec
Exec exec
Definition
EventQueueMatcher.hpp:18
Kokkos::utils::callbacks::EventQueueMatcher::operator()
bool operator()(const EventType &event) const
Definition
EventQueueMatcher.hpp:14
include
kokkos-utils
callbacks
EventQueueMatcher.hpp
Generated on Wed Jan 28 2026 05:49:34 for kokkos-utils by
1.13.2