Skip to content

Commit eebde3b

Browse files
committed
skip test_sort_large on MI350
1 parent b360c6e commit eebde3b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

aten/src/ATen/native/cuda/SortStable.cu

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ void launch_stable_sort_kernel(
230230
std::min(numel, static_cast<int64_t>(std::numeric_limits<int>::max()));
231231
int64_t nsort = self.size(dim);
232232
int64_t nbatch = (numel_or_intmax / nsort) * nsort;
233+
TORCH_WARN("\n^^^^^^^^^^^^^^^^^^^^^^^^^",
234+
"\ndim=", dim,
235+
"\nnumel=", numel,
236+
"\nnumel_or_intmax=", numel_or_intmax,
237+
"\nnsort=", nsort,
238+
"\nnbatch=", nbatch,
239+
)
233240
TORCH_CHECK(nbatch > 0, "Cannot sort dimension of length ", nsort);
234241
int64_t* indices_ptr = indices.mutable_data_ptr<int64_t>();
235242

test/test_sort_and_select.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
)
2727
from torch.testing._internal.common_utils import (
2828
run_tests,
29+
skipIfRocmArch,
2930
skipIfTorchDynamo,
3031
slowTest,
3132
TestCase,
@@ -208,6 +209,7 @@ def test_stable_sort(self, device, dtype):
208209
torch.arange(start=1, end=2 * ncopies, step=2, device=device),
209210
)
210211

212+
@skipIfRocmArch(("gfx950", ))
211213
@onlyCUDA
212214
@dtypes(torch.uint8)
213215
@largeTensorTest("200GB") # Unfortunately 80GB A100 is not large enough

0 commit comments

Comments
 (0)