1#ifndef KOKKOS_EXECUTION_IMPL_SYCL_EVENT_HPP
2#define KOKKOS_EXECUTION_IMPL_SYCL_EVENT_HPP
4#include "Kokkos_Core.hpp"
19 mutable std::optional<sycl::event>
m_event = std::nullopt;
24 explicit Event(
const Kokkos::SYCL& exec) {
31 :
m_event(std::move(other.m_event))
36 m_event = std::move(other.m_event);
46 void record(
const Kokkos::SYCL& exec) {
47 m_event = exec.sycl_queue().ext_oneapi_submit_barrier();
static constexpr auto invalid_event_id
void record_event(const Exec &exec, uint64_t &event_id)
Event(const Kokkos::Cuda &) -> Event< Kokkos::Cuda >
void wait_event(const uint64_t event_id)
Event & operator=(const Event &)=delete
Event(const Kokkos::SYCL &exec)
void record(const Kokkos::SYCL &exec)
Event(const Event &)=delete
std::optional< sycl::event > m_event
Event & operator=(Event &&other) noexcept
Event(Event &&other) noexcept
An event that can be recorded on an execution space instance.
Determine if events are supported.