kokkos-execution 0.0.1
Loading...
Searching...
No Matches
event.hpp File Reference
#include <concepts>
#include <optional>
#include "Kokkos_Core.hpp"

Go to the source code of this file.

Classes

struct  Kokkos::Execution::Impl::HasNonBlockingDispatch< Exec >
 Determine if the Kokkos backend has non-blocking dispatch. More...
struct  Kokkos::Execution::Impl::RecordEvent
 Event to be sent to Kokkos::utils::callbacks::dispatch when calling record. More...
struct  Kokkos::Execution::Impl::WaitEvent
 Event to be sent to Kokkos::utils::callbacks::dispatch when calling wait. More...
struct  Kokkos::Execution::Impl::Event< Exec >
 An event that can be recorded on an execution space instance. More...

Namespaces

namespace  Kokkos
namespace  Kokkos::Execution
namespace  Kokkos::Execution::Impl

Concepts

concept  Kokkos::Execution::Impl::event
 Constrain an EventType type to be a valid event type for Exec execution space type.
concept  Kokkos::Execution::Impl::has_non_blocking_dispatch

Typedefs

template<Kokkos::ExecutionSpace Exec>
using Kokkos::Execution::Impl::event_storage_t = std::optional<Event<Exec>>

Functions

template<Kokkos::ExecutionSpace Exec>
void Kokkos::Execution::Impl::record_event (const Exec &exec, uint64_t &event_id)
template<Kokkos::ExecutionSpace Exec>
void Kokkos::Execution::Impl::wait_event (const Event< Exec > &event)
template<Kokkos::ExecutionSpace ExecTo, Kokkos::ExecutionSpace ExecFrom>
void Kokkos::Execution::Impl::wait_event (const ExecTo &exec, const Event< ExecFrom > &event)
template<Kokkos::ExecutionSpace Exec>
void Kokkos::Execution::Impl::record (Event< Exec > &event, const Exec &exec)
 Record event on exec.
template<Kokkos::ExecutionSpace Exec>
void Kokkos::Execution::Impl::wait (const Event< Exec > &event)
 Wait for event to complete.
template<Kokkos::ExecutionSpace ExecFrom, Kokkos::ExecutionSpace ExecTo>
void Kokkos::Execution::Impl::impl_wait (const ExecTo &, const Event< ExecFrom > &event)
template<Kokkos::ExecutionSpace ExecFrom, Kokkos::ExecutionSpace ExecTo>
void Kokkos::Execution::Impl::wait (const ExecTo &exec, const Event< ExecFrom > &event)
 The operations enqueued from the calling thread into exec cannot start before the event event completes.

Variables

static constexpr auto Kokkos::Execution::Impl::invalid_dev_id = Kokkos::Experimental::finite_max_v<uint32_t>
static constexpr auto Kokkos::Execution::Impl::invalid_event_id = Kokkos::Experimental::finite_max_v<uint64_t>

Detailed Description

Backends that support an event-like API specialize Kokkos::Execution::Impl::Event for their execution space type. The specialization must satisfy the Kokkos::Execution::Impl::event concept.

Definition in file event.hpp.