kokkos-execution
0.0.1
Loading...
Searching...
No Matches
test_domain.cpp
Go to the documentation of this file.
1
#include "gtest/gtest.h"
2
3
#include "
kokkos-execution/graph.hpp
"
4
5
#include "
tests/utils/domain.hpp
"
6
#include "
tests/utils/graph_context.hpp
"
7
18
19
namespace
Tests::GraphImpl
{
20
21
class
DomainTest
:
public
Tests::Utils::GraphContextTest
<TEST_EXECUTION_SPACE> { };
22
24
static_assert
(!
Tests::Utils::check_if_common_domain_is_default<Kokkos::Execution::GraphImpl::Domain>
());
25
27
TEST(
DomainTest
, not_default_domain_like_then) {
28
static_assert
(!
Tests::Utils::check_if_default_domain_like_for
<
29
Kokkos::Execution::GraphImpl::Domain
,
30
stdexec::then_t,
31
typename
DomainTest::schedule_sender_t
32
>());
33
}
34
36
TEST(
DomainTest
, not_default_domain_like_bulk) {
37
static_assert
(!
Tests::Utils::check_if_default_domain_like_for
<
38
Kokkos::Execution::GraphImpl::Domain
,
39
stdexec::bulk_t,
40
typename
DomainTest::schedule_sender_t
,
41
stdexec::parallel_policy,
42
int
43
>());
44
}
45
47
TEST(
DomainTest
, has_apply_sender_for_sync_wait) {
48
static_assert
(stdexec::__detail::__has_apply_sender<
49
Kokkos::Execution::GraphImpl::Domain
,
50
stdexec::sync_wait_t,
51
typename
DomainTest::schedule_sender_t
52
>);
53
}
54
56
TEST(
DomainTest
, has_transform_sender_for_then) {
57
static_assert
(
Tests::Utils::check_if_domain_has_transform_sender_for
<
58
Kokkos::Execution::GraphImpl::Domain
,
59
stdexec::then_t,
60
typename
DomainTest::schedule_sender_t
61
>());
62
}
63
65
TEST(
DomainTest
, has_transform_sender_for_bulk) {
66
static_assert
(
Tests::Utils::check_if_domain_has_transform_sender_for
<
67
Kokkos::Execution::GraphImpl::Domain
,
68
stdexec::bulk_t,
69
typename
DomainTest::schedule_sender_t
,
70
stdexec::parallel_policy,
71
int
72
>());
73
}
74
75
}
// namespace Tests::GraphImpl
Tests::GraphImpl::DomainTest
Definition
test_domain.cpp:21
graph.hpp
graph_context.hpp
Tests::GraphImpl
Definition
events.hpp:8
Tests::Utils::check_if_domain_has_transform_sender_for
consteval bool check_if_domain_has_transform_sender_for()
Check if the domain has a transform of a Tag sender.
Definition
domain.hpp:21
Tests::Utils::check_if_default_domain_like_for
consteval bool check_if_default_domain_like_for()
Check if the domain's transform of a Tag sender is "default-like".
Definition
domain.hpp:34
Tests::Utils::check_if_common_domain_is_default
consteval bool check_if_common_domain_is_default()
Check if a domain has the stdexec::default_domain as common domain with a few other domains.
Definition
domain.hpp:14
Kokkos::Execution::GraphImpl::Domain
Definition
domain.hpp:13
Tests::Utils::ContextTest< Kokkos::Execution::GraphContext, Exec >::schedule_sender_t
decltype(stdexec::schedule(std::declval< scheduler_t >())) schedule_sender_t
Definition
context.hpp:29
Tests::Utils::GraphContextTest
Definition
graph_context.hpp:14
domain.hpp
tests
graph
test_domain.cpp
Generated on
for kokkos-execution by
1.15.0