kokkos-execution
0.0.1
Toggle main menu visibility
Loading...
Searching...
No Matches
labeled.hpp
Go to the documentation of this file.
1
#ifndef KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_LABELED_HPP
2
#define KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_LABELED_HPP
3
4
#include "
kokkos-execution/stdexec.hpp
"
5
6
#include "Kokkos_Macros.hpp"
7
#ifdef KOKKOS_ENABLE_EXPERIMENTAL_CXX20_MODULES
8
import
kokkos.core;
9
#else
10
# include "Kokkos_Core.hpp"
11
#endif
12
13
namespace
Tests::Utils::Functors
{
14
15
template
<
char
ID>
16
struct
Labeled
{
17
template
<
typename
... Args>
18
KOKKOS_FUNCTION
void
operator()
(Args...) const noexcept {
19
}
20
};
21
23
#define THEN_LABELED(_id_) stdexec::then(Tests::Utils::Functors::Labeled<_id_>{})
24
26
#define THEN_LABELED_PFOR(_exec_, _id_) \
27
Kokkos::Execution::parallel_for(#_id_, Kokkos::RangePolicy<_exec_>(0, 1), Tests::Utils::Functors::Labeled<_id_>{})
28
29
}
// namespace Tests::Utils::Functors
30
31
#endif
// KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_LABELED_HPP
stdexec.hpp
Tests::Utils::Functors
Definition
counter.hpp:11
Tests::Utils::Functors::Labeled
Definition
labeled.hpp:16
Tests::Utils::Functors::Labeled::operator()
void operator()(Args...) const noexcept
Definition
labeled.hpp:18
tests
utils
functors
labeled.hpp
Generated on
for kokkos-execution by
1.18.0