We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07264d4 commit 77e083cCopy full SHA for 77e083c
sycl/source/detail/event_impl.cpp
@@ -142,6 +142,7 @@ void event_impl::setHandle(const ur_event_handle_t &UREvent) {
142
143
context_impl &event_impl::getContextImpl() {
144
initContextIfNeeded();
145
+ assert(MContext && "Trying to get context from a host event!");
146
return *MContext;
147
}
148
sycl/source/detail/kernel_impl.hpp
@@ -233,7 +233,6 @@ class kernel_impl {
233
bool isInterop() const { return MIsInterop; }
234
235
ur_program_handle_t getProgramRef() const { return MProgram; }
236
- ContextImplPtr getContextImplPtr() const { return MContext; }
237
context_impl &getContextImpl() const { return *MContext; }
238
239
std::mutex &getNoncacheableEnqueueMutex() const {
0 commit comments