Skip to content

Conversation

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 22, 2024

🔗 Helpful Links

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

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

✅ You can merge normally! (1 Unrelated Failure)

As of commit 431bda7 with merge base 07b0d63 (image):

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

[ghstack-poisoned]
jansel added a commit that referenced this pull request Oct 22, 2024
ghstack-source-id: a675ed6
Pull Request resolved: #138533
[ghstack-poisoned]
[ghstack-poisoned]
@jansel jansel marked this pull request as ready for review October 22, 2024 19:51
[ghstack-poisoned]
[ghstack-poisoned]
jansel added a commit that referenced this pull request Oct 23, 2024
ghstack-source-id: 4d3dac9
Pull Request resolved: #138533
@jansel jansel requested a review from eellison October 25, 2024 20:08
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
@jansel jansel requested a review from shunting314 October 28, 2024 05:11
# The RSPLIT of cooperative reductions means each thread block is operating on fewer elements
xnumel, _ = self.numels
try:
threshold *= 32 // V.graph.sizevars.size_hint(xnumel)
Copy link
Contributor

Choose a reason for hiding this comment

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

So 32 // V.graph.sizevars.size_hint(xnumel) is used to estimate RSPLIT?

Is it expected that this is not that consistent to the similar logic in triton_heuristics.cooperative_reduction :

split = max(1, min(target // xnumel, TRITON_MAX_RSPLIT))

target is 64 there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, though I'm intentionally under-estimating here to be conservative.

[ghstack-poisoned]
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.

4 participants