Skip to content

Adopt pipeline-in-a-pass infra - #3741

Merged
GMNGeoffrey merged 4 commits into
iree-org:mainfrom
GMNGeoffrey:pipeline-in-pass
Nov 6, 2020
Merged

GMNGeoffrey merged 4 commits into
iree-org:mainfrom
GMNGeoffrey:pipeline-in-pass

Conversation

@GMNGeoffrey

@GMNGeoffrey GMNGeoffrey commented Nov 6, 2020 •

Copy link
Copy Markdown
Member

This avoids needing to register all dialects that a TargetBackend
transformation will create because we can now create the pipeline early
and query that for its dependent dialects.

Now TargetBackends are resposible only for declaring the dialects they
create entities from in declareTargetOps, which is a localized thing.

It also nicely propagates pass manager options and gives us parallelism
at the ExecutableTarget level.

Resolves #1036

This avoids needing to register all dialects that a TargetBackend
transformation will create because we can now create the pipeline early
and query that for its dependent dialects.

Now TargetBackends are resposible only for declaring the dialects they
create entities from in declareTargetOps, which is a localized thing.

Resolves iree-org#1036
@GMNGeoffrey

Copy link
Copy Markdown
Member Author

Ben, it's not totally clear to me that the current infra fulfills your concept of what a "dynamic pass pipeline" would mean here, but I think this is what we're going to get from upstream unless we can better clarify what we're looking for. What, if anything, do you think is still unfulfilled by this approach?

@benvanik benvanik left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think this is what we wanted! I think mehdi/river said runPipeline does nice nesting and reuses pass manager options. If we now can get a reproducer spit out from iree-opt if there's an error in a backend pass then I think that fully closes all the related issues!

@GMNGeoffrey
GMNGeoffrey requested a review from benvanik November 6, 2020 19:31

@silvasean silvasean left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is exactly how I imagined that we would use it!

LGTM, but leaving it to Ben to finalize the detailed review.

@GMNGeoffrey
GMNGeoffrey merged commit aaf3377 into iree-org:main Nov 6, 2020
@GMNGeoffrey
GMNGeoffrey deleted the pipeline-in-pass branch November 6, 2020 22:17
@ScottTodd ScottTodd mentioned this pull request Nov 9, 2020
copybara-service Bot pushed a commit that referenced this pull request Nov 9, 2020
* 1ba69d9 Deduplicate flow.executable ops during Flow dialect transformation. (#3702)
* 848b893 Seperate tensorflow coverage into multiple pages (#3758)
* be8dd02 Merge pull request #3760 from google/benvanik-aot-windows-prework
* 6d83db8 Adding support for embedding debug symbols (pdb/dwarf/etc) in dylibs.
* 8a1347f Bumping tracy to disable vsync capture and expose the dbghelp lock.
* 4dc7064 Improving error messages in iree-run-module with invalid function names.
* 4d7805b Optimizations to reduce dispatch overhead. All of these will be fixed with the..
* d57efa3 Making IREE_CHECK_OK not double-evaluate. Prior to this it would run the expre..
* 10b400e Canonicalizing win32 paths prior to trying to open files. Useful in cases wher..
* f9c11f2 [spirv] Use addNestedPass<FuncOp>() for passes working on functions (#3745)
* ab4cb7c Add static, dynamic and training tests for all tf.keras.layers (#3753)
* aaf3377 Adopt pipeline-in-a-pass infra (#3741)
* 43b1d76 Create template for Bug Reports (#3755)
* d264a16 Remove unused deps from kws test (#3751)
* 0601682 Add 'deep_copy' to bazel to allow variable reuse (#3750)
* a70b1d1 Merge google -> main (#3749)

COPYBARA_INTEGRATE_REVIEW=#3762 from ScottTodd:main-to-google 1ba69d9
PiperOrigin-RevId: 341484363
ScottTodd added a commit that referenced this pull request Nov 9, 2020
* 1ba69d9 Deduplicate flow.executable ops during Flow dialect transformation. (#3702)
* 848b893 Seperate tensorflow coverage into multiple pages (#3758)
* be8dd02 Merge pull request #3760 from google/benvanik-aot-windows-prework
* 6d83db8 Adding support for embedding debug symbols (pdb/dwarf/etc) in dylibs.
* 8a1347f Bumping tracy to disable vsync capture and expose the dbghelp lock.
* 4dc7064 Improving error messages in iree-run-module with invalid function names.
* 4d7805b Optimizations to reduce dispatch overhead. All of these will be fixed with the..
* d57efa3 Making IREE_CHECK_OK not double-evaluate. Prior to this it would run the expre..
* 10b400e Canonicalizing win32 paths prior to trying to open files. Useful in cases wher..
* f9c11f2 [spirv] Use addNestedPass<FuncOp>() for passes working on functions (#3745)
* ab4cb7c Add static, dynamic and training tests for all tf.keras.layers (#3753)
* aaf3377 Adopt pipeline-in-a-pass infra (#3741)
* 43b1d76 Create template for Bug Reports (#3755)
* d264a16 Remove unused deps from kws test (#3751)
* 0601682 Add 'deep_copy' to bazel to allow variable reuse (#3750)
* a70b1d1 Merge google -> main (#3749)

COPYBARA_INTEGRATE_REVIEW=#3762 from ScottTodd:main-to-google 1ba69d9
PiperOrigin-RevId: 341484363
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.

Remove usage of nested PassManager from the compiler

3 participants