Skip to main content

class sycl_event

Declaration

class sycl_event : public async_event_impl { /* full declaration omitted */ };

Description

Abstract base class for async_event implementations.

Inherits from: async_event_impl

Member Variables

std::optional<sycl::event> m_first
sycl::event m_last

Member Function Overview

Inherited from async_event_impl:

Member Functions

std::optional<std::chrono::nanoseconds>
get_native_execution_time()

Description

Returns the time execution time as measured if profiling was enabled in the issuing component. Requires is_complete() to be true.


bool is_complete()

Description

If this function returns true once, the implementation must guarantee that it will always do so in the future. The event is expected to be cheap to poll repeatedly, and the operation must proceed in the background even while not being polled.


sycl_event()


sycl_event(sycl::event last,
           bool enable_profiling)

Parameters

sycl::event last
bool enable_profiling

sycl_event(std::optional<sycl::event> first,
           sycl::event last)

Parameters

std::optional<sycl::event> first
sycl::event last