Skip to content

fix anti-pattern for cudagraph #2619

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

Closed
wants to merge 1 commit into from
Closed

fix anti-pattern for cudagraph #2619

wants to merge 1 commit into from

Conversation

BoyuanFeng
Copy link
Contributor

Previously, self.create_grids((nx, ny), p.device) is run sometimes, leading to cudagraph error "accessing tensor output of CUDAGraphs that has been overwritten by a subsequent run". This pr fixes the anti-pattern to always run create_grids.

@BoyuanFeng
Copy link
Contributor Author

@pytorchbot merge

Copy link

pytorch-bot bot commented May 22, 2025

Mergebot is not configured for this repository. Please use the merge button provided by GitHub.

@facebook-github-bot
Copy link
Contributor

@BoyuanFeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@BoyuanFeng merged this pull request in 227fb01.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants