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
5
6#include "Kokkos_Core.hpp"
7
9
10template <char ID>
11struct 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
void operator()(Args...) const noexcept
Definition labeled.hpp:13