DPC++ Runtime
Runtime libraries for oneAPI Data Parallel C++
cl::sycl::device_event Class Reference

Encapsulates a single SYCL device event which is available only within SYCL kernel functions and can be used to wait for asynchronous operations within a kernel function to complete. More...

#include <CL/sycl/device_event.hpp>

Public Member Functions

 device_event (const device_event &rhs)=default
 
 device_event (device_event &&rhs)=default
 
device_eventoperator= (const device_event &rhs)=default
 
device_eventoperator= (device_event &&rhs)=default
 
 device_event (__ocl_event_t *Event)
 
void wait ()
 

Detailed Description

Encapsulates a single SYCL device event which is available only within SYCL kernel functions and can be used to wait for asynchronous operations within a kernel function to complete.

Definition at line 22 of file device_event.hpp.

Constructor & Destructor Documentation

◆ device_event() [1/3]

cl::sycl::device_event::device_event ( const device_event rhs)
default

◆ device_event() [2/3]

cl::sycl::device_event::device_event ( device_event &&  rhs)
default

◆ device_event() [3/3]

cl::sycl::device_event::device_event ( __ocl_event_t Event)
inline

Definition at line 32 of file device_event.hpp.

Member Function Documentation

◆ operator=() [1/2]

device_event& cl::sycl::device_event::operator= ( const device_event rhs)
default

◆ operator=() [2/2]

device_event& cl::sycl::device_event::operator= ( device_event &&  rhs)
default

◆ wait()

void cl::sycl::device_event::wait ( )
inline

Definition at line 34 of file device_event.hpp.

References __spirv_GroupWaitEvents(), and __spv::Scope::Workgroup.


The documentation for this class was generated from the following file: