kokkos-execution 0.0.1
Loading...
Searching...
No Matches
diagnostics.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_EXECUTION_SPACE_DIAGNOSTICS_HPP
2#define KOKKOS_EXECUTION_EXECUTION_SPACE_DIAGNOSTICS_HPP
3
5
11
13
16struct CANNOT_DISPATCH_THIS_ALGORITHM_TO_THE_EXECUTION_SPACE_SCHEDULER;
17struct BECAUSE_THERE_IS_NO_EXECUTION_SPACE_SCHEDULER_IN_THE_ENVIRONMENT;
19
25template <typename Tag, typename Sndr, typename... Env>
27 return stdexec::__not_a_sender<
28 stdexec::_WHAT_(CANNOT_DISPATCH_THIS_ALGORITHM_TO_THE_EXECUTION_SPACE_SCHEDULER),
29 stdexec::_WHY_(BECAUSE_THERE_IS_NO_EXECUTION_SPACE_SCHEDULER_IN_THE_ENVIRONMENT),
30 stdexec::_WHERE_(stdexec::_IN_ALGORITHM_, Tag),
31 stdexec::_WITH_SENDER_<Sndr>,
32 stdexec::_WITH_ENVIRONMENT_(Env...)
33 >{};
34}
35
36} // namespace Kokkos::Execution::ExecutionSpaceImpl
37
38#endif // KOKKOS_EXECUTION_EXECUTION_SPACE_DIAGNOSTICS_HPP
auto no_execution_space_scheduler_in_env() noexcept
Show a better compile diagnostic when there is no Kokkos::Execution::ExecutionSpaceImpl::Scheduler fo...