kokkos-execution
0.0.1
Toggle main menu visibility
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
4
#include "
kokkos-execution/stdexec.hpp
"
5
11
12
namespace
Kokkos::Execution::ExecutionSpaceImpl
{
13
16
struct
CANNOT_DISPATCH_THIS_ALGORITHM_TO_THE_EXECUTION_SPACE_SCHEDULER;
17
struct
BECAUSE_THERE_IS_NO_EXECUTION_SPACE_SCHEDULER_IN_THE_ENVIRONMENT;
19
25
template
<
typename
Tag,
typename
Sndr,
typename
... Env>
26
auto
no_execution_space_scheduler_in_env
() noexcept {
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
stdexec.hpp
Kokkos::Execution::ExecutionSpaceImpl
Definition
execution_space.hpp:28
Kokkos::Execution::ExecutionSpaceImpl::no_execution_space_scheduler_in_env
auto no_execution_space_scheduler_in_env() noexcept
Show a better compile diagnostic when there is no Kokkos::Execution::ExecutionSpaceImpl::Scheduler fo...
Definition
diagnostics.hpp:26
kokkos-execution
execution_space
diagnostics.hpp
Generated on
for kokkos-execution by
1.18.0