28 template <backend BackendName,
class SyclObjectT>
30 -> backend_return_t<BackendName, SyclObjectT>;
53 #ifdef __SYCL_INTERNAL_API
73 "is_host() is deprecated as the host device is no longer supported.")
90 static
void wait(const
std::vector<
event> &EventList);
97 void wait_and_throw();
106 static
void wait_and_throw(const
std::vector<
event> &EventList);
111 template <typename Param>
112 typename detail::is_event_info_desc<Param>::return_type get_info() const;
125 template <typename Param>
126 typename detail::is_event_profiling_info_desc<Param>::return_type
127 get_profiling_info() const;
132 backend get_backend() const noexcept;
135 event(
std::shared_ptr<detail::event_impl> EventImpl);
141 std::shared_ptr<detail::event_impl> impl;
144 friend decltype(Obj::impl) detail::
getSyclObjImpl(const Obj &SyclObject);
149 template <
backend BackendName, class SyclObjectT>
150 friend auto
get_native(const SyclObjectT &Obj)
158 template <>
struct hash<
sycl::event> {
160 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
#define __SYCL_INLINE_VER_NAMESPACE(X)
decltype(Obj::impl) getSyclObjImpl(const Obj &SyclObject)
T createSyclObjFromImpl(decltype(T::impl) ImplObj)
constexpr std::enable_if_t< detail::IsCompileTimeProperty< PropertyT >::value, bool > operator!=(const property_value< PropertyT, A... > &, const property_value< PropertyT, B... > &)
auto get_native(const SyclObjectT &Obj) -> backend_return_t< BackendName, SyclObjectT >
typename backend_traits< Backend >::template return_type< SyclType > backend_return_t
---— Error handling, matching OpenCL plugin semantics.
uintptr_t pi_native_handle
size_t operator()(const sycl::event &e) const
bool operator==(const Slab &Lhs, const Slab &Rhs)