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

Compute and hash buffer_donor_indices for step marker #8467

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

mcuiaws
Copy link
Contributor

@mcuiaws mcuiaws commented Dec 6, 2024

Refactor SetBufferDonors() so that the logic for computing donor
indices in a separate function GetBufferDonors().
SyncTensorsGraphInternal() now calls GetBufferDonors(), and
those indices are hashed first, and the passed into Compile().

This fixes #8464.

@mcuiaws mcuiaws changed the title Compute and hash buffer_donor_indices for step marker (#8464) Compute and hash buffer_donor_indices for step marker Dec 6, 2024
Copy link
Collaborator

@jeffhataws jeffhataws left a comment

Choose a reason for hiding this comment

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

Will you add the testcase from #8464 ?

@mcuiaws mcuiaws force-pushed the fix_8464 branch 3 times, most recently from d195e04 to ff003b8 Compare December 11, 2024 22:07
Refactor SetBufferDonors() so that the logic for computing donor
indices in a separate function GetBufferDonors().
SyncTensorsGraphInternal() now calls GetBufferDonors(), and
those indices are hashed first, and the passed into Compile().

This fixes pytorch#8464.
@tengyifei
Copy link
Collaborator

Thanks!

@tengyifei tengyifei merged commit 0154850 into pytorch:master Dec 17, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IR graph hash should include buffer_donor_indices returned from XLAGraphExecutor::SetBufferDonors()
3 participants