kokkos-execution
0.0.1
Toggle main menu visibility
Loading...
Searching...
No Matches
test_node_props.cpp
Go to the documentation of this file.
1
#include "gtest/gtest.h"
2
3
#include "
kokkos-execution/graph.hpp
"
4
15
16
17
namespace
Tests::GraphImpl
{
18
19
using
node_props_t
= Kokkos::Impl::NodeCtorProps<Kokkos::Impl::DeviceHandle<TEST_EXECUTION_SPACE>, std::string>;
20
22
consteval
bool
test_node_props_t
() {
23
static_assert
(
24
std::same_as<Kokkos::Execution::GraphImpl::node_props_t<TEST_EXECUTION_SPACE, std::string>,
node_props_t
>);
25
26
return
true
;
27
}
28
29
static_assert
(
test_node_props_t
());
30
32
consteval
bool
test_device_handle_of_t
() {
33
static_assert
(std::same_as<
34
Kokkos::Execution::GraphImpl::device_handle_of_t<node_props_t>
,
35
Kokkos::Impl::DeviceHandle<TEST_EXECUTION_SPACE>
36
>);
37
38
return
true
;
39
}
40
41
static_assert
(
test_device_handle_of_t
());
42
44
consteval
bool
test_exec_of_t
() {
45
static_assert
(std::same_as<
46
Kokkos::Execution::GraphImpl::exec_of_t<Kokkos::Impl::DeviceHandle<TEST_EXECUTION_SPACE>
>,
47
TEST_EXECUTION_SPACE
48
>);
49
50
return
true
;
51
}
52
53
static_assert
(
test_exec_of_t
());
54
56
TEST(is, useless) {
57
}
58
59
}
// namespace Tests::GraphImpl
graph.hpp
Kokkos::Execution::GraphImpl::exec_of_t
typename ExecOf< T >::type exec_of_t
Definition
node_props.hpp:55
Kokkos::Execution::GraphImpl::device_handle_of_t
typename decltype(device_handle_of(std::declval< const T & >()))::type device_handle_of_t
Definition
node_props.hpp:41
Tests::GraphImpl
Definition
events.hpp:8
Tests::GraphImpl::test_node_props_t
consteval bool test_node_props_t()
Definition
test_node_props.cpp:22
Tests::GraphImpl::test_exec_of_t
consteval bool test_exec_of_t()
Definition
test_node_props.cpp:44
Tests::GraphImpl::test_device_handle_of_t
consteval bool test_device_handle_of_t()
Definition
test_node_props.cpp:32
Tests::GraphImpl::node_props_t
Kokkos::Impl::NodeCtorProps< Kokkos::Impl::DeviceHandle< TEST_EXECUTION_SPACE >, std::string > node_props_t
Definition
test_node_props.cpp:19
tests
graph
test_node_props.cpp
Generated on
for kokkos-execution by
1.18.0