4#include "exec/ensure_started.hpp"
31using namespace Kokkos::utils::callbacks;
48 const view_s_t data(Kokkos::view_alloc(
exec,
"data - shared space"));
52 const auto recorder_listener = std::make_shared<recorder_listener_t>();
57 | experimental::execution::ensure_started();
59 using sndr_t =
decltype(sndr);
61 ASSERT_THAT(recorder_listener->recorded_events, ::testing::SizeIs(2));
62 ASSERT_THAT(data(), ::testing::Eq(1));
64 recorder_listener->recorded_events,
71 static_assert(!stdexec::__decay_copyable<sndr_t&>);
73 stdexec::sync_wait(std::move(sndr));
75 ASSERT_THAT(recorder_listener->recorded_events, ::testing::SizeIs(2));
78 static_assert(std::same_as<stdexec::__domain_of_t<stdexec::env_of_t<sndr_t>>, stdexec::default_domain>);
79 static_assert(std::same_as<
80 stdexec::__detail::__completing_domain_t<stdexec::set_value_t, sndr_t, stdexec::env<>>,
81 stdexec::default_domain
constexpr std::string dispatch_label(const Exec &, Label &&label)
Get the dispatch label from Exec and label.
#define MATCHER_FOR_BEGIN_PFOR(_exec_, _label_)
#define MATCHER_FOR_BEGIN_FENCE(_exec_, _label_)
static void unregister_listener(const Callable *const callable)
static listener_list_const_iter_t register_listener(std::shared_ptr< Callable > callable)
RecorderListener< EventDiscardMatcher< TEST_EXECUTION_SPACE >, BeginFenceEvent, BeginParallelForEvent, Kokkos::Execution::Impl::RecordEvent, Kokkos::Execution::Impl::WaitEvent > recorder_listener_t
#define KOKKOS_EXECUTION_STDEXEC_PRAGMA_DIAGNOSTIC_IGNORED
Basic list of ignored diagnostics when including anything from stdexec.
#define THEN_INCREMENT(_data_)
Add a then using Tests::Utils::Functors::Increment that may throw. // NOLINTNEXTLINE(cppcoreguideline...
Matcher to filter out events that are just noise for tests.
auto get_scheduler() const noexcept -> ExecutionSpaceImpl::Scheduler< Exec >
Event to be sent to Kokkos::utils::callbacks::dispatch when calling record.
Event to be sent to Kokkos::utils::callbacks::dispatch when calling wait.
Kokkos::View< value_t, Kokkos::SharedSpace > view_s_t
Kokkos::Execution::ExecutionSpaceContext< Exec > context_t