kokkos-execution 0.0.1
Loading...
Searching...
No Matches
test_node_props.cpp
Go to the documentation of this file.
1#include "gtest/gtest.h"
2
4
15
16
17namespace Tests::GraphImpl {
18
19using node_props_t = Kokkos::Impl::NodeCtorProps<Kokkos::Impl::DeviceHandle<TEST_EXECUTION_SPACE>, std::string>;
20
22consteval 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
29static_assert(test_node_props_t());
30
32consteval bool test_device_handle_of_t() {
33 static_assert(std::same_as<
35 Kokkos::Impl::DeviceHandle<TEST_EXECUTION_SPACE>
36 >);
37
38 return true;
39}
40
41static_assert(test_device_handle_of_t());
42
44consteval bool test_exec_of_t() {
45 static_assert(std::same_as<
47 TEST_EXECUTION_SPACE
48 >);
49
50 return true;
51}
52
53static_assert(test_exec_of_t());
54
56TEST(is, useless) {
57}
58
59} // namespace Tests::GraphImpl
typename ExecOf< T >::type exec_of_t
typename decltype(device_handle_of(std::declval< const T & >()))::type device_handle_of_t
consteval bool test_node_props_t()
consteval bool test_exec_of_t()
consteval bool test_device_handle_of_t()
Kokkos::Impl::NodeCtorProps< Kokkos::Impl::DeviceHandle< TEST_EXECUTION_SPACE >, std::string > node_props_t