Skip to content

[SYCL] Fix scheduler unit test: EnqueueNoMemObjDoubleKernelDepHostBlo… #7793

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

KseniyaTikhomirova
Copy link
Contributor

…cked

Signed-off-by: Tikhomirova, Kseniya [email protected]

Comment on lines +230 to +231
detail::Command *Cmd1 =
AddTaskCG(TestCGType::HOST_TASK, Events, &CustomHostLambda);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do I get it right that the main purpose of CustomHostLambda is to prevent tests from running in parallel?

Copy link
Contributor Author

@KseniyaTikhomirova KseniyaTikhomirova Dec 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, it is used to block host task from its completion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

host task should block dependent kernels till its completion, I need to hold host task to check it. I do it with mutex I lock before host task submission and unlock after some intermediate checks. Than I wait till host task completion and check that kernels were enqueued.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@againull againull self-requested a review December 16, 2022 17:27
@againull againull merged commit ea44995 into intel:sycl Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants