kokkos-execution 0.0.1
Loading...
Searching...
No Matches
attributes.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_TESTS_UTILS_SCHEDULERS_ATTRIBUTES_HPP
2#define KOKKOS_EXECUTION_TESTS_UTILS_SCHEDULERS_ATTRIBUTES_HPP
3
5
7
9template <typename Schd, stdexec::__completion_tag... Tags>
10struct Attributes {
11 static_assert(stdexec::scheduler<Schd>);
12
13 template <stdexec::__one_of<Tags...> Tag, typename... Env>
14 [[nodiscard]]
15 constexpr auto query(stdexec::get_completion_scheduler_t<Tag>, const Env&...) const noexcept {
16 return m_schd;
17 }
18
19 Schd m_schd;
20};
21
22} // namespace Tests::Utils::Schedulers
23
24#endif // KOKKOS_EXECUTION_TESTS_UTILS_SCHEDULERS_ATTRIBUTES_HPP
Inspired by https://github.com/NVIDIA/stdexec/blob/2184dd714f82df1e00d39961817be97f31c02744/test/test...
constexpr auto query(stdexec::get_completion_scheduler_t< Tag >, const Env &...) const noexcept