kokkos-execution 0.0.1
Loading...
Searching...
No Matches
test_diagnostics.failure.cpp
Go to the documentation of this file.
2PRAGMA_DIAGNOSTIC_PUSH
4#include "exec/single_thread_context.hpp"
5PRAGMA_DIAGNOSTIC_POP
6
8
10
12int main() {
13 const Kokkos::ScopeGuard guard{};
14
15 const TEST_EXECUTION_SPACE exec{};
16
18 exec::single_thread_context stc{};
19
22
23 stdexec::sender auto sndr = stdexec::when_all( // NOLINT(misc-const-correctness)
24 stdexec::schedule(stc.get_scheduler()) | stdexec::continues_on(gctx.get_scheduler())
25 | stdexec::then(functor_t{}),
26 stdexec::schedule(gctx.get_scheduler()) | stdexec::then(functor_t{}));
27
28 using op_state_t = stdexec::connect_result_t<decltype(sndr), rcvr_t>;
29
33 >());
34}
#define KOKKOS_EXECUTION_STDEXEC_PRAGMA_DIAGNOSTIC_IGNORED
Basic list of ignored diagnostics when including anything from stdexec.
int main(int argc, char **argv)
constexpr bool mandate_or_explain() noexcept
If T::value is false, diagnose.
Execution context using Kokkos::Experimental::Graph under the hood.
Definition graph.hpp:123
auto get_scheduler() const noexcept -> GraphImpl::Scheduler< execution_space >
Definition graph.hpp:134
Receiver for stdexec::sync_wait.
Definition sync_wait.hpp:45