kokkos-utils
0.0.7
Toggle main menu visibility
Loading...
Searching...
No Matches
ExecutionSpace.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_UTILS_TESTS_SCOPED_EXECUTIONSPACE_HPP
2
#define KOKKOS_UTILS_TESTS_SCOPED_EXECUTIONSPACE_HPP
3
4
#include "Kokkos_Macros.hpp"
5
#ifdef KOKKOS_ENABLE_EXPERIMENTAL_CXX20_MODULES
6
import
kokkos.core;
7
#else
8
#include "Kokkos_Core.hpp"
9
#endif
10
11
namespace
Kokkos::utils::tests::scoped
12
{
13
15
template
<Kokkos::ExecutionSpace Exec>
16
struct
[[nodiscard]]
ExecutionSpace
17
{
18
ExecutionSpace
() :
exec
(
Kokkos
::Experimental::partition_space(Exec{}, 1)[0]) {}
19
20
ExecutionSpace
&
operator=
(
const
ExecutionSpace
&) =
delete
;
21
ExecutionSpace
(
const
ExecutionSpace
&) =
delete
;
22
23
Exec
exec
;
24
};
25
26
}
// namespace Kokkos::utils::tests::scoped
27
28
#endif
// KOKKOS_UTILS_TESTS_SCOPED_EXECUTIONSPACE_HPP
Kokkos::utils::tests::scoped
Definition
ExecutionSpace.hpp:12
Kokkos
Definition
InsertOp.hpp:9
Kokkos::utils::tests::scoped::ExecutionSpace::exec
Exec exec
Definition
ExecutionSpace.hpp:23
Kokkos::utils::tests::scoped::ExecutionSpace::ExecutionSpace
ExecutionSpace()
Definition
ExecutionSpace.hpp:18
Kokkos::utils::tests::scoped::ExecutionSpace::operator=
ExecutionSpace & operator=(const ExecutionSpace &)=delete
Kokkos::utils::tests::scoped::ExecutionSpace::ExecutionSpace
ExecutionSpace(const ExecutionSpace &)=delete
include
kokkos-utils
tests
scoped
ExecutionSpace.hpp
Generated on
for kokkos-utils by
1.18.0