Repository navigation
[BE][Test] Trim mode OpInfo sample inputs - #203277
jbschlosser wants to merge 16 commits into
Conversation
PR Status: Approved 🚀Please fix all CI failures and trigger merge by commenting "@pytorchbot merge". ✅ AUTOMATED REVIEW - Ready for human review:
Reviewed commit: 🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/203277
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (4 Unrelated Failures)As of commit 972c68f with merge base 51f0eeb ( 🟡 GREEN LIGHT - OUTDATED (earlier commit) - PR requires human review:
reason: FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > The no-arg 0-d sample is dropped: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the existing `dim=0` sample. The `dim=0, keepdim=True` 0-d sample is kept because forward AD (`gather_with_keepdimed_indices`) and the vmap batch rule branch on keepdim. > > The `(3000,)` sample exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`, which is 1024 on CUDA and 256 on ROCm), so it is shrunk to 2049, the smallest size that still takes that path on CUDA (ROCm takes it from 513). It still runs on every device, so XPU and the CPU comparison keep a long slice. The stale numbers in the `test_compare_cpu` skip comment came from the old sample and are replaced with the actual cause: that test only runs on ROCm, and when the mode value occurs more than once, CPU (unstable sort) and CUDA can return different occurrence indices. The comment on the 2049 sample now names the `MAX_BLOCK_SIZE` it depends on (`TensorModeKernel.cpp`). > > Samples per dtype: 7 -> 6. ghstack-source-id: 0466d2a Pull-Request: #203277
Withdrawn: the automated review of aaf04ee found nothing blocking.
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > The no-arg 0-d sample is dropped: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the existing `dim=0` sample. The `dim=0, keepdim=True` 0-d sample is kept because forward AD (`gather_with_keepdimed_indices`) and the vmap batch rule branch on keepdim. > > The `(3000,)` sample exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`, which is 1024 on CUDA and 256 on ROCm), so it is shrunk to 2049, the smallest size that still takes that path on CUDA (ROCm takes it from 513). It still runs on every device, so XPU and the CPU comparison keep a long slice. The stale numbers in the `test_compare_cpu` skip comment came from the old sample and are replaced with the actual cause: that test only runs on ROCm, and when the mode value occurs more than once, CPU (unstable sort) and CUDA can return different occurrence indices. The comment on the 2049 sample now names the `MAX_BLOCK_SIZE` it depends on (`TensorModeKernel.cpp`). > > Samples per dtype: 7 -> 6. ghstack-source-id: a09bf79 Pull-Request: #203277
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > The no-arg 0-d sample is dropped: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the existing `dim=0` sample. The `dim=0, keepdim=True` 0-d sample is kept because forward AD (`gather_with_keepdimed_indices`) and the vmap batch rule branch on keepdim. > > The `(3000,)` sample exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`, which is 1024 on CUDA and 256 on ROCm), so it is shrunk to 2049, the smallest size that still takes that path on CUDA (ROCm takes it from 513). It still runs on every device, so XPU and the CPU comparison keep a long slice. The stale numbers in the `test_compare_cpu` skip comment came from the old sample and are replaced with the actual cause: that test only runs on ROCm, and when the mode value occurs more than once, CPU (unstable sort) and CUDA can return different occurrence indices. The comment on the 2049 sample now names the `MAX_BLOCK_SIZE` it depends on (`TensorModeKernel.cpp`). > > Samples per dtype: 7 -> 6. ghstack-source-id: b07229c Pull-Request: #203277
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > The no-arg 0-d sample is dropped: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the existing `dim=0` sample. The `dim=0, keepdim=True` 0-d sample is kept because forward AD (`gather_with_keepdimed_indices`) and the vmap batch rule branch on keepdim. > > The `(3000,)` sample exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`, which is 1024 on CUDA and 256 on ROCm), so it is shrunk to 2049, the smallest size that still takes that path on CUDA (ROCm takes it from 513). It still runs on every device, so XPU and the CPU comparison keep a long slice. The stale numbers in the `test_compare_cpu` skip comment came from the old sample and are replaced with the actual cause: that test only runs on ROCm, and when the mode value occurs more than once, CPU (unstable sort) and CUDA can return different occurrence indices. The comment on the 2049 sample now names the `MAX_BLOCK_SIZE` it depends on (`TensorModeKernel.cpp`). > > Samples per dtype: 7 -> 6. ghstack-source-id: b07229c Pull-Request: #203277
[ghstack-poisoned]
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > The no-arg 0-d sample is dropped: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the existing `dim=0` sample. The `dim=0, keepdim=True` 0-d sample is kept because forward AD (`gather_with_keepdimed_indices`) and the vmap batch rule branch on keepdim. > > The `(3000,)` sample exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`, which is 1024 on CUDA and 256 on ROCm), so it is shrunk to 2049, the smallest size that still takes that path on CUDA (ROCm takes it from 513). It still runs on every device, so XPU and the CPU comparison keep a long slice. The stale numbers in the `test_compare_cpu` skip comment came from the old sample and are replaced with the actual cause: that test only runs on ROCm, and when the mode value occurs more than once, CPU (unstable sort) and CUDA can return different occurrence indices. The comment on the 2049 sample now names the `MAX_BLOCK_SIZE` it depends on (`TensorModeKernel.cpp`). > > Samples per dtype: 7 -> 6. ghstack-source-id: 96aebc1 Pull-Request: #203277
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > Removed duplication: > - the no-arg 0-d sample: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the `dim=0` sample (the `dim=0, keepdim=True` one stays, since forward AD and the vmap batch rule branch on keepdim) > > Dropped coverage: none. `(3000,)`, which exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`: 2048 on CUDA, 512 on ROCm), shrinks to `(2052,)`, the smallest size above 2048 that the 4-rank DTensor op-db tests can still `Shard(0)`. > > Test-config cleanup: the stale numbers in the `test_compare_cpu` skip comment are replaced with the cause (the test only runs on ROCm): CPU returns the index at the end of a run of the repeated mode value and the non-fused CUDA path the index at the start. > > Samples per dtype, unique in parentheses: > > | OpInfo | before | after | > |---|---|---| > | mode | 7 (6) | 6 | ghstack-source-id: ffd4498 Pull-Request: #203277
Withdrawn: the automated review of b2bbfce found nothing blocking.
[ghstack-poisoned]
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > Removed duplication: > - the no-arg 0-d sample: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the `dim=0` sample (the `dim=0, keepdim=True` one stays, since forward AD and the vmap batch rule branch on keepdim) > > Dropped coverage: none. `(3000,)`, which exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`: 2048 on CUDA, 512 on ROCm), shrinks to `(2052,)`, the smallest size above 2048 that the 4-rank DTensor op-db tests can still `Shard(0)`. > > Test-config cleanup: the stale numbers in the `test_compare_cpu` skip comment are replaced with the cause (the test only runs on ROCm): CPU returns the index at the end of a run of the repeated mode value and the non-fused CUDA path the index at the start. > > Samples per dtype, unique in parentheses: > > | OpInfo | before | after | > |---|---|---| > | mode | 7 (6) | 6 | ghstack-source-id: a0885ed Pull-Request: #203277
[ghstack-poisoned]
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > Removed duplication: > - the no-arg 0-d sample: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the `dim=0` sample (the `dim=0, keepdim=True` one stays, since forward AD and the vmap batch rule branch on keepdim) > > Dropped coverage: none. `(3000,)`, which exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`: 2048 on CUDA, 512 on ROCm), shrinks to `(2052,)`, the smallest size above 2048 that the 4-rank DTensor op-db tests can still `Shard(0)`. > > Test-config cleanup: the stale numbers in the `test_compare_cpu` skip comment are replaced with the cause (the test only runs on ROCm): CPU returns the index at the end of a run of the repeated mode value and the non-fused CUDA path the index at the start. > > Samples per dtype, unique in parentheses: > > | OpInfo | before | after | > |---|---|---| > | mode | 7 (6) | 6 | ghstack-source-id: 69cd925 Pull-Request: #203277
[ghstack-poisoned]
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > Removed duplication: > - the no-arg 0-d sample: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the `dim=0` sample (the `dim=0, keepdim=True` one stays, since forward AD and the vmap batch rule branch on keepdim) > > Dropped coverage: none. `(3000,)`, which exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`: 2048 on CUDA, 512 on ROCm), shrinks to `(2052,)`, the smallest size above 2048 that the 4-rank DTensor op-db tests can still `Shard(0)`. > > Test-config cleanup: the stale numbers in the `test_compare_cpu` skip comment are replaced with the cause (the test only runs on ROCm): CPU returns the index at the end of a run of the repeated mode value and the non-fused CUDA path the index at the start. > > Samples per dtype, unique in parentheses: > > | OpInfo | before | after | > |---|---|---| > | mode | 7 (6) | 6 | ghstack-source-id: 463df15 Pull-Request: #203277
[ghstack-poisoned]
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > Removed duplication: > - the no-arg 0-d sample: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the `dim=0` sample (the `dim=0, keepdim=True` one stays, since forward AD and the vmap batch rule branch on keepdim) > > Dropped coverage: none. `(3000,)`, which exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`: 2048 on CUDA, 512 on ROCm), shrinks to `(2052,)`, the smallest size above 2048 that the 4-rank DTensor op-db tests can still `Shard(0)`. > > Test-config cleanup: the stale numbers in the `test_compare_cpu` skip comment are replaced with the cause (the test only runs on ROCm): CPU returns the index at the end of a run of the repeated mode value and the non-fused CUDA path the index at the start. > > Samples per dtype, unique in parentheses: > > | OpInfo | before | after | > |---|---|---| > | mode | 7 (6) | 6 | ghstack-source-id: 1b3ccfa Pull-Request: #203277
There was a problem hiding this comment.
Automated review of 972c68f: nothing blocking; ready for human review.
The PR trims the mode OpInfo sample inputs: it removes the duplicate 0-d sample that took no arguments, shrinks the sample that exercises the non-fused CUDA kernel from (3000,) to (2052,), and corrects the test_compare_cpu skip comment. The review found no issues. Recommendation: Approve.
This review is AI-generated and advisory. Each new automated review replaces the previous one. Report a bad review
|
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Removes a duplicate sample and shrinks the large-slice sample for the `mode` OpInfo entry. > Authored with an AI assistant (Metamate). > > Removed duplication: > - the no-arg 0-d sample: on a 0-d tensor the default `dim=-1` wraps to 0, so it is identical to the `dim=0` sample (the `dim=0, keepdim=True` one stays, since forward AD and the vmap batch rule branch on keepdim) > > Dropped coverage: none. `(3000,)`, which exists to hit the non-fused CUDA kernel (slice size > `2 * MAX_BLOCK_SIZE`: 2048 on CUDA, 512 on ROCm), shrinks to `(2052,)`, the smallest size above 2048 that the 4-rank DTensor op-db tests can still `Shard(0)`. > > Test-config cleanup: the stale numbers in the `test_compare_cpu` skip comment are replaced with the cause (the test only runs on ROCm): CPU returns the index at the end of a run of the repeated mode value and the non-fused CUDA path the index at the start. > > Samples per dtype, unique in parentheses: > > | OpInfo | before | after | > |---|---|---| > | mode | 7 (6) | 6 | Pull Request resolved: pytorch#203277 Approved by: https://github.com/albanD ghstack dependencies: pytorch#203270, pytorch#203278
Stack from ghstack (oldest at bottom):
Removes a duplicate sample and shrinks the large-slice sample for the
modeOpInfo entry.