kokkos-execution 0.0.1
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
9
10template <typename ViewType>
12 struct Tag { };
13
14 ViewType data;
15
16 template <std::integral 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
void operator()(const Tag, const T) const noexcept