kokkos-utils
0.0.5
Toggle main menu visibility
Loading...
Searching...
No Matches
test_DualView.cpp
Go to the documentation of this file.
1
#include "gtest/gtest.h"
2
3
#include "
kokkos-utils/concepts/DualView.hpp
"
4
#include "
kokkos-utils/concepts/View.hpp
"
5
6
using
execution_space
= Kokkos::DefaultExecutionSpace;
7
18
19
namespace
Kokkos::utils::tests::concepts
20
{
21
23
TEST
(
concepts
, DualView)
24
{
25
using
Kokkos::utils::concepts::DualView
;
26
using
Kokkos::utils::concepts::View
;
27
28
using
dual_view_1d_t = Kokkos::DualView<int[5] , execution_space>;
29
using
view_1d_t = Kokkos:: View<int[5] , execution_space>;
30
using
dual_view_2d_t = Kokkos::DualView<int[5][5], execution_space>;
31
using
view_2d_t = Kokkos:: View<int[5][5], execution_space>;
32
34
static_assert
(DualView<dual_view_1d_t>);
35
static_assert
(DualView<dual_view_2d_t>);
36
38
static_assert
(! DualView<view_1d_t>);
39
static_assert
(! DualView<view_2d_t>);
40
42
static_assert
(! View<dual_view_1d_t>);
43
static_assert
(! View<dual_view_2d_t>);
44
}
45
46
}
// namespace Kokkos::utils::tests::concepts
DualView.hpp
Kokkos::utils::concepts::DualView
Specify that a type is a Kokkos::DualView.
Definition
DualView.hpp:11
Kokkos::utils::concepts::View
Specify that a type is a Kokkos::View.
Definition
View.hpp:15
View.hpp
Kokkos::utils::tests::concepts
Definition
test_DualView.cpp:20
Kokkos::utils::tests::concepts::TEST
TEST(concepts, DualView)
Definition
test_DualView.cpp:23
execution_space
Kokkos::DefaultExecutionSpace execution_space
Definition
test_InsertOp.cpp:8
tests
concepts
test_DualView.cpp
Generated on
for kokkos-utils by
1.18.0