An event object can be used to synchronize memory transfers, enqueues of kernels and signaling barriers.
More...
#include <sycl/event.hpp>
|
static void | wait (const std::vector< event > &EventList) |
| Synchronously wait on a list of events. More...
|
|
static void | wait_and_throw (const std::vector< event > &EventList) |
| Synchronously wait on a list of events. More...
|
|
An event object can be used to synchronize memory transfers, enqueues of kernels and signaling barriers.
Definition at line 40 of file event.hpp.
◆ event() [1/3]
sycl::_V1::event::event |
( |
| ) |
|
Constructs a ready SYCL event.
If the constructed SYCL event is waited on it will complete immediately.
Definition at line 26 of file event.cpp.
◆ event() [2/3]
sycl::_V1::event::event |
( |
const event & |
rhs | ) |
|
|
default |
Constructs a SYCL event instance from an OpenCL cl_event.
The SyclContext must match the OpenCL context associated with the ClEvent.
- Parameters
-
ClEvent | is a valid instance of OpenCL cl_event. |
SyclContext | is an instance of SYCL context. |
◆ event() [3/3]
sycl::_V1::event::event |
( |
event && |
rhs | ) |
|
|
default |
◆ __SYCL2020_DEPRECATED()
sycl::_V1::event::__SYCL2020_DEPRECATED |
( |
"is_host() is deprecated as the host device is no longer supported." |
| ) |
const |
Checks if this event is a SYCL host event.
- Returns
- true if this event is a SYCL host event.
◆ get_backend()
backend sycl::_V1::event::get_backend |
( |
| ) |
const |
|
noexcept |
◆ get_info()
template<typename Param >
◆ get_profiling_info()
template<typename Param >
Queries this SYCL event for profiling information.
If the requested info is not available when this member function is called due to incompletion of command groups associated with the event, then the call to this member function will block until the requested info is available. If the queue which submitted the command group this event is associated with was not constructed with the property::queue::enable_profiling property, an invalid_object_error SYCL exception is thrown.
- Returns
- depends on template parameter.
Definition at line 83 of file event.cpp.
◆ get_wait_list()
std::vector< event > sycl::_V1::event::get_wait_list |
( |
| ) |
|
Return the list of events that this event waits for.
Only direct dependencies are returned. Already completed events are not included in the returned vector.
- Returns
- a vector of SYCL events.
Definition at line 63 of file event.cpp.
◆ operator!=()
bool sycl::_V1::event::operator!= |
( |
const event & |
rhs | ) |
const |
◆ operator=() [1/2]
event& sycl::_V1::event::operator= |
( |
const event & |
rhs | ) |
|
|
default |
◆ operator=() [2/2]
event& sycl::_V1::event::operator= |
( |
event && |
rhs | ) |
|
|
default |
◆ operator==()
bool sycl::_V1::event::operator== |
( |
const event & |
rhs | ) |
const |
◆ wait() [1/2]
void sycl::_V1::event::wait |
( |
| ) |
|
◆ wait() [2/2]
void sycl::_V1::event::wait |
( |
const std::vector< event > & |
EventList | ) |
|
|
static |
Synchronously wait on a list of events.
- Parameters
-
EventList | is a vector of SYCL events. |
Definition at line 49 of file event.cpp.
◆ wait_and_throw() [1/2]
void sycl::_V1::event::wait_and_throw |
( |
| ) |
|
Wait for the event.
If any uncaught asynchronous errors occurred on the context that the event is waiting on executions from, then call that context's asynchronous error handler with those errors.
Definition at line 55 of file event.cpp.
◆ wait_and_throw() [2/2]
void sycl::_V1::event::wait_and_throw |
( |
const std::vector< event > & |
EventList | ) |
|
|
static |
Synchronously wait on a list of events.
If any uncaught asynchronous errors occurred on the context that the events are waiting on executions from, then call those contexts' asynchronous error handlers with those errors.
- Parameters
-
EventList | is a vector of SYCL events. |
Definition at line 57 of file event.cpp.
◆ detail::createSyclObjFromImpl
◆ get_native
template<backend BackendName, class SyclObjectT >
auto get_native |
( |
const SyclObjectT & |
Obj | ) |
-> backend_return_t< BackendName, SyclObjectT > |
|
friend |
The documentation for this class was generated from the following files: