Skip to content

Commit 77e083c

Browse files
More polishing
1 parent 07264d4 commit 77e083c

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

sycl/source/detail/event_impl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ void event_impl::setHandle(const ur_event_handle_t &UREvent) {
142142

143143
context_impl &event_impl::getContextImpl() {
144144
initContextIfNeeded();
145+
assert(MContext && "Trying to get context from a host event!");
145146
return *MContext;
146147
}
147148

sycl/source/detail/kernel_impl.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ class kernel_impl {
233233
bool isInterop() const { return MIsInterop; }
234234

235235
ur_program_handle_t getProgramRef() const { return MProgram; }
236-
ContextImplPtr getContextImplPtr() const { return MContext; }
237236
context_impl &getContextImpl() const { return *MContext; }
238237

239238
std::mutex &getNoncacheableEnqueueMutex() const {

0 commit comments

Comments
 (0)