kokkos-execution
0.0.1
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_Core.hpp"
7
8
namespace
Tests::Utils::Functors
{
9
10
template
<
char
ID>
11
struct
Labeled
{
12
template
<
typename
... Args>
13
KOKKOS_FUNCTION
void
operator()
(Args...) const noexcept {
14
}
15
};
16
18
#define THEN_LABELED(_id_) stdexec::then(Tests::Utils::Functors::Labeled<_id_>{})
19
21
#define THEN_LABELED_PFOR(_exec_, _id_) \
22
Kokkos::Execution::parallel_for(#_id_, Kokkos::RangePolicy<_exec_>(0, 1), Tests::Utils::Functors::Labeled<_id_>{})
23
24
}
// namespace Tests::Utils::Functors
25
26
#endif
// KOKKOS_EXECUTION_TESTS_UTILS_FUNCTORS_LABELED_HPP
stdexec.hpp
Tests::Utils::Functors
Definition
counter.hpp:6
Tests::Utils::Functors::Labeled
Definition
labeled.hpp:11
Tests::Utils::Functors::Labeled::operator()
void operator()(Args...) const noexcept
Definition
labeled.hpp:13
tests
utils
functors
labeled.hpp
Generated on
for kokkos-execution by
1.15.0