Skip to content

Commit 4af07e3

Browse files
committed
[ROCm][inductor] Additional pointwise tunings (#2642)
This config improves the performance of a 1D pointwise kernel by 20% as measured on MI350. (cherry picked from commit a7bac0a)
1 parent f1eac49 commit 4af07e3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

torch/_inductor/runtime/triton_heuristics.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,6 +2507,15 @@ def pointwise(
25072507
),
25082508
*hinted_configs,
25092509
]
2510+
# Additional reduction configs appended for ROCm builds
2511+
if torch.version.hip:
2512+
configs.append(triton_config_with_settings(
2513+
size_hints,
2514+
2048,
2515+
num_warps=8,
2516+
num_stages=2,
2517+
waves_per_eu=1
2518+
)) # 20% improvement
25102519
if len(size_hints) == 2:
25112520
if (
25122521
disable_pointwise_autotuning(inductor_meta) # or tile_hint == TileHint.SQUARE

0 commit comments

Comments
 (0)