kokkos-execution 0.0.1
Loading...
Searching...
No Matches
test_when_all.failure.cpp
Go to the documentation of this file.
2
15int main() {
16 const Kokkos::ScopeGuard guard{};
17
18 const TEST_EXECUTION_SPACE exec{};
19
21
22 stdexec::sender auto when_all = stdexec::when_all(stdexec::schedule(ctx.get_scheduler()) | stdexec::then([]() { }));
23
25 static_assert(std::same_as<
26 stdexec::__completion_domain_of_t<stdexec::set_value_t, decltype(when_all)>,
28 >);
29
31 static_assert(!std::invocable<
32 stdexec::get_completion_scheduler_t<stdexec::set_value_t>,
33 stdexec::env_of_t<decltype(when_all)>
34 >);
35
36 stdexec::sync_wait(std::move(when_all) | stdexec::then([]() { })); // NOLINT(performance-move-const-arg)
37}
Execution context using a Kokkos execution space under the hood.
auto get_scheduler() const noexcept -> ExecutionSpaceImpl::Scheduler< Exec >