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

mlir-gen - use empty as outs for named eltwise operations #952

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

adam-smnk
Copy link
Collaborator

Adjusts mlir-gen named ops generation to use tensor.empty as output destination.

For linalg named eltwise operations, outs value is write only. Using empty as a destination placeholder instead of zero initialized value improves bufferization and overall IR quality.

Adjusts mlir-gen named ops generation to use tensor.empty as output
destination.

For linalg named eltwise operations, outs value is write only. Using
empty as a destination placeholder instead of zero initialized value
improves bufferization and overall IR quality.
@adam-smnk adam-smnk added the benchmark Triggers benchmark jobs label Aug 7, 2024
@adam-smnk adam-smnk requested review from rengolin and shahidact August 7, 2024 10:00
@adam-smnk
Copy link
Collaborator Author

This also aligns our named benchmarks with more realistic IR like one generated by OV.

@rengolin
Copy link
Contributor

rengolin commented Aug 7, 2024

This also aligns our named benchmarks with more realistic IR like one generated by OV.

Any change in benchmark numbers?

@adam-smnk
Copy link
Collaborator Author

This also aligns our named benchmarks with more realistic IR like one generated by OV.

Any change in benchmark numbers?

Not as of right now that is: no changes in the older benchmarks and no impact on the named case.
This is due to other limitations in lowering named MLPs.

@adam-smnk adam-smnk merged commit 489e98a into plaidml:main Aug 7, 2024
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark Triggers benchmark jobs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants