1#ifndef KOKKOS_EXECUTION_IMPL_DEPENDENCY_HPP
2#define KOKKOS_EXECUTION_IMPL_DEPENDENCY_HPP
4#include "Kokkos_Core.hpp"
11template <Kokkos::ExecutionSpace Exec>
15template <
typename Exec>
30template <Kokkos::ExecutionSpace ExecTo, Kokkos::ExecutionSpace ExecFrom>
37template <Kokkos::ExecutionSpace Exec>
38requires(!has_exec_wait_event<Exec>)
41 if (exec_from != exec_to) {
47template <Kokkos::ExecutionSpace Exec>
48requires has_exec_wait_event<Exec>
50Dependency<Exec, Exec> {
55 if (exec_from != exec_to) {
64#if defined(KOKKOS_ENABLE_CUDA)
67#if defined(KOKKOS_ENABLE_HIP)
70#if defined(KOKKOS_ENABLE_HPX)
73#if defined(KOKKOS_ENABLE_SYCL)
Constrain an EventType type to be a valid event type for Exec execution space type.
Determine if the Kokkos backend can enqueue a wait for an event into an execution space instance.
void record(Event< Exec > &event, const Exec &exec)
Record event on exec.
void wait(const Event< Exec > &... events)
Wait for events to complete.
consteval std::string_view dispatch_label() noexcept
View the dispatch label as a std::string_view.
Dependency(const Exec &exec_to, const Exec &exec_from)
Dependency(const ExecTo &, const ExecFrom &exec_from)
An event that can be recorded on an execution space instance.