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

[torch-mlir][sparse] inline sparse helper methods #2918

Merged
merged 1 commit into from
Feb 17, 2024
Merged

Conversation

aartbik
Copy link
Contributor

@aartbik aartbik commented Feb 16, 2024

Even though the reference compiler is not about performance, inlining the generated sparse helper methods has a rather big positive impact on performance, leaving a much better first impression. Therefore, we added this inlining pass (which leaves all other PyTorch modules unaffected, since they tend to be one big main() method to start with).

testing:

$./tools/e2e_test.sh --config linalg

Summary:
Passed: 1164
Expectedly Failed: 8

$ python -m e2e_testing.main --config=torchdynamo

Summary:
Passed: 976
Expectedly Failed: 162

Even though the reference compiler is not about performance,
inlining the generated sparse helper methods has a rather big
impact on performance, leaving a much better first impression.
Therefore, we added this inlining pass (which leaves all other
PyTorch modules unaffected, since they tend to be one big main()
method to start with).

testing:

$./tools/e2e_test.sh --config linalg

Summary:
    Passed: 1164
    Expectedly Failed: 8

$ python -m e2e_testing.main --config=torchdynamo

Summary:
    Passed: 976
    Expectedly Failed: 162
Copy link
Collaborator

@stellaraccident stellaraccident left a comment

Choose a reason for hiding this comment

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

Seems ok to me

@aartbik aartbik merged commit 78e10ff into llvm:main Feb 17, 2024
3 checks passed
@aartbik aartbik deleted the bik branch February 17, 2024 04:56
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.

4 participants