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
6
8{
9
11template <Kokkos::utils::concepts::ExecutionSpace Exec>
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
Match an event whose dev_id is the same as the one of exec.
bool operator()(const EventType &event) const