Skip to content

[Cleanup] Delete Linalg on buffers pipeline - #5584

Merged
hanhanW merged 5 commits into
iree-org:mainfrom
hanhanW:cleanup
Apr 23, 2021
Merged

hanhanW merged 5 commits into
iree-org:mainfrom
hanhanW:cleanup

Conversation

@hanhanW

@hanhanW hanhanW commented Apr 23, 2021 •

Copy link
Copy Markdown
Contributor

There are four commits in the PR:

  1. Delete clEnableLinalgOnTensorsDispatch option in Flow dialect
  2. Make SPIR-V usingLinalgOnTensors true by default
  3. Delete Linalg on tensors/buffers option for LLVM backend
  4. Delete Linalg on buffers pass

The option for Linalg on tensors/buffers for SPIR-V path is not deleted because some lit tests relied on it.

note: this also cleans up some deps.

@hanhanW

hanhanW commented Apr 23, 2021

Copy link
Copy Markdown
Contributor Author

I'd suggest to review through three commits individually.

hanhanW added 2 commits April 23, 2021 02:55
The PR fixes smoektest.mlir for MetalSPIRV and removes the flag for
VulkanSPIRV.

@antiagainst antiagainst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hooray! LGTM. But please wait for @MaheshRavishankar's approval.

@MaheshRavishankar MaheshRavishankar 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.

Great! That cleans up a lot of stuff. SOme of the individual passes can be removed as well. Will do so.

srcs = [
"HLOToLinalgOnBuffers.cpp",
"Passes.cpp",
"ResolveShapeOps.cpp",

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.

Interesting! I think ResolveShapeOps.cpp can go too, but it is used for now, but probably not needed. Not needed to be resolved here, just a note for (my) future reference.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried to remove it, but it's used for old lit tests. I plan to delete it later.
And it also broke regressiondynamic_add.mlir, but I did not dig into it.

// which will break VMLA backend.
passManager.addNestedPass<FuncOp>(createDecomposeHLOClampPass());
}
// TODO(ataei): This should run as part of createHLOToHLOPreprocessingPass

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.

Does this not break VMLA backend?

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.

It use to, not all HLO ops here has VMLA equivalent

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No it does not.

@asaadaldien asaadaldien 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.

Yay....HaPpYDaNcE!

@hanhanW
hanhanW merged commit a8d76f0 into iree-org:main Apr 23, 2021
@hanhanW
hanhanW deleted the cleanup branch April 23, 2021 18:40
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.

6 participants