18 #ifdef __SYCL_INTERNAL_API
28 inline namespace _V1 {
32 template <backend BackendName,
class SyclObjectT>
34 -> backend_return_t<BackendName, SyclObjectT>;
57 #ifdef __SYCL_INTERNAL_API
69 bool operator==(
const event &rhs)
const;
71 bool operator!=(
const event &rhs)
const;
77 "is_host() is deprecated as the host device is no longer supported.")
94 static
void wait(const
std::vector<
event> &EventList);
115 template <typename Param>
116 typename detail::is_event_info_desc<Param>::return_type get_info() const;
121 template <typename Param>
122 typename detail::is_backend_info_desc<Param>::return_type
123 get_backend_info() const;
136 template <typename Param>
137 typename detail::is_event_profiling_info_desc<Param>::return_type
138 get_profiling_info() const;
146 event(
std::shared_ptr<detail::event_impl> EventImpl);
152 std::shared_ptr<detail::event_impl> impl;
155 friend decltype(Obj::impl) detail::
getSyclObjImpl(const Obj &SyclObject);
160 template <
backend BackendName, class SyclObjectT>
161 friend auto
get_native(const SyclObjectT &Obj)
169 template <>
struct hash<
sycl::event> {
171 return hash<std::shared_ptr<sycl::detail::event_impl>>()(
The context class represents a SYCL context on which kernel functions may be executed.
An event object can be used to synchronize memory transfers, enqueues of kernels and signaling barrie...
event & operator=(event &&rhs)=default
__SYCL2020_DEPRECATED("is_host() is deprecated as the host device is no longer supported.") bool is_host() const
Checks if this event is a SYCL host event.
event(const event &rhs)=default
Constructs a SYCL event instance from an OpenCL cl_event.
event(event &&rhs)=default
event & operator=(const event &rhs)=default
decltype(Obj::impl) getSyclObjImpl(const Obj &SyclObject)
T createSyclObjFromImpl(decltype(T::impl) ImplObj)
auto get_native(const SyclObjectT &Obj) -> backend_return_t< BackendName, SyclObjectT >
typename backend_traits< Backend >::template return_type< SyclType > backend_return_t
static void wait_and_throw(sycl::queue q=get_default_queue())
uintptr_t pi_native_handle
_Abi const simd< _Tp, _Abi > & noexcept
size_t operator()(const sycl::event &e) const