viable/strict/1789594034
[inductor][cpu] Opt-in bmm decomposition for an unprovable batch dim …
[inductor][cpu] Opt-in bmm decomposition for an unprovable batch dim …
DTensor's sharding propagator has no strategy for aten.miopen_batch_norm, so F.batch_norm on a sharded 4D input fails on ROCm with "Operator aten.miopen_batch_norm.default does not have a sharding strategy registered". CUDA never hits the equivalent because aten.cudnn_batch_norm has a decomposition in torch/_decomp, which DTensor's DecompShardingStrategy falls back to. The ROCm decomposition exist…
[ROCm][inductor] gfx1250 TDM support for generic descriptor codegen (…
Take over #188136. Builds all Linux XPU manywheel variants in one job, reusing ABI-independent C++/SYCL artifacts across Python versions while rebuilding Python-bound artifacts per interpreter. Before vs after Comparing the eight XPU matrix builds from #195438 run 33729050328 with the unified build from this PR, run 34123506914: Linux XPU build runner-minutes Before (per-Python matrix, 8 jobs) Aft…
Summary Extracted 9 CUDA-specific tests from TestFlopCounter into a new TestFlopCounterCUDA(TestCase) class Tagged all 3 classes with hw_classification = HardwareClassification.* Pull Request resolved: #192478 Approved by: https://github.com/can-gaa-hou, https://github.com/fffrog
[Testcase Refactoring] Add HardwareClassification for test_fake_backe…
[Testcase Refactoring] Add proper hw_classification to test_hf_models…
[Testcase Refactoring] Add proper hw_classification to test_capture_s…
[Test] Make test/functorch/test_compile_to_python.py tests device-g…
Motivation When we enable pyzes tests on BMG in #196950, we found zesDeviceEnumEngineGroups will fail with pyzes.ZE_RESULT_ERROR_INSUFFICIENT_PERMISSIONS. This is different logic from the Xe arch. Level Zero Sysman will fix it in the next version. We handle this logic in PyTorch side temporarily. Additional Context With this fix: the test will be skipped; otherwise fail with RuntimeError: Can't ge…
[Testcase Refactoring] Add hw_classification in test/fx/test_matcher_…
[Testcase Refactoring] Classify device-agnostic test classes for test…
By adding value == to ? from : value ternary at the end Use volatile to prevent erroneous elimination of static_cast<bfloat> see reproducer below import torch lib = torch.mps.compile_shader(""" #include <metal_stdlib> using namespace metal; bfloat volcast(volatile float x) { return static_cast<bfloat>(x); } kernel void repro_bug(device bfloat* out, constant float2& bounds, constant float* samples,…
By adding value == to ? from : value ternary at the end Use volatile to prevent erroneous elimination of static_cast<bfloat> see reproducer below import torch lib = torch.mps.compile_shader(""" #include <metal_stdlib> using namespace metal; bfloat volcast(volatile float x) { return static_cast<bfloat>(x); } kernel void repro_bug(device bfloat* out, constant float2& bounds, constant float* samples,…
[Testcase Refactoring] Add HardwareClassification to distributed_test…
This PR is auto-generated nightly by this action. Updates the Metamates merge rule with active team members. Pull Request resolved: #197041 Approved by: https://github.com/pytorchbot
[Testcase Refactoring] Classify sparsity parametrization tests by har…
[Testcase Refactoring][quantization][eager] Add GENERIC hw_classifica…
[Testcase Refactoring] Add HardwareClassification to api_test.py (#19…
Fixes #195487. torch._dynamo.test_case.TestCase.setUp/tearDown already snapshots torch.is_grad_enabled() and restores it (with a warning) in tearDown if a test left it changed, but has no equivalent for autocast. All four pieces of autocast state -- enabled, dtype, cache_enabled, and the nesting counter -- survive past the end of a test into whichever test runs next. A test that leaks this state (…
Human note I found this repeatedly failing on blackwell CI Agent note The DeepSeek Triton main loop assumed row-major scale storage, advanced scale indices incorrectly for GEMM tiles smaller than a scale block, and interleaved outer/K dimensions when expanding 128x128 scales. Honor actual strides and logical axes, compute scale coordinates from element offsets, and preserve outer/K order during ex…
Summary: NCCL_ALLTOALL_SUPPORTED is not defined anywhere in the repo. D115674668 ("[ncclx][fix-build] Remove NCCL_ALLTOALL_SUPPORTED macro") deleted the #define from nccl.h.in in both v2_29 and v2_30, specifically so that an old PyTorch built against a new NCCLX would stop selecting the capital-T ncclAllToAll API. So the defined(NCCL_ALLTOALL_SUPPORTED) term in all2all_single_equal_split is now al…
[dynamo] Bitwise float compare for guard snapshots and subgraph reuse…
[dynamo] Bitwise float compare for guard snapshots and subgraph reuse…
[Testcase Refactoring] Add hw_classification=GENERIC to TestComplemen…
[ATen] Keep the fill_ kernel for zero_ on ROCm 7.0.0-7.1.0 (hipMemset…
The tests, when run in shards, use pytest. So, pytest test_logging.py is used instead of python test_logging.py. The initial code, which was: for log_qname in log_internal.log_registry.get_log_qnames(): logger = logging.getLogger(log_qname) created_handlers.update(logger.handlers) self.assertEqual( len(logger.handlers), 2, f"{log_qname} should only have stream and file handlers", ) checks all acti…
The tests, when run in shards, use pytest. So, pytest test_logging.py is used instead of python test_logging.py. The initial code, which was: for log_qname in log_internal.log_registry.get_log_qnames(): logger = logging.getLogger(log_qname) created_handlers.update(logger.handlers) self.assertEqual( len(logger.handlers), 2, f"{log_qname} should only have stream and file handlers", ) checks all acti…
Make the addmm decomposition reject an input wider than the mm result…
Fixes #153327 Eager rejects a non-positive factor in native_functions: RuntimeError: pixel_shuffle expects a positive upscale_factor, but got 0 The meta registration and the _refs decompositions never got the same check, so they divide by the factor instead: path factor = 0 factor = -2 eager RuntimeError: ...positive upscale_factor, but got 0 RuntimeError: ...but got -2 meta_pixel_shuffle ZeroDivi…