Skip to content

Commit 3a089a6

Browse files
[SYCL] Remove duplicated calls for event returned from handler::finalize (#19263)
Since 0a27e3f for an event returned from handler::finalize() called event_impl::create_device_event() instead of create_completed_host_event(). As identified @slawekptak, after this there is no need for setQueue() and setContextImpl() calls, as the ctor did the work already.
1 parent 45d74fe commit 3a089a6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

sycl/source/handler.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -628,9 +628,7 @@ event handler::finalize() {
628628
EnqueueKernel();
629629
} else {
630630
detail::queue_impl &Queue = impl->get_queue();
631-
ResultEvent->setQueue(Queue);
632631
ResultEvent->setWorkerQueue(Queue.weak_from_this());
633-
ResultEvent->setContextImpl(impl->get_context());
634632
ResultEvent->setStateIncomplete();
635633
ResultEvent->setSubmissionTime();
636634

0 commit comments

Comments
 (0)