kokkos-utils 0.0.1
 
Loading...
Searching...
No Matches
test_ExecutionSpace.cpp
Go to the documentation of this file.
1#include "gtest/gtest.h"
2
3#include "Kokkos_Core.hpp"
4
6
7using execution_space = Kokkos::DefaultExecutionSpace;
8
19
21{
22
24TEST(concepts, ExecutionSpace)
25{
27
28 static_assert( ExecutionSpace<typename execution_space::execution_space>);
29 static_assert(! ExecutionSpace<typename execution_space::memory_space>);
30 static_assert(! ExecutionSpace<Kokkos::Device<typename execution_space::execution_space, typename execution_space::memory_space>>);
31}
32
33} // namespace Kokkos::utils::tests::concepts
Specify that a type is a Kokkos execution space.
Kokkos::DefaultExecutionSpace execution_space