Skip to content

Commit 0e9d697

Browse files
[SYCL] Remove redundant check if Kernel is on host (#17376)
This is shortcut path for Kernel CG only. It handles only device kernels that means that there is no necessity to check if event is a host event. I also do not see necessity to check if Handle != nullptr since there is a separated path for discarded event case. That means that in path for kernel + no discarding events this check is not necessary at all. Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova@intel.com>
1 parent 7ad1203 commit 0e9d697

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
@@ -543,8 +543,6 @@ event handler::finalize() {
543543
NewEvent->setSubmissionTime();
544544

545545
EnqueueKernel();
546-
if (NewEvent->isHost() || NewEvent->getHandle() == nullptr)
547-
NewEvent->setComplete();
548546
NewEvent->setEnqueued();
549547

550548
MLastEvent = detail::createSyclObjFromImpl<event>(NewEvent);

0 commit comments

Comments
 (0)