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_Macros.hpp"
7#ifdef KOKKOS_ENABLE_EXPERIMENTAL_CXX20_MODULES
8import kokkos.core;
9#else
10# include "Kokkos_Core.hpp"
11#endif
12
13namespace Tests::Utils::Functors {
14
15template <char ID>
16struct 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
void operator()(Args...) const noexcept
Definition labeled.hpp:18