kokkos-execution 0.0.1
Loading...
Searching...
No Matches
graph_context.hpp
Go to the documentation of this file.
1#ifndef KOKKOS_EXECUTION_TESTS_UTILS_GRAPH_CONTEXT_HPP
2#define KOKKOS_EXECUTION_TESTS_UTILS_GRAPH_CONTEXT_HPP
3
4#include "Kokkos_Macros.hpp"
5#ifdef KOKKOS_ENABLE_EXPERIMENTAL_CXX20_MODULES
6import kokkos.core;
7import kokkos.graph;
8#else
9# include "Kokkos_Graph_fwd.hpp"
10# include "impl/Kokkos_DeviceHandle.hpp"
11#endif
12
14
16
17namespace Tests::Utils {
18
19template <Kokkos::ExecutionSpace Exec>
20struct GraphContextTest : public ContextTest<Kokkos::Execution::GraphContext, Exec> {
21 using device_handle_t = Kokkos::Impl::DeviceHandle<Exec>;
22 using graph_t = Kokkos::Experimental::Graph<Exec>;
23
25};
26 // NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
32#define KOKKOS_EXECUTION_TEST_UTILS_GRAPH_FENCE(_exec_) _exec_.fence("waiting for the data to be ready")
33
34} // namespace Tests::Utils
35
36#endif // KOKKOS_EXECUTION_TESTS_UTILS_GRAPH_CONTEXT_HPP
Kokkos::Experimental::Graph< Exec > graph_t
Kokkos::Impl::DeviceHandle< Exec > device_handle_t