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