Skip to content

[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

Merged

Conversation

s-kanaev
Copy link
Contributor

No description provided.

@s-kanaev s-kanaev requested a review from a team as a code owner October 23, 2020 12:40
@s-kanaev
Copy link
Contributor Author

/summary:run

@s-kanaev
Copy link
Contributor Author

Going to add an enhancement.

@s-kanaev s-kanaev changed the title [SYCL] Don't perform early free of native kernel command [SYCL] Don't perform early free of native kernel command group Oct 23, 2020
Signed-off-by: Sergey Kanaev <[email protected]>
@s-kanaev
Copy link
Contributor Author

/summary:run

Signed-off-by: Sergey Kanaev <[email protected]>
@s-kanaev
Copy link
Contributor Author

/summary:run

cperkinsintel
cperkinsintel previously approved these changes Oct 23, 2020
Signed-off-by: Sergey Kanaev <[email protected]>
@s-kanaev s-kanaev force-pushed the private/s-kanaev/wa-early-free-native-kernel branch from 7f5299e to 5750828 Compare October 23, 2020 16:21
cperkinsintel
cperkinsintel previously approved these changes Oct 23, 2020
@@ -1724,12 +1724,18 @@ pi_result ExecCGCommand::SetKernelParamsAndLaunch(
void DispatchNativeKernel(void *Blob) {
Copy link
Contributor

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;
Copy link
Contributor

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.

@s-kanaev
Copy link
Contributor Author

/summary:run

Sergey Kanaev added 2 commits October 26, 2020 14:11
Signed-off-by: Sergey Kanaev <[email protected]>
Signed-off-by: Sergey Kanaev <[email protected]>
Signed-off-by: Sergey Kanaev <[email protected]>
@s-kanaev
Copy link
Contributor Author

/summary:run

@pvchupin pvchupin merged commit ded227d into intel:sycl Oct 26, 2020
@pvchupin
Copy link
Contributor

@s-kanaev, please follow up separately on comments not addressed within this change.

kbenzie pushed a commit to kbenzie/intel-llvm that referenced this pull request Feb 17, 2025
[CI][Bench] Use GPU mask to match the CPU mask
Chenyang-L pushed a commit that referenced this pull request Feb 18, 2025
[CI][Bench] Use GPU mask to match the CPU mask
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.

5 participants