Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sycl/source/detail/event_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ event_impl::event_impl(RT::PiEvent Event, const context &SyclContext)
getPlugin().call<PiApiKind::piEventRetain>(MEvent);
}

event_impl::event_impl(QueueImplPtr Queue) : MQueue(Queue) {
event_impl::event_impl(QueueImplPtr Queue) {
if (Queue->is_host()) {
MState.store(HES_NotComplete);

Expand Down Expand Up @@ -217,9 +217,9 @@ void event_impl::wait_and_throw(
if (Cmd)
Cmd->getQueue()->throw_asynchronous();
}
QueueImplPtr Queue = MQueue.lock();
if (Queue)
Queue->throw_asynchronous();
Command *Cmd = (Command *)getCommand();
if (Cmd)
Cmd->getQueue()->throw_asynchronous();
}

template <>
Expand Down
2 changes: 0 additions & 2 deletions sycl/source/detail/event_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ class context_impl;
using ContextImplPtr = std::shared_ptr<cl::sycl::detail::context_impl>;
class queue_impl;
using QueueImplPtr = std::shared_ptr<cl::sycl::detail::queue_impl>;
using QueueImplWPtr = std::weak_ptr<cl::sycl::detail::queue_impl>;

class event_impl {
public:
Expand Down Expand Up @@ -166,7 +165,6 @@ class event_impl {

RT::PiEvent MEvent = nullptr;
ContextImplPtr MContext;
QueueImplWPtr MQueue;
bool MOpenCLInterop = false;
bool MHostEvent = true;
std::unique_ptr<HostProfilingInfo> MHostProfilingInfo;
Expand Down