Skip to content

Commit ea44995

Browse files
[SYCL] Fix scheduler unit test: EnqueueNoMemObjDoubleKernelDepHostBlocked (#7793)
Signed-off-by: Tikhomirova, Kseniya <[email protected]>
1 parent 22610c6 commit ea44995

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sycl/unittests/scheduler/EnqueueWithDependsOnDeps.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ TEST_F(DependsOnTests, EnqueueNoMemObjDoubleKernelDepHostBlocked) {
227227
// kernels on host task completion
228228
std::vector<EventImplPtr> Events;
229229

230-
detail::Command *Cmd1 = AddTaskCG(TestCGType::HOST_TASK, Events);
230+
detail::Command *Cmd1 =
231+
AddTaskCG(TestCGType::HOST_TASK, Events, &CustomHostLambda);
231232
EventImplPtr Cmd1Event = Cmd1->getEvent();
232233
Cmd1->MIsBlockable = true;
233234
Cmd1->MEnqueueStatus = detail::EnqueueResultT::SyclEnqueueBlocked;
@@ -269,9 +270,9 @@ TEST_F(DependsOnTests, EnqueueNoMemObjDoubleKernelDepHost) {
269270
// kernels on host task completion
270271
std::vector<EventImplPtr> Events;
271272

272-
detail::Command *Cmd1 = AddTaskCG(TestCGType::HOST_TASK, Events);
273+
detail::Command *Cmd1 =
274+
AddTaskCG(TestCGType::HOST_TASK, Events, &CustomHostLambda);
273275
EventImplPtr Cmd1Event = Cmd1->getEvent();
274-
Cmd1->MEnqueueStatus = detail::EnqueueResultT::SyclEnqueueBlocked;
275276

276277
// Depends on host task
277278
Events.push_back(Cmd1Event);

0 commit comments

Comments
 (0)