kokkos-execution 0.0.1
Loading...
Searching...
No Matches
test_sync_wait.cpp
Go to the documentation of this file.
3
5
10
22
23namespace Tests::GraphImpl {
24
25using namespace Kokkos::utils::callbacks;
26
33
38>());
39
41TEST_F(SyncWaitTest, sync_wait) {
42 const context_t gctx{exec};
43
44 auto sndr = stdexec::schedule(gctx.get_scheduler());
45
46 ASSERT_THAT(
47 recorder_listener_t::record([sndr = std::move(sndr)]() mutable { // NOLINT(performance-move-const-arg)
48 const auto value = stdexec::sync_wait(std::move(sndr)); // NOLINT(performance-move-const-arg)
49 static_assert(std::same_as<decltype(value), const std::optional<std::tuple<>>>);
50 ASSERT_TRUE(value.has_value());
51 }),
52 testing::IsEmpty());
53}
54
55} // namespace Tests::GraphImpl
RecorderListener< EventDiscardMatcher< TEST_EXECUTION_SPACE >, BeginFenceEvent > recorder_listener_t
consteval bool check_nothrow_apply_sender()
auto get_scheduler() const noexcept -> GraphImpl::Scheduler< Exec >
Definition graph.hpp:117
decltype(stdexec::schedule(std::declval< scheduler_t >())) schedule_sender_t
Definition context.hpp:29