kokkos-utils
0.0.1
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
#include "
kokkos-utils/concepts/ExecutionSpace.hpp
"
6
7
namespace
Kokkos::utils::callbacks
8
{
9
11
template
<Kokkos::utils::concepts::ExecutionSpace Exec>
12
struct
EventQueueMatcher
13
{
14
template
<EnqueuedEvent EventType>
15
bool
operator()
(
const
EventType& event)
const
{
16
return
event
.dev_id ==
dev_id
;
17
}
18
19
Exec
exec
;
20
uint32_t
dev_id
= Kokkos::Tools::Experimental::device_id(
exec
);
21
};
22
23
}
// namespace Kokkos::utils::callbacks
24
25
#endif
// KOKKOS_UTILS_CALLBACKS_EVENTQUEUEMATCHER_HPP
Events.hpp
ExecutionSpace.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:13
Kokkos::utils::callbacks::EventQueueMatcher::dev_id
uint32_t dev_id
Definition
EventQueueMatcher.hpp:20
Kokkos::utils::callbacks::EventQueueMatcher::exec
Exec exec
Definition
EventQueueMatcher.hpp:19
Kokkos::utils::callbacks::EventQueueMatcher::operator()
bool operator()(const EventType &event) const
Definition
EventQueueMatcher.hpp:15
include
kokkos-utils
callbacks
EventQueueMatcher.hpp
Generated on Wed Jun 25 2025 05:46:48 for kokkos-utils by
1.13.2