kokkos-execution
0.0.1
Loading...
Searching...
No Matches
sync_wait.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_EXECUTION_TESTS_UTILS_SYNC_WAIT_HPP
2
#define KOKKOS_EXECUTION_TESTS_UTILS_SYNC_WAIT_HPP
3
4
#include "
kokkos-execution/stdexec.hpp
"
5
6
#include "
kokkos-utils/callbacks/RecorderListener.hpp
"
7
8
namespace
Tests::Utils
{
9
10
template
<
11
stdexec::__is_instance_of<Kokkos::utils::callbacks::RecorderListener> RecorderListenerType,
12
stdexec::sender Sndr
13
>
14
auto
record_sync_wait
(Sndr&& sndr) {
15
return
RecorderListenerType::record(
16
[sndr = std::forward<Sndr>(sndr)]()
mutable
{
// NOLINT(performance-move-const-arg)
17
stdexec::sync_wait(std::move(sndr));
// NOLINT(performance-move-const-arg)
18
});
19
}
20
21
}
// namespace Tests::Utils
22
23
#endif
// KOKKOS_EXECUTION_TESTS_UTILS_SYNC_WAIT_HPP
RecorderListener.hpp
stdexec.hpp
Tests::Utils
Definition
atomic.hpp:30
Tests::Utils::record_sync_wait
auto record_sync_wait(Sndr &&sndr)
Definition
sync_wait.hpp:14
tests
utils
sync_wait.hpp
Generated on
for kokkos-execution by
1.15.0