Skip to content
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][NATIVECPU] Move pipeline creation to CodeGen #12854

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

PietroGhg
Copy link
Contributor

Fixes post commit failure from #12659.

@PietroGhg PietroGhg requested review from a team as code owners February 28, 2024 14:01
@bader bader changed the title [SYCL][NATIVECPU]Move pipeline creation to codegen [SYCL][NATIVECPU] Move pipeline creation to CodeGen Feb 28, 2024
Copy link
Contributor

@elizabethandrews elizabethandrews left a comment

Choose a reason for hiding this comment

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

I am not familiar with the functionality being modified in this PR. I defer to other reviewers for their expertise.

@@ -1087,6 +1087,10 @@ void EmitAssemblyHelper::RunOptimizationPipeline(

if (SYCLNativeCPUBackend) {
llvm::sycl::utils::addSYCLNativeCPUBackendPasses(MPM, MAM, Level);
// Run optimization passes after all the changes we made to the kernels.
// Todo: maybe we could find a set of relevant passes instead of re-running
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: TODO s are usually capitalized.

Copy link
Contributor

@uwedolinsky uwedolinsky left a comment

Choose a reason for hiding this comment

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

Left a suggestion to improve a comment, but this should not hold up this PR.

// Run optimization passes after all the changes we made to the kernels.
// Todo: maybe we could find a set of relevant passes instead of re-running
// the full optimization pipeline.
MPM.addPass(PB.buildPerModuleDefaultPipeline(Level));
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor (Does not block the PR): It could perhaps be helpful to mention in the comment that the invocation of the pipeline had to be moved into core clang because in the original place in SYCLLowerIR it introduces a circular dependency that causes problems when building as shared library.

@aelovikov-intel aelovikov-intel merged commit 77c12c0 into intel:sycl Feb 28, 2024
11 of 12 checks passed
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