You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cherry-pick of pytorch#180892 (30e2dee) minus the
mix_order_reduction_allow_multi_stages default flip.
The mix_order_reduction_allow_multi_stages flip is an unrelated
mix-order-reduction perf feature that the pytorch#17189 conv OOM fix doesn't
need — the num_stages=1 fallback delivers that on its own. It was
dropped because it's tuned for NVIDIA's ~228 KB shared memory and on
gfx942's 64 KB LDS would mostly cause double-compile churn and new
overflow risk with no proven benefit, keeping this a conservative,
fix-only backport.
When every Triton config for a choice fails to build with an
OutOfResources/OutOfMemoryError and pipelining is active (num_stages >
1), CachingAutotuner now recompiles that config with num_stages=1 and
retries instead of raising. On gfx942 (64KB LDS) this recovers the
BLOCK_K=64/128 triton_convolution2d configs that otherwise overflow
shared memory, eliminating the "No valid triton configs ... out of
resource" autotuning errors seen in ROCm/frameworks-internal#17189 and
keeping those kernels available as real choices.
Excludes the mix_order_reduction_allow_multi_stages opt-in -> default-on
change from the original PR to keep this a fix-only backport.
---------
Co-authored-by: shunting314 <shunting@meta.com>
0 commit comments