kokkos-execution
0.0.1
Toggle main menu visibility
Loading...
Searching...
No Matches
tag_dispatch.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_TAG_DISPATCH_HPP
2
#define KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_TAG_DISPATCH_HPP
3
4
#include <concepts>
5
6
#include "Kokkos_Macros.hpp"
7
8
namespace
Tests::Utils::Functors
{
9
10
template
<
typename
ViewType>
11
struct
TagDispatch
{
12
struct
Tag
{ };
13
14
ViewType
data
;
15
16
template
<std::
int
egral T>
17
KOKKOS_FUNCTION
void
operator()
(
const
Tag
,
const
T)
const
noexcept
{
18
++
data
();
19
}
20
};
21
22
}
// namespace Tests::Utils::Functors
23
24
#endif
// KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_TAG_DISPATCH_HPP
Tests::Utils::Functors
Definition
counter.hpp:6
Tests::Utils::Functors::TagDispatch::Tag
Definition
tag_dispatch.hpp:12
Tests::Utils::Functors::TagDispatch
Definition
tag_dispatch.hpp:11
Tests::Utils::Functors::TagDispatch::data
ViewType data
Definition
tag_dispatch.hpp:14
Tests::Utils::Functors::TagDispatch::operator()
void operator()(const Tag, const T) const noexcept
Definition
tag_dispatch.hpp:17
tests
utils
functors
tag_dispatch.hpp
Generated on
for kokkos-execution by
1.18.0