Component: torch_musa / MUDNN
Environment
| component |
version |
| card |
MTT S5000, 79.9 GiB |
| MUSA toolkit / mcc |
4.3.5 (release_musa_4.3.0) |
| torch |
2.9.0 |
| torch_musa |
2.9.0 |
Summary
RuntimeError: FillOp MUDNN failed in: RunMask
from tensor[bool_mask] = 0 on a tensor of 3.22e9 elements (98304 × 64 × 512),
just past 2^31 = 2.147e9.
Reproduction
import torch
n = 98304 * 64 * 512 # 3.22e9, past 2^31
a = torch.randn(n, dtype=torch.float32, device="musa")
m = a > 0
a[m] = 0.0 # RuntimeError: FillOp MUDNN failed in: RunMask
torch.musa.synchronize()
Impact
Beyond the direct failure, this breaks torch.testing.assert_close: its
mismatch-reporting path performs exactly abs_diff[matches_flat] = 0 in order to
compute max_abs_diff. On any large tensor a comparison that should print a
diff instead raises an opaque RuntimeError: Comparing ... containing no
numbers. That misdirects debugging — we spent a round chasing a phantom numerical
regression before noticing the crash was in the reporting code and not in the
comparison itself.
Any test suite validating large tensors on MUSA is affected.
Component: torch_musa / MUDNN
Environment
release_musa_4.3.0)Summary
from
tensor[bool_mask] = 0on a tensor of 3.22e9 elements (98304 × 64 × 512),just past 2^31 = 2.147e9.
Reproduction
Impact
Beyond the direct failure, this breaks
torch.testing.assert_close: itsmismatch-reporting path performs exactly
abs_diff[matches_flat] = 0in order tocompute
max_abs_diff. On any large tensor a comparison that should print adiff instead raises an opaque
RuntimeError: Comparing ...containing nonumbers. That misdirects debugging — we spent a round chasing a phantom numerical
regression before noticing the crash was in the reporting code and not in the
comparison itself.
Any test suite validating large tensors on MUSA is affected.