Skip to content

[NO CP][release/2.8][ROCm][inductor] Inductor heuristic upstream backports#3006

Merged
jataylo merged 3 commits intorelease/2.8from
release_/2.8_triton_heuristic_backports
Mar 6, 2026
Merged

[NO CP][release/2.8][ROCm][inductor] Inductor heuristic upstream backports#3006
jataylo merged 3 commits intorelease/2.8from
release_/2.8_triton_heuristic_backports

Conversation

@naromero77amd
Copy link
Copy Markdown

@naromero77amd naromero77amd commented Feb 26, 2026

This is identical to this release/2.7 PR: #2807 but now for release/2.8. Because release/2.7 and release/2.8 are similar. Changes were first backported to release/2.7 and then cherry-picked into release/2.8.

-- Description from release/2.7 PR is included below

These are backports based on these upstream PRs. Cherrypicks were performed when they where possible.

pytorch#163908 (persistent reduction autotune)
pytorch#161280 (reduction) pytorch#162053 (foreach) pytorch#163197 (pointwise) pytorch#166470 (pointwise config for atomic add)

Also included are some additional customer-specific configs which were not upstreamed but are in this backport to 2.9
#2723

Did not backport filter functions such as _maybe_filter_configs_for_tma_restrictions

https://github.com/ROCm/pytorch/blob/release/2.9/torch/_inductor/runtime/triton_heuristics.py#L2614


(cherry picked from commit 7de1214)

…ports (#2807)

These are backports based on these upstream PRs. Cherrypicks were
performed when they where possible.

pytorch#163908 (persistent reduction
autotune)
pytorch#161280 (reduction)
pytorch#162053 (foreach)
pytorch#163197 (pointwise)
pytorch#166470 (pointwise config for
atomic add)

Also included are some additional customer-specific configs which were
not upstreamed but are in this backport to 2.9
#2723

Did not backport filter functions such as `
_maybe_filter_configs_for_tma_restrictions`

https://github.com/ROCm/pytorch/blob/release/2.9/torch/_inductor/runtime/triton_heuristics.py#L2614

---------

Co-authored-by: Jack Taylor <jack.taylor@amd.com>
Co-authored-by: Jack Taylor <108682042+jataylo@users.noreply.github.com>
Co-authored-by: Sampsa Riikonen <sriikone@amd.com>
Co-authored-by: AmdSampsa <sampsa.riikonen@amd.com>
(cherry picked from commit 7de1214)
@naromero77amd naromero77amd marked this pull request as draft February 26, 2026 21:11
@rocm-repo-management-api
Copy link
Copy Markdown

rocm-repo-management-api Bot commented Feb 26, 2026

Jenkins build for f7d9ee50fa5edff030e0abc3492f3dcd4a5383cc commit finished as FAILURE
Links: Pipeline Overview / Build artifacts / Test Results

@rocm-repo-management-api
Copy link
Copy Markdown

rocm-repo-management-api Bot commented Feb 26, 2026

Jenkins build for 14768d0ee8771acdd0281489e85616b48220e117 commit finished as NOT_BUILT
Links: Pipeline Overview / Build artifacts / Test Results

@rocm-repo-management-api
Copy link
Copy Markdown

rocm-repo-management-api Bot commented Feb 26, 2026

Jenkins build for 14768d0ee8771acdd0281489e85616b48220e117 commit finished as FAILURE
Links: Pipeline Overview / Build artifacts / Test Results

@naromero77amd
Copy link
Copy Markdown
Author

I ran the inductor/test_torchinductor.py and inductor/test_max_autotune.py test suites. There were no new regressions.

@naromero77amd naromero77amd changed the title [NO CP][release/2.8][ROCm][inductor] Inductor heuristic upstream back… [NO CP][release/2.8][ROCm][inductor] Inductor heuristic upstream backports Feb 27, 2026
@naromero77amd naromero77amd marked this pull request as ready for review February 27, 2026 16:31
@jataylo jataylo merged commit b3e903e into release/2.8 Mar 6, 2026
1 of 3 checks passed
@jataylo jataylo deleted the release_/2.8_triton_heuristic_backports branch March 6, 2026 17:05
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.

2 participants