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

Serialize output arg #3613

Merged
merged 2 commits into from
Nov 12, 2024
Merged

Serialize output arg #3613

merged 2 commits into from
Nov 12, 2024

Conversation

pfultz2
Copy link
Collaborator

@pfultz2 pfultz2 commented Nov 11, 2024

No description provided.

@pfultz2 pfultz2 requested a review from causten as a code owner November 11, 2024 23:44
@pfultz2 pfultz2 changed the title Serailize output arg Serialize output arg Nov 11, 2024
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.18%. Comparing base (2f97579) to head (4f168d1).
Report is 132 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #3613   +/-   ##
========================================
  Coverage    92.18%   92.18%           
========================================
  Files          513      513           
  Lines        21548    21548           
========================================
  Hits         19863    19863           
  Misses        1685     1685           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@CharlieL7 CharlieL7 left a comment

Choose a reason for hiding this comment

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

What's the use case for the output_arg?

Copy link
Contributor

@turneram turneram left a comment

Choose a reason for hiding this comment

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

I'm seeing correct results from mxr with this change.

@pfultz2
Copy link
Collaborator Author

pfultz2 commented Nov 12, 2024

What's the use case for the output_arg?

Originally it was needed for MLIR as the last parameter wasnt the output parameter. Instead it would take the output buffer and then the sizes(ie lens, strides) to the buffer, that is no longer the case.

In this case, the concat_past_present_kernel outputs the first parameter because it modifies the input inplace rather than taking an output buffer to copy the ouput to. So we set it to 0 instead of the default -1.

@causten causten merged commit 90cd211 into develop Nov 12, 2024
38 of 43 checks passed
@causten causten deleted the serialize-output-arg branch November 12, 2024 23:26
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