kokkos-utils
0.0.7
Toggle main menu visibility
Loading...
Searching...
No Matches
test_Space.cpp
Go to the documentation of this file.
1
#include "gtest/gtest.h"
2
3
#include "Kokkos_Macros.hpp"
4
#ifdef KOKKOS_ENABLE_EXPERIMENTAL_CXX20_MODULES
5
import
kokkos.core;
6
#else
7
#include "Kokkos_Core.hpp"
8
#endif
9
10
#include "
kokkos-utils/concepts/Space.hpp
"
11
12
using
execution_space
= Kokkos::DefaultExecutionSpace;
13
24
25
namespace
Kokkos::utils::tests::concepts
26
{
27
29
TEST
(
concepts
, Space)
30
{
31
using
Kokkos::utils::concepts::Space
;
32
33
static_assert
(Space<typename execution_space::execution_space>);
34
static_assert
(Space<typename execution_space::memory_space>);
35
static_assert
(Space<Kokkos::Device<typename execution_space::execution_space, typename execution_space::memory_space>>);
36
}
37
38
}
// namespace Kokkos::utils::tests::concepts
Space.hpp
Kokkos::utils::concepts::Space
Specify that a type is a Kokkos space.
Definition
Space.hpp:11
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:13
tests
concepts
test_Space.cpp
Generated on
for kokkos-utils by
1.18.0