Repository navigation
[AMD][PyTorch] Reland: Redirect index_add_ to scatter_add_ on HIP for large tensors (#181955) - #181955
[AMD][PyTorch] Reland: Redirect index_add_ to scatter_add_ on HIP for large tensors (#181955)#181955haoyuz wants to merge 1 commit into
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/181955
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 68 PendingAs of commit c05e6d3 with merge base 6406dc3 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@haoyuz has exported this pull request. If you are a Meta employee, you can view the originating Diff in D103100245. |
382bef1 to
4514823
Compare
4514823 to
7159a00
Compare
… large tensors (pytorch#181955) Summary: Reland of D100635529 (pytorch#180430), which was reverted in D103039749 because the new bf16 path of `test_index_add_correctness_2d_out_of_place` failed on NVIDIA OSS CI. ngimel pointed out that with `num_dest=200, num_src=5000` (~25 atomic adds per destination row), the per-element rounding from NVIDIA's `index_add_` kernel exceeds the original `atol=5e-2` max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (`test_index_add_correctness_2d_large` and `test_index_add_correctness_2d_alpha`) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference. All AMD-side changes from D100635529 are restored — the HIP-only `index_add_ → scatter_add_` redirect in `Indexing.cu` and the new `scripts/haoyuz/amd/index_add/` benchmark + standalone test. The only difference vs the reverted version is in the three new tests in `caffe2/test/test_indexing.py` that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold. [PR pytorch#146264](pytorch#146264) has more details on `scatter_add` optimizations for AMD MI300 / MI350 GPUs. Co-authored-by: Claude Test Plan: On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader `TestIndexing` suite is clean: ``` PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness' test_index_add_correctness_2d_alpha_cuda ... ok test_index_add_correctness_2d_large_cuda_bfloat16 ... ok test_index_add_correctness_2d_large_cuda_float16 ... ok test_index_add_correctness_2d_large_cuda_float32 ... ok test_index_add_correctness_2d_out_of_place_cuda_bfloat16 ... ok test_index_add_correctness_2d_out_of_place_cuda_float32 ... ok Ran 6 tests in 0.139s PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing' Ran 176 tests in 8.290s OK (skipped=1) ``` Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, `test_index_add_correctness_2d_out_of_place_cuda_bfloat16` reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed). The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged. Reverted-by: D103039749 Reviewed By: echen4096 Differential Revision: D103100245
7159a00 to
c05e6d3
Compare
|
@pytorchbot merge -i (Initiating merge automatically since Phabricator Diff has merged, merging with -i because oss signals were bypassed internally) |
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
This PR needs a
|
|
@pytorchbot merge -i (Initiating merge automatically since Phabricator Diff has merged, merging with -i because oss signals were bypassed internally) |
Merge startedYour change will be merged while ignoring the following 7 checks: pull / linux-jammy-py3.10-clang18 / test (dynamo_wrapped, 3, 3, linux.2xlarge), pull / linux-jammy-py3.10-gcc11 / test (distributed, 2, 3, linux.2xlarge.amx), pull / linux-jammy-py3.10-gcc11 / test (distributed, 3, 3, linux.2xlarge.amx), pull / linux-jammy-aarch64-py3.10 / test (default, 4, 5, linux.arm64.m8g.4xlarge), trunk / linux-jammy-rocm-py3.10-mi355 / test (default, 6, 6, linux.rocm.gpu.gfx950.1), trunk / linux-jammy-rocm-py3.10-mi355 / test (default, 1, 6, linux.rocm.gpu.gfx950.1), trunk / linux-jammy-rocm-py3.10-mi355 / test (default, 4, 6, linux.rocm.gpu.gfx950.1) Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
@haoyuz reverting for the second time. This PR breaks some ROCm tests. Can't keep using pytorchbot merge -i to ignore signals. @pytorchbot revert -c ignoredsignal -m "test/test_sparse_csr.py::TestSparseCompressedCUDA::test_consistency_SparseCSR_mul_cuda_complex32 GH job link HUD commit link" |
|
@pytorchbot successfully started a revert job. Check the current status here. |
… HIP for large tensors (#181955) (#181955)" This reverts commit ad98e44. Reverted #181955 on behalf of https://github.com/jeffdaily due to test/test_sparse_csr.py::TestSparseCompressedCUDA::test_consistency_SparseCSR_mul_cuda_complex32 [GH job link](https://github.com/pytorch/pytorch/actions/runs/25204587946/job/73904997703) [HUD commit link](https://hud.pytorch.org/pytorch/pytorch/commit/ad98e448f031aecd536d84e6b36ea86da3abfeb9) ([comment](#181955 (comment)))
|
@haoyuz your PR has been successfully reverted. |
|
@pytorchbot merge -i (Initiating merge automatically since Phabricator Diff has merged, merging with -i because oss signals were bypassed internally) |
Merge startedYour change will be merged while ignoring the following 0 checks: Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 jobs have failed, first few of them are: Meta Internal-Only Changes Check Details for Dev Infra teamRaised by workflow job |
… large tensors (pytorch#181955) (pytorch#181955) Summary: Reland of D100635529 (pytorch#180430), which was reverted in D103039749 because the new bf16 path of `test_index_add_correctness_2d_out_of_place` failed on NVIDIA OSS CI. ngimel pointed out that with `num_dest=200, num_src=5000` (~25 atomic adds per destination row), the per-element rounding from NVIDIA's `index_add_` kernel exceeds the original `atol=5e-2` max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (`test_index_add_correctness_2d_large` and `test_index_add_correctness_2d_alpha`) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference. All AMD-side changes from D100635529 are restored — the HIP-only `index_add_ → scatter_add_` redirect in `Indexing.cu` and the new `scripts/haoyuz/amd/index_add/` benchmark + standalone test. The only difference vs the reverted version is in the three new tests in `caffe2/test/test_indexing.py` that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold. [PR pytorch#146264](pytorch#146264) has more details on `scatter_add` optimizations for AMD MI300 / MI350 GPUs. Co-authored-by: Claude Test Plan: On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader `TestIndexing` suite is clean: ``` PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness' test_index_add_correctness_2d_alpha_cuda ... ok test_index_add_correctness_2d_large_cuda_bfloat16 ... ok test_index_add_correctness_2d_large_cuda_float16 ... ok test_index_add_correctness_2d_large_cuda_float32 ... ok test_index_add_correctness_2d_out_of_place_cuda_bfloat16 ... ok test_index_add_correctness_2d_out_of_place_cuda_float32 ... ok Ran 6 tests in 0.139s PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing' Ran 176 tests in 8.290s OK (skipped=1) ``` Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, `test_index_add_correctness_2d_out_of_place_cuda_bfloat16` reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed). The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged. Reverted-by: D103039749 Reviewed By: echen4096 Differential Revision: D103100245 Pull Request resolved: pytorch#181955 Approved by: https://github.com/echen4096
… HIP for large tensors (pytorch#181955) (pytorch#181955)" This reverts commit ad98e44. Reverted pytorch#181955 on behalf of https://github.com/jeffdaily due to test/test_sparse_csr.py::TestSparseCompressedCUDA::test_consistency_SparseCSR_mul_cuda_complex32 [GH job link](https://github.com/pytorch/pytorch/actions/runs/25204587946/job/73904997703) [HUD commit link](https://hud.pytorch.org/pytorch/pytorch/commit/ad98e448f031aecd536d84e6b36ea86da3abfeb9) ([comment](pytorch#181955 (comment)))
… large tensors (pytorch#181955) (pytorch#181955) Summary: Reland of D100635529 (pytorch#180430), which was reverted in D103039749 because the new bf16 path of `test_index_add_correctness_2d_out_of_place` failed on NVIDIA OSS CI. ngimel pointed out that with `num_dest=200, num_src=5000` (~25 atomic adds per destination row), the per-element rounding from NVIDIA's `index_add_` kernel exceeds the original `atol=5e-2` max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (`test_index_add_correctness_2d_large` and `test_index_add_correctness_2d_alpha`) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference. All AMD-side changes from D100635529 are restored — the HIP-only `index_add_ → scatter_add_` redirect in `Indexing.cu` and the new `scripts/haoyuz/amd/index_add/` benchmark + standalone test. The only difference vs the reverted version is in the three new tests in `caffe2/test/test_indexing.py` that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold. [PR pytorch#146264](pytorch#146264) has more details on `scatter_add` optimizations for AMD MI300 / MI350 GPUs. Co-authored-by: Claude Test Plan: On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader `TestIndexing` suite is clean: ``` PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness' test_index_add_correctness_2d_alpha_cuda ... ok test_index_add_correctness_2d_large_cuda_bfloat16 ... ok test_index_add_correctness_2d_large_cuda_float16 ... ok test_index_add_correctness_2d_large_cuda_float32 ... ok test_index_add_correctness_2d_out_of_place_cuda_bfloat16 ... ok test_index_add_correctness_2d_out_of_place_cuda_float32 ... ok Ran 6 tests in 0.139s PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing' Ran 176 tests in 8.290s OK (skipped=1) ``` Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, `test_index_add_correctness_2d_out_of_place_cuda_bfloat16` reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed). The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged. Reverted-by: D103039749 Reviewed By: echen4096 Differential Revision: D103100245 Pull Request resolved: pytorch#181955 Approved by: https://github.com/echen4096
… HIP for large tensors (pytorch#181955) (pytorch#181955)" This reverts commit ad98e44. Reverted pytorch#181955 on behalf of https://github.com/jeffdaily due to test/test_sparse_csr.py::TestSparseCompressedCUDA::test_consistency_SparseCSR_mul_cuda_complex32 [GH job link](https://github.com/pytorch/pytorch/actions/runs/25204587946/job/73904997703) [HUD commit link](https://hud.pytorch.org/pytorch/pytorch/commit/ad98e448f031aecd536d84e6b36ea86da3abfeb9) ([comment](pytorch#181955 (comment)))
… large tensors (pytorch#181955) (pytorch#181955) Summary: Reland of D100635529 (pytorch#180430), which was reverted in D103039749 because the new bf16 path of `test_index_add_correctness_2d_out_of_place` failed on NVIDIA OSS CI. ngimel pointed out that with `num_dest=200, num_src=5000` (~25 atomic adds per destination row), the per-element rounding from NVIDIA's `index_add_` kernel exceeds the original `atol=5e-2` max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (`test_index_add_correctness_2d_large` and `test_index_add_correctness_2d_alpha`) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference. All AMD-side changes from D100635529 are restored — the HIP-only `index_add_ → scatter_add_` redirect in `Indexing.cu` and the new `scripts/haoyuz/amd/index_add/` benchmark + standalone test. The only difference vs the reverted version is in the three new tests in `caffe2/test/test_indexing.py` that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold. [PR pytorch#146264](pytorch#146264) has more details on `scatter_add` optimizations for AMD MI300 / MI350 GPUs. Co-authored-by: Claude Test Plan: On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader `TestIndexing` suite is clean: ``` PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness' test_index_add_correctness_2d_alpha_cuda ... ok test_index_add_correctness_2d_large_cuda_bfloat16 ... ok test_index_add_correctness_2d_large_cuda_float16 ... ok test_index_add_correctness_2d_large_cuda_float32 ... ok test_index_add_correctness_2d_out_of_place_cuda_bfloat16 ... ok test_index_add_correctness_2d_out_of_place_cuda_float32 ... ok Ran 6 tests in 0.139s PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing' Ran 176 tests in 8.290s OK (skipped=1) ``` Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, `test_index_add_correctness_2d_out_of_place_cuda_bfloat16` reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed). The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged. Reverted-by: D103039749 Reviewed By: echen4096 Differential Revision: D103100245 Pull Request resolved: pytorch#181955 Approved by: https://github.com/echen4096
… HIP for large tensors (pytorch#181955) (pytorch#181955)" This reverts commit ad98e44. Reverted pytorch#181955 on behalf of https://github.com/jeffdaily due to test/test_sparse_csr.py::TestSparseCompressedCUDA::test_consistency_SparseCSR_mul_cuda_complex32 [GH job link](https://github.com/pytorch/pytorch/actions/runs/25204587946/job/73904997703) [HUD commit link](https://hud.pytorch.org/pytorch/pytorch/commit/ad98e448f031aecd536d84e6b36ea86da3abfeb9) ([comment](pytorch#181955 (comment)))
… large tensors (pytorch#181955) (pytorch#181955) Summary: Reland of D100635529 (pytorch#180430), which was reverted in D103039749 because the new bf16 path of `test_index_add_correctness_2d_out_of_place` failed on NVIDIA OSS CI. ngimel pointed out that with `num_dest=200, num_src=5000` (~25 atomic adds per destination row), the per-element rounding from NVIDIA's `index_add_` kernel exceeds the original `atol=5e-2` max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (`test_index_add_correctness_2d_large` and `test_index_add_correctness_2d_alpha`) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference. All AMD-side changes from D100635529 are restored — the HIP-only `index_add_ → scatter_add_` redirect in `Indexing.cu` and the new `scripts/haoyuz/amd/index_add/` benchmark + standalone test. The only difference vs the reverted version is in the three new tests in `caffe2/test/test_indexing.py` that compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold. [PR pytorch#146264](pytorch#146264) has more details on `scatter_add` optimizations for AMD MI300 / MI350 GPUs. Co-authored-by: Claude Test Plan: On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader `TestIndexing` suite is clean: ``` PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'index_add_correctness' test_index_add_correctness_2d_alpha_cuda ... ok test_index_add_correctness_2d_large_cuda_bfloat16 ... ok test_index_add_correctness_2d_large_cuda_float16 ... ok test_index_add_correctness_2d_large_cuda_float32 ... ok test_index_add_correctness_2d_out_of_place_cuda_bfloat16 ... ok test_index_add_correctness_2d_out_of_place_cuda_float32 ... ok Ran 6 tests in 0.139s PYTORCH_TEST_REMOTE_GPU=1 .../test_others_cuda.par -r 'TestIndexing' Ran 176 tests in 8.290s OK (skipped=1) ``` Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied, `test_index_add_correctness_2d_out_of_place_cuda_bfloat16` reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed). The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged. Reverted-by: D103039749 Reviewed By: echen4096 Differential Revision: D103100245 Pull Request resolved: pytorch#181955 Approved by: https://github.com/echen4096
… HIP for large tensors (pytorch#181955) (pytorch#181955)" This reverts commit ad98e44. Reverted pytorch#181955 on behalf of https://github.com/jeffdaily due to test/test_sparse_csr.py::TestSparseCompressedCUDA::test_consistency_SparseCSR_mul_cuda_complex32 [GH job link](https://github.com/pytorch/pytorch/actions/runs/25204587946/job/73904997703) [HUD commit link](https://hud.pytorch.org/pytorch/pytorch/commit/ad98e448f031aecd536d84e6b36ea86da3abfeb9) ([comment](pytorch#181955 (comment)))
Summary:
Reland of D100635529 (#180430), which was reverted in D103039749 because the new bf16 path of
test_index_add_correctness_2d_out_of_placefailed on NVIDIA OSS CI. ngimel pointed out that withnum_dest=200, num_src=5000(~25 atomic adds per destination row), the per-element rounding from NVIDIA'sindex_add_kernel exceeds the originalatol=5e-2max-abs tolerance — exactly the rounding behavior expected for bf16 atomics under contention. Local repro on H100 confirmed the same failure (max abs diff ~0.39 vs 0.05 allowed) and showed that two more nearby tests (test_index_add_correctness_2d_largeandtest_index_add_correctness_2d_alpha) had similarly tight tolerances that fail on NVIDIA when the high-contention atomic-add ordering diverges from the CPU sequential reference.All AMD-side changes from D100635529 are restored — the HIP-only
index_add_ → scatter_add_redirect inIndexing.cuand the newscripts/haoyuz/amd/index_add/benchmark + standalone test. The only difference vs the reverted version is in the three new tests incaffe2/test/test_indexing.pythat compare a high-contention GPU result against a CPU fp32 sequential reference. Per-element max-abs/rel tolerances are replaced with bounds that reflect the actual atomic-add accumulation noise: bf16/fp16 use L2 relative error with a 5e-2 ceiling (measured 0.017 worst-case), and fp32 uses atol=rtol=1e-3 (measured 1.3e-5 to 1.8e-4 worst-case). The HIP redirect itself is unchanged and the AMD MI350X performance numbers (4.8x speedup on Zipf alpha=1.5) still hold.PR #146264 has more details on
scatter_addoptimizations for AMD MI300 / MI350 GPUs.Co-authored-by: Claude
Test Plan:
On NVIDIA H100 (devvm2464), all six new index_add CUDA tests pass, and the broader
TestIndexingsuite is clean:Confirmed the fix actually addresses the original failure: with the prior tolerances re-applied,
test_index_add_correctness_2d_out_of_place_cuda_bfloat16reproduces the exact OSS CI failure on H100 (Mismatched elements: 54 / 6400, greatest absolute difference: 0.3878 vs 0.05 allowed).The pre-existing AMD MI350X benchmarks and standalone tests from D100635529 are unchanged.
Reverted-by: D103039749
Reviewed By: echen4096
Differential Revision: D103100245