-
Notifications
You must be signed in to change notification settings - Fork 797
[SYCL] Don't perform early free of native kernel command group #2674
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
[SYCL] Don't perform early free of native kernel command group #2674
Conversation
Signed-off-by: Sergey Kanaev <[email protected]>
/summary:run |
Going to add an enhancement. |
Signed-off-by: Sergey Kanaev <[email protected]>
Signed-off-by: Sergey Kanaev <[email protected]>
/summary:run |
Signed-off-by: Sergey Kanaev <[email protected]>
/summary:run |
Signed-off-by: Sergey Kanaev <[email protected]>
7f5299e
to
5750828
Compare
@@ -1724,12 +1724,18 @@ pi_result ExecCGCommand::SetKernelParamsAndLaunch( | |||
void DispatchNativeKernel(void *Blob) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By looking at the code I wonder why Blob
could not be more carefully typed at the first place instead of all this ******
spaghetti code that gives mitigated trust in the code... :-/
@@ -70,6 +70,7 @@ EventImplPtr Scheduler::addCG(std::unique_ptr<detail::CG> CommandGroup, | |||
QueueImplPtr Queue) { | |||
EventImplPtr NewEvent = nullptr; | |||
const bool IsKernel = CommandGroup->getType() == CG::KERNEL; | |||
const bool IsHostKernel = CommandGroup->getType() == CG::RUN_ON_HOST_INTEL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like some std::variant
here when C++17 lands instead of all this manual pattern matching.
/summary:run |
Signed-off-by: Sergey Kanaev <[email protected]>
Signed-off-by: Sergey Kanaev <[email protected]>
Signed-off-by: Sergey Kanaev <[email protected]>
/summary:run |
@s-kanaev, please follow up separately on comments not addressed within this change. |
[CI][Bench] Use GPU mask to match the CPU mask
[CI][Bench] Use GPU mask to match the CPU mask
No description provided.