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 "
tests/utils/domain.hpp
"
4
#include "
tests/utils/execution_space_context.hpp
"
5
16
17
namespace
Tests::ExecutionSpaceImpl
{
18
19
class
DomainTest
:
public
Tests::Utils::ExecutionSpaceContextTest
<TEST_EXECUTION_SPACE> { };
20
22
static_assert
(!
Tests::Utils::check_if_common_domain_is_default<Kokkos::Execution::ExecutionSpaceImpl::Domain>
());
23
25
TEST(
DomainTest
, not_default_domain_like_then) {
26
static_assert
(!
Tests::Utils::check_if_default_domain_like_for
<
27
Kokkos::Execution::ExecutionSpaceImpl::Domain
,
28
stdexec::then_t,
29
typename
DomainTest::schedule_sender_t
30
>());
31
}
32
34
TEST(
DomainTest
, not_default_domain_like_bulk) {
35
static_assert
(!
Tests::Utils::check_if_default_domain_like_for
<
36
Kokkos::Execution::ExecutionSpaceImpl::Domain
,
37
stdexec::bulk_t,
38
typename
DomainTest::schedule_sender_t
,
39
stdexec::parallel_policy,
40
int
41
>());
42
}
43
45
TEST(
DomainTest
, has_apply_sender_for_sync_wait) {
46
static_assert
(stdexec::__detail::__has_apply_sender<
47
Kokkos::Execution::ExecutionSpaceImpl::Domain
,
48
stdexec::sync_wait_t,
49
typename
DomainTest::schedule_sender_t
50
>);
51
}
52
54
TEST(
DomainTest
, has_transform_sender_for_then) {
55
static_assert
(
Tests::Utils::check_if_domain_has_transform_sender_for
<
56
Kokkos::Execution::ExecutionSpaceImpl::Domain
,
57
stdexec::then_t,
58
typename
DomainTest::schedule_sender_t
59
>());
60
}
61
63
TEST(
DomainTest
, has_transform_sender_for_bulk) {
64
static_assert
(
Tests::Utils::check_if_domain_has_transform_sender_for
<
65
Kokkos::Execution::ExecutionSpaceImpl::Domain
,
66
stdexec::bulk_t,
67
typename
DomainTest::schedule_sender_t
,
68
stdexec::parallel_policy,
69
int
70
>());
71
}
72
73
}
// namespace Tests::ExecutionSpaceImpl
Tests::ExecutionSpaceImpl::DomainTest
Definition
test_domain.cpp:19
execution_space_context.hpp
Tests::ExecutionSpaceImpl
Definition
test_any_sender.cpp:39
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::ExecutionSpaceImpl::Domain
Definition
domain.hpp:13
Tests::Utils::ContextTest< Kokkos::Execution::ExecutionSpaceContext, Exec >::schedule_sender_t
decltype(stdexec::schedule(std::declval< scheduler_t >())) schedule_sender_t
Definition
context.hpp:29
Tests::Utils::ExecutionSpaceContextTest
Definition
execution_space_context.hpp:12
domain.hpp
tests
execution_space
test_domain.cpp
Generated on
for kokkos-execution by
1.15.0