Skip to content

Conversation

BoyuanFeng
Copy link
Contributor

@BoyuanFeng BoyuanFeng commented Apr 25, 2025

ForeachKernelSchedulerNode misses outputs_by_name when created with previous nodes. This PR fixes the issue.

cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @chenyang78 @kadeng @muchulee8 @amjames @chauhang @aakhundov

@BoyuanFeng BoyuanFeng added ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category module: inductor labels Apr 25, 2025
@BoyuanFeng BoyuanFeng requested review from eellison and mlazos April 25, 2025 00:21
Copy link

pytorch-bot bot commented Apr 25, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/152148

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit b757fd0 with merge base 8172397 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Comment on lines +1740 to +1742
self.outputs_by_name: dict[str, SchedulerBuffer] = {
k: v for snode in self.snodes for k, v in snode.outputs_by_name.items()
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
self.outputs_by_name: dict[str, SchedulerBuffer] = {
k: v for snode in self.snodes for k, v in snode.outputs_by_name.items()
}
self.outputs_by_name: dict[str, SchedulerBuffer] = dict(
itertools.chain.from_iterable(snode.outputs_by_names.items() for snode in self.snodes)
)

@BoyuanFeng
Copy link
Contributor Author

@pytorchbot merge

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@BoyuanFeng BoyuanFeng mentioned this pull request Apr 24, 2025
20 tasks
@github-actions github-actions bot deleted the bf/cg-foreach-op branch June 14, 2025 02:15
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.

4 participants