kokkos-execution 0.0.1
Loading...
Searching...
No Matches
sync_wait.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_IMPL_SYNC_WAIT_HPP
2#define KOKKOS_EXECUTION_IMPL_SYNC_WAIT_HPP
3
4#include "stdexec/execution.hpp"
5
7
9struct env {
10 stdexec::run_loop::scheduler schd;
11
12 [[nodiscard]]
13 auto query(stdexec::get_scheduler_t) const noexcept -> stdexec::run_loop::scheduler {
14 return schd;
15 }
16
17 [[nodiscard]]
18 auto query(stdexec::get_delegation_scheduler_t) const noexcept -> stdexec::run_loop::scheduler {
19 return schd;
20 }
21};
22
24struct State {
25 std::exception_ptr error;
26 stdexec::run_loop loop;
27};
28
29} // namespace Kokkos::Execution::Impl
30
31#endif // KOKKOS_EXECUTION_IMPL_SYNC_WAIT_HPP
Inspired by https://github.com/NVIDIA/stdexec/blob/16076a81efa4477513e6ede9c2741fd034ecef99/include/s...
Definition sync_wait.hpp:24
Inspired by https://github.com/NVIDIA/stdexec/blob/16076a81efa4477513e6ede9c2741fd034ecef99/include/s...
Definition sync_wait.hpp:9
auto query(stdexec::get_delegation_scheduler_t) const noexcept -> stdexec::run_loop::scheduler
Definition sync_wait.hpp:18
auto query(stdexec::get_scheduler_t) const noexcept -> stdexec::run_loop::scheduler
Definition sync_wait.hpp:13
stdexec::run_loop::scheduler schd
Definition sync_wait.hpp:10