DPC++ Runtime
Runtime libraries for oneAPI DPC++
device_event.hpp
Go to the documentation of this file.
1 //==----------- device_event.hpp --- SYCL device event ---------------------==//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #pragma once
10 
11 #include <CL/__spirv/spirv_ops.hpp>
13 
14 namespace sycl {
15 inline namespace _V1 {
16 
22 class device_event {
23 private:
24  __ocl_event_t m_Event;
25 
26 public:
27  device_event(const device_event &rhs) = default;
28  device_event(device_event &&rhs) = default;
29  device_event &operator=(const device_event &rhs) = default;
30  device_event &operator=(device_event &&rhs) = default;
31 
32  device_event(__ocl_event_t Event) : m_Event(Event) {}
33 
35 };
36 
37 } // namespace _V1
38 } // namespace sycl
Encapsulates a single SYCL device event which is available only within SYCL kernel functions and can ...
device_event(__ocl_event_t Event)
device_event(device_event &&rhs)=default
device_event & operator=(device_event &&rhs)=default
device_event & operator=(const device_event &rhs)=default
device_event(const device_event &rhs)=default
Definition: access.hpp:18
__SYCL_CONVERGENT__ __DPCPP_SYCL_EXTERNAL void __spirv_GroupWaitEvents(__spv::Scope Execution, uint32_t NumEvents, __ocl_event_t *WaitEvents) noexcept
Definition: spirv_ops.cpp:18
void * __ocl_event_t