kokkos-execution 0.0.1
Loading...
Searching...
No Matches
check_scheduler.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_TESTS_UTILS_CHECK_SCHEDULER_HPP
2#define KOKKOS_EXECUTION_TESTS_UTILS_CHECK_SCHEDULER_HPP
3
5
6namespace Tests::Utils {
7
9template <stdexec::scheduler SchedulerType>
10consteval bool check_scheduler() {
19 static_assert(std::derived_from<typename SchedulerType::scheduler_concept, stdexec::scheduler_t>);
20
22 static_assert(stdexec::sender<decltype(stdexec::schedule(std::declval<const SchedulerType&>()))>);
23
24 return true;
25}
26
27} // namespace Tests::Utils
28
29#endif // KOKKOS_EXECUTION_TESTS_UTILS_CHECK_SCHEDULER_HPP
consteval bool check_scheduler()
Check that the given type models the stdexec::scheduler concept.