kokkos-execution
0.0.1
Toggle main menu visibility
Loading...
Searching...
No Matches
test_when_all.failure.cpp
Go to the documentation of this file.
1
#include "
kokkos-execution/execution_space.hpp
"
2
16
int
main
() {
17
const
Kokkos::ScopeGuard guard{};
18
19
const
TEST_EXECUTION_SPACE exec{};
20
21
const
Kokkos::Execution::ExecutionSpaceContext<TEST_EXECUTION_SPACE>
ctx{exec};
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)>,
30
Kokkos::Execution::ExecutionSpaceImpl::Domain
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
}
execution_space.hpp
main
int main(int argc, char **argv)
Kokkos::Execution::ExecutionSpaceContext
Execution context using a Kokkos execution space under the hood.
Definition
execution_space.hpp:124
Kokkos::Execution::ExecutionSpaceContext::get_scheduler
auto get_scheduler() const noexcept -> ExecutionSpaceImpl::Scheduler< Exec >
Definition
execution_space.hpp:133
Kokkos::Execution::ExecutionSpaceImpl::Domain
Definition
domain.hpp:13
tests
execution_space
test_when_all.failure.cpp
Generated on
for kokkos-execution by
1.18.0