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
4
#include "
kokkos-execution/stdexec.hpp
"
5
6
namespace
Tests::Utils
{
7
9
template
<stdexec::scheduler SchedulerType>
10
consteval
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
stdexec.hpp
Tests::Utils
Definition
atomic.hpp:30
Tests::Utils::check_scheduler
consteval bool check_scheduler()
Check that the given type models the stdexec::scheduler concept.
Definition
check_scheduler.hpp:10
tests
utils
check_scheduler.hpp
Generated on
for kokkos-execution by
1.15.0