kokkos-execution
0.0.1
Toggle main menu visibility
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
4
#include "
kokkos-execution/stdexec.hpp
"
5
6
namespace
Tests::Utils::Schedulers
{
7
9
template
<
typename
Schd, stdexec::__completion_tag... Tags>
10
struct
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
stdexec.hpp
Tests::Utils::Schedulers
Definition
attributes.hpp:6
Tests::Utils::Schedulers::Attributes
Inspired by https://github.com/NVIDIA/stdexec/blob/2184dd714f82df1e00d39961817be97f31c02744/test/test...
Definition
attributes.hpp:10
Tests::Utils::Schedulers::Attributes::m_schd
Schd m_schd
Definition
attributes.hpp:19
Tests::Utils::Schedulers::Attributes::query
constexpr auto query(stdexec::get_completion_scheduler_t< Tag >, const Env &...) const noexcept
Definition
attributes.hpp:15
tests
utils
schedulers
attributes.hpp
Generated on
for kokkos-execution by
1.18.0