kokkos-execution
0.0.1
Toggle main menu visibility
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
6
import
kokkos.core;
7
import
kokkos.graph;
8
#else
9
# include "Kokkos_Graph_fwd.hpp"
10
# include "impl/Kokkos_DeviceHandle.hpp"
11
#endif
12
13
#include "
kokkos-execution/graph/graph_fwd.hpp
"
14
15
#include "
tests/utils/context.hpp
"
16
17
namespace
Tests::Utils
{
18
19
template
<Kokkos::ExecutionSpace Exec>
20
struct
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
24
device_handle_t
device_handle
{this->
exec
};
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
context.hpp
graph_fwd.hpp
Tests::Utils
Definition
test_sync_wait.cpp:20
Kokkos::utils::tests::scoped::ExecutionSpace< Exec >::exec
Exec exec
Tests::Utils::ContextTest
Definition
context.hpp:31
Tests::Utils::GraphContextTest
Definition
graph_context.hpp:20
Tests::Utils::GraphContextTest::graph_t
Kokkos::Experimental::Graph< Exec > graph_t
Definition
graph_context.hpp:22
Tests::Utils::GraphContextTest::device_handle_t
Kokkos::Impl::DeviceHandle< Exec > device_handle_t
Definition
graph_context.hpp:21
Tests::Utils::GraphContextTest::device_handle
device_handle_t device_handle
Definition
graph_context.hpp:24
tests
utils
graph_context.hpp
Generated on
for kokkos-execution by
1.18.0