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