Skip to content

[ROCm] Enable cholesky_ex via hipSOLVER xgeev (ROCm >= 7.14) & remove Magma dependency for autogenerated tests - #188720

Closed
akashveramd wants to merge 8 commits into
pytorch:mainfrom
akashveramd:av_remove_magma_cholesky_tests
Closed

akashveramd wants to merge 8 commits into
pytorch:mainfrom
akashveramd:av_remove_magma_cholesky_tests

Conversation

@akashveramd

@akashveramd akashveramd commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

hipSOLVER >= 3.5.0 (ROCm >= 7.14) introduced hipsolverDnXgeev, the ROCm equivalent of cuSOLVER's cusolverDnXgeev. This PR leverages that support to enable non-Hermitian eigendecomposition (linalg.eig) and cholesky_ex on ROCm without requiring MAGMA.

Here is the status of the PR-
Confirmed the status of all enabled tests (cholesky_ex & autogenerated tests) from logs downloaded from https://github.com/pytorch/pytorch/actions/runs/28910025721/job/85778404018?pr=188720
For 6 shards, there are 6 sets containing multiple log files-
logs-runattempt1-test-default-1-6-linux.rocm.gpu.gfx942.1_85778404018.zip
logs-runattempt1-test-default-2-6-linux.rocm.gpu.gfx942.1_85778404014.zip
logs-runattempt1-test-default-3-6-linux.rocm.gpu.gfx942.1_85778403989.zip
logs-runattempt1-test-default-4-6-linux.rocm.gpu.gfx942.1_85778404005.zip
logs-runattempt1-test-default-5-6-linux.rocm.gpu.gfx942.1_85778404001.zip
logs-runattempt1-test-default-6-6-linux.rocm.gpu.gfx942.1_85778403985.zip

cholesky_ex test is passing:
See the status of it in comment #188720 (comment)

Successfully remove Magma dependency for autogenerated tests:
Here is the status of autogenerated tests for which Magma dependency was removed:

Status Count Notes
✅ Passed 1,525 Fully passing all dtype variants
✅ Passed (some skipped) 7 Passing overall, some dtype variants skipped
⏭ Skipped 585 Expected skips: inplace variants (linalg ops have no in-place), @onlyCPU CUDA tests, NNC ops not fused, no-gradient ops, multi-GPU (only 1 GPU)
🔶 XFAIL 17 Pre-existing expected failures (e.g., lu, norm_nuc JIT, compare_cpu_linalg_lu*) — not regressions
❌ FAILED 0 ✅ Zero failures
➖ Not in logs 22 Test not generated for that op (e.g., geqrf/linalg_matrix_rank have no backward, no out-requires-grad, etc.)
Total 2,156

Bottom line:

  • 0 tests failed
  • 1,532 tests passing (1,525 + 7 "passed with some skipped")
  • 585 tests skipped (all expected / pre-existing)
  • 17 XFAIL (pre-existing expected failures, not regressions)
  • 22 not generated (N/A — ops that don't support those test types)

Skip Reason-

Category Skipped Patterns
test_meta.py inplace variants (linalg has no in-place ops) 168
test_ops_gradients.py inplace variants (linalg has no in-place ops) 84
Other (op/dtype-specific limitations) 123
test_fx_experimental.py (@onlyCPU decorator) 42
test_jit_fuser_te.py (NNC doesn't fuse linalg ops) 42
test_ops.py multi-device (only 1 GPU in CI) 42
test_ops.py test_tags (linalg ops have no tags) 42
test_ops_gradients.py test_fn_fail_gradgrad (op supports gradgrad) 42
Total 585

The trunk failure is unrelated to PR change. The test_extension_utils timed out (ran 33 min, exceeded the 30-min limit → exit code 124). It's a ROCm infra flakiness — pytest hung during collection/import, not a test logic failure. Unrelated to the PR.
https://github.com/pytorch/pytorch/actions/runs/28910027855/job/85767842211?pr=188720

The lint failure is not due to my PR changes: https://github.com/pytorch/pytorch/actions/runs/28910028195/job/86188389813?pr=188720#step:5:155

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames @chauhang @aakhundov @coconutruben

@pytorch-bot

pytorch-bot Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/188720

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 Awaiting Approval, 1 New Failure, 9 Unclassified Failures

As of commit f742660 with merge base b2662af (image):

AWAITING APPROVAL - The following workflow needs approval before CI can run:

NEW FAILURE - The following job has failed:

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot

pytorch-bot Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

Workflows were awaiting approval. CI has now been triggered for the ciflow labels on this PR.

@jithunnair-amd jithunnair-amd added ci-no-td Do not run TD on this PR ciflow/rocm-nightly Trigger "default" config CI on a nightly build of ROCm from theRock on MI300 ciflow/trunk Trigger trunk jobs on your pull request keep-going Don't stop on first failure, keep running tests until the end topic: not user facing topic category open source ciflow/rocm-mi200 Trigger "default" config CI on ROCm MI200 ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 labels Jul 1, 2026
@akashveramd
akashveramd force-pushed the av_remove_magma_cholesky_tests branch from 3d29ba2 to f9c8799 Compare July 8, 2026 00:40
@akashveramd akashveramd changed the title [ROCm] Enable linalg.eig and cholesky_ex via hipSOLVER xgeev (ROCm >= 7.14) [ROCm] Enable cholesky_ex via hipSOLVER xgeev (ROCm >= 7.14) Jul 8, 2026
@akashveramd akashveramd changed the title [ROCm] Enable cholesky_ex via hipSOLVER xgeev (ROCm >= 7.14) [ROCm] Enable cholesky_ex via hipSOLVER xgeev (ROCm >= 7.14) & remove Magma dependency on autogenerated tests Jul 9, 2026
@akashveramd akashveramd changed the title [ROCm] Enable cholesky_ex via hipSOLVER xgeev (ROCm >= 7.14) & remove Magma dependency on autogenerated tests [ROCm] Enable cholesky_ex via hipSOLVER xgeev (ROCm >= 7.14) & remove Magma dependency for autogenerated tests Jul 9, 2026
@akashveramd

akashveramd commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor Author

cholesky_ex test status-

Test Name Status Shard Log File
test_backward_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard4 test_ops_1.5_1bf95ed38175a2cd_.log
test_cholesky_ex_cuda_complex128 ✅ PASSED shard1 test_linalg_1.1_5fa01f8a86180b21_.log
test_cholesky_ex_cuda_complex64 ✅ PASSED shard1 test_linalg_1.1_5fa01f8a86180b21_.log
test_cholesky_ex_cuda_float32 ✅ PASSED shard1 test_linalg_1.1_5fa01f8a86180b21_.log
test_cholesky_ex_cuda_float64 ✅ PASSED shard1 test_linalg_1.1_5fa01f8a86180b21_.log
test_compare_cpu_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard2 test_ops_4.5_2c07e5f77183f360_.log
test_comprehensive_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard2 test_decomp_3.8_e0baf1532a7db690_.log
test_comprehensive_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard2 test_decomp_3.8_e0baf1532a7db690_.log
test_comprehensive_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 inductor.test_torchinductor_opinfo_3.6_bb2619345b31a336_.log
test_comprehensive_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard4 test_decomp_8.8_0e0e05ea90010eaf_.log
test_comprehensive_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard1 inductor.test_torchinductor_opinfo_3.6_bb2619345b31a336_.log
test_comprehensive_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard1 test_decomp_1.8_0945e4c0a7d9b778_.log
test_conj_view_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard3 test_ops_5.5_dc4a2fdaf2f1d318_.log
test_cow_input_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard2 test_ops_4.5_2c07e5f77183f360_.log
test_device_mode_ops_linalg_cholesky_ex_cuda_complex128 ⏭ SKIPPED shard4 test_utils_1.1_530d053b1625efd6_.log
test_device_mode_ops_linalg_cholesky_ex_cuda_complex64 ⏭ SKIPPED shard4 test_utils_1.1_530d053b1625efd6_.log
test_device_mode_ops_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard4 test_utils_1.1_530d053b1625efd6_.log
test_device_mode_ops_linalg_cholesky_ex_cuda_float64 ⏭ SKIPPED shard4 test_utils_1.1_530d053b1625efd6_.log
test_dispatch_meta_inplace_linalg_cholesky_ex_cuda_complex128 ⏭ SKIPPED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_dispatch_meta_inplace_linalg_cholesky_ex_cuda_complex64 ⏭ SKIPPED shard4 test_meta_3.3_9634440ba785a9dd_.log
test_dispatch_meta_inplace_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard3 test_meta_1.3_82e6ca998f39f113_.log
test_dispatch_meta_inplace_linalg_cholesky_ex_cuda_float64 ⏭ SKIPPED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_dispatch_meta_outplace_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard3 test_meta_1.3_82e6ca998f39f113_.log
test_dispatch_meta_outplace_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard4 test_meta_3.3_9634440ba785a9dd_.log
test_dispatch_meta_outplace_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard4 test_meta_3.3_9634440ba785a9dd_.log
test_dispatch_meta_outplace_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_dispatch_symbolic_meta_inplace_all_strides_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_dispatch_symbolic_meta_inplace_linalg_cholesky_ex_cuda_complex128 ⏭ SKIPPED shard4 test_meta_3.3_9634440ba785a9dd_.log
test_dispatch_symbolic_meta_inplace_linalg_cholesky_ex_cuda_complex64 ⏭ SKIPPED shard3 test_meta_1.3_82e6ca998f39f113_.log
test_dispatch_symbolic_meta_inplace_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard4 test_meta_3.3_9634440ba785a9dd_.log
test_dispatch_symbolic_meta_inplace_linalg_cholesky_ex_cuda_float64 ⏭ SKIPPED shard4 test_meta_3.3_9634440ba785a9dd_.log
test_dispatch_symbolic_meta_outplace_all_strides_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_dispatch_symbolic_meta_outplace_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard3 test_meta_1.3_82e6ca998f39f113_.log
test_dispatch_symbolic_meta_outplace_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard3 test_meta_1.3_82e6ca998f39f113_.log
test_dispatch_symbolic_meta_outplace_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_dispatch_symbolic_meta_outplace_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard4 test_meta_3.3_9634440ba785a9dd_.log
test_dtypes_linalg_cholesky_ex_cuda ✅ PASSED shard4 test_ops_3.5_b5bd9d66475763da_.log
test_fake_autocast_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 test_ops_2.5_b671f3637b3f8611_.log
test_fake_crossref_backward_amp_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard3 test_ops_5.5_dc4a2fdaf2f1d318_.log
test_fake_crossref_backward_no_amp_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard3 test_ops_5.5_dc4a2fdaf2f1d318_.log
test_fake_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard2 test_ops_4.5_2c07e5f77183f360_.log
test_fn_fail_gradgrad_linalg_cholesky_ex_cuda_complex128 ⏭ SKIPPED shard2 test_ops_gradients_1.1_c2a09c65892d529b_.log
test_fn_fail_gradgrad_linalg_cholesky_ex_cuda_float64 ⏭ SKIPPED shard2 test_ops_gradients_1.1_c2a09c65892d529b_.log
test_fn_fwgrad_bwgrad_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard3 test_ops_fwd_gradients_1.1_f73e7400d5af3b02_.log
test_fn_fwgrad_bwgrad_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard3 test_ops_fwd_gradients_1.1_f73e7400d5af3b02_.log
test_fn_grad_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard2 test_ops_gradients_1.1_c2a09c65892d529b_.log
test_fn_grad_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard2 test_ops_gradients_1.1_c2a09c65892d529b_.log
test_fn_gradgrad_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard2 test_ops_gradients_1.1_c2a09c65892d529b_.log
test_fn_gradgrad_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard2 test_ops_gradients_1.1_c2a09c65892d529b_.log
test_forward_ad_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard3 test_ops_5.5_dc4a2fdaf2f1d318_.log
test_forward_mode_AD_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard3 test_ops_fwd_gradients_1.1_f73e7400d5af3b02_.log
test_forward_mode_AD_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard3 test_ops_fwd_gradients_1.1_f73e7400d5af3b02_.log
test_get_torch_func_signature_exhaustive_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard4 test_fx_1.1_7a6a6ca720bf412f_.log
test_grad_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard5 functorch.test_ops_3.3_d15d6ba6a3afb9db_.log
test_inplace_forward_mode_AD_linalg_cholesky_ex_cuda_complex128 ⏭ SKIPPED shard3 test_ops_fwd_gradients_1.1_f73e7400d5af3b02_.log
test_inplace_forward_mode_AD_linalg_cholesky_ex_cuda_float64 ⏭ SKIPPED shard3 test_ops_fwd_gradients_1.1_f73e7400d5af3b02_.log
test_inplace_grad_linalg_cholesky_ex_cuda_complex128 ⏭ SKIPPED shard2 test_ops_gradients_1.1_c2a09c65892d529b_.log
test_inplace_grad_linalg_cholesky_ex_cuda_float64 ⏭ SKIPPED shard2 test_ops_gradients_1.1_c2a09c65892d529b_.log
test_inplace_gradgrad_linalg_cholesky_ex_cuda_complex128 ⏭ SKIPPED shard2 test_ops_gradients_1.1_c2a09c65892d529b_.log
test_inplace_gradgrad_linalg_cholesky_ex_cuda_float64 ⏭ SKIPPED shard2 test_ops_gradients_1.1_c2a09c65892d529b_.log
test_jvp_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard6 functorch.test_ops_1.3_ef18dd52046ff895_.log
test_jvpvjp_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 functorch.test_ops_2.3_c731e17ed167bce0_.log
test_meta_consistency_out_dtype_mismatch_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard4 test_ops_1.5_1bf95ed38175a2cd_.log
test_meta_inplace_linalg_cholesky_ex_cuda_complex128 ⏭ SKIPPED shard3 test_meta_1.3_82e6ca998f39f113_.log
test_meta_inplace_linalg_cholesky_ex_cuda_complex64 ⏭ SKIPPED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_meta_inplace_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_meta_inplace_linalg_cholesky_ex_cuda_float64 ⏭ SKIPPED shard3 test_meta_1.3_82e6ca998f39f113_.log
test_meta_outplace_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard4 test_meta_3.3_9634440ba785a9dd_.log
test_meta_outplace_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_meta_outplace_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_meta_outplace_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard1 test_meta_2.3_44f86d53000d8d57_.log
test_multiple_devices_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard1 test_ops_2.5_b671f3637b3f8611_.log
test_neg_conj_view_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard1 test_ops_2.5_b671f3637b3f8611_.log
test_neg_view_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard3 test_ops_5.5_dc4a2fdaf2f1d318_.log
test_nnc_correctness_linalg_cholesky_ex_cuda_complex128 ⏭ SKIPPED shard2 test_jit_fuser_te_2.2_ebe65e63803f71f8_.log
test_nnc_correctness_linalg_cholesky_ex_cuda_complex64 ⏭ SKIPPED shard2 test_jit_fuser_te_2.2_ebe65e63803f71f8_.log
test_nnc_correctness_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard2 test_jit_fuser_te_2.2_ebe65e63803f71f8_.log
test_nnc_correctness_linalg_cholesky_ex_cuda_float64 ⏭ SKIPPED shard3 test_jit_fuser_te_1.2_f9b18d4e20b2b706_.log
test_noncontiguous_samples_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard3 test_ops_5.5_dc4a2fdaf2f1d318_.log
test_noncontiguous_samples_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard4 test_ops_3.5_b5bd9d66475763da_.log
test_normalize_operator_exhaustive_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard4 test_fx_experimental_1.1_3bc3ddf5acd7da66_.log
test_op_has_batch_rule_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard2 functorch.test_vmap_1.1_8c34762f3107da6b_.log
test_operator_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard4 test_ops_1.5_1bf95ed38175a2cd_.log
test_opinfo_sample_generators_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard4 test_testing_1.1_ca264b67495a2e29_.log
test_out_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 test_ops_2.5_b671f3637b3f8611_.log
test_out_requires_grad_error_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard2 test_ops_4.5_2c07e5f77183f360_.log
test_out_requires_grad_error_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard3 test_ops_5.5_dc4a2fdaf2f1d318_.log
test_out_warning_linalg_cholesky_ex_cuda ✅ PASSED shard1 test_ops_2.5_b671f3637b3f8611_.log
test_pointwise_ops_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard4 test_ops_1.5_1bf95ed38175a2cd_.log
test_redispatch_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard1 test_overrides_1.1_42814241c7d0d527_.log
test_redispatch_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard1 test_overrides_1.1_42814241c7d0d527_.log
test_redispatch_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 test_overrides_1.1_42814241c7d0d527_.log
test_redispatch_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard1 test_overrides_1.1_42814241c7d0d527_.log
test_schema_correctness_linalg_cholesky_ex_cuda_complex128 ✅ PASSED shard2 test_schema_check_1.1_2f5e1599ae6b20a1_.log
test_schema_correctness_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard2 test_schema_check_1.1_2f5e1599ae6b20a1_.log
test_schema_correctness_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard2 test_schema_check_1.1_2f5e1599ae6b20a1_.log
test_schema_correctness_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard2 test_schema_check_1.1_2f5e1599ae6b20a1_.log
test_tags_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard4 test_ops_3.5_b5bd9d66475763da_.log
test_unsupported_linalg_cholesky_ex_cuda_float32 ⏭ SKIPPED shard2 test_jit_fuser_te_2.2_ebe65e63803f71f8_.log
test_variant_consistency_eager_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard3 test_ops_5.5_dc4a2fdaf2f1d318_.log
test_variant_consistency_eager_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard4 test_ops_1.5_1bf95ed38175a2cd_.log
test_variant_consistency_jit_linalg_cholesky_ex_cuda_complex64 ✅ PASSED shard5 test_ops_jit_1.1_2833e408542b07d3_.log
test_variant_consistency_jit_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard5 test_ops_jit_1.1_2833e408542b07d3_.log
test_view_replay_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard3 test_ops_5.5_dc4a2fdaf2f1d318_.log
test_vjp_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 functorch.test_ops_2.3_c731e17ed167bce0_.log
test_vjpvjp_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 functorch.test_ops_2.3_c731e17ed167bce0_.log
test_vjpvmap_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard5 functorch.test_ops_3.3_d15d6ba6a3afb9db_.log
test_vmap_autograd_grad_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 functorch.test_ops_2.3_c731e17ed167bce0_.log
test_vmap_autograd_grad_linalg_cholesky_ex_cuda_float64 ✅ PASSED shard5 functorch.test_ops_3.3_d15d6ba6a3afb9db_.log
test_vmap_exhaustive_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard2 functorch.test_vmap_1.1_8c34762f3107da6b_.log
test_vmap_linalg_failure_1D_input_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard2 functorch.test_vmap_1.1_8c34762f3107da6b_.log
test_vmapjvpall_has_batch_rule_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard6 functorch.test_ops_1.3_ef18dd52046ff895_.log
test_vmapjvpall_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard1 functorch.test_ops_2.3_c731e17ed167bce0_.log
test_vmapjvpvjp_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard5 functorch.test_ops_3.3_d15d6ba6a3afb9db_.log
test_vmapvjp_has_batch_rule_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard5 functorch.test_ops_3.3_d15d6ba6a3afb9db_.log
test_vmapvjp_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard6 functorch.test_ops_1.3_ef18dd52046ff895_.log
test_vmapvjpvjp_linalg_cholesky_ex_cuda_float32 ✅ PASSED shard6 functorch.test_ops_1.3_ef18dd52046ff895_.log

Total: 117 test instances — 82 ✅ PASSED, 35 ⏭ SKIPPED, 0 ❌ FAILED

Skip reasons (unrelated to Magma dependency)-

Reason Count
No in-place variant exists for this op 19
@onlyCPU decorator (test only runs on CPU by design) 6
NNC/TensorExprKernel does not fuse linalg ops 5
test_fn_fail_gradgrad skips when op does support gradgrad (expected) 2
Only 1 GPU in CI (test requires 2+) 1
No in-place gradient support 2

All skips are pre-existing, structural, and unrelated to Magma/cuSOLVER/hipSOLVER.

@akashveramd
akashveramd marked this pull request as ready for review July 9, 2026 23:09
@jbschlosser
jbschlosser requested a review from jeffdaily July 10, 2026 17:39
@jbschlosser jbschlosser added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Jul 10, 2026
@jithunnair-amd

Copy link
Copy Markdown
Collaborator

@akashveramd Please look into the failures/timeouts on MI200 and MI300

@jithunnair-amd

Copy link
Copy Markdown
Collaborator

We dug into the MI200 and MI300 failures and they are unrelated to this PR:

  1. MI200 was under-sharded (6 shards) compared to trunk-rocm-sandbox.yml, which runs 10 shards without timeouts
  2. MI300 was timing out due to network issues on the MI300 cluster (evidenced by high docker pull and git checkout times in the timed out jobs)
  3. trunk failure is unrelated as mentioned in Dr CI comment

@jithunnair-amd

Copy link
Copy Markdown
Collaborator

@pytorchbot merge -f "failures unrelated; Lint clean"

@jithunnair-amd
jithunnair-amd marked this pull request as ready for review July 15, 2026 21:06
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
… Magma dependency for autogenerated tests (pytorch#188720)

hipSOLVER >= 3.5.0 (ROCm >= 7.14) introduced hipsolverDnXgeev, the ROCm equivalent of cuSOLVER's cusolverDnXgeev. This PR leverages that support to enable non-Hermitian eigendecomposition (linalg.eig) and cholesky_ex on ROCm without requiring MAGMA.

Here is the status of the PR-
Confirmed the status of all enabled tests (cholesky_ex & autogenerated tests) from logs downloaded from https://github.com/pytorch/pytorch/actions/runs/28910025721/job/85778404018?pr=188720
For 6 shards, there are 6 sets containing multiple log files-
[logs-runattempt1-test-default-1-6-linux.rocm.gpu.gfx942.1_85778404018.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160032112)
[logs-runattempt1-test-default-2-6-linux.rocm.gpu.gfx942.1_85778404014.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160160292)
[logs-runattempt1-test-default-3-6-linux.rocm.gpu.gfx942.1_85778403989.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8159877291)
[logs-runattempt1-test-default-4-6-linux.rocm.gpu.gfx942.1_85778404005.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160331467)
[logs-runattempt1-test-default-5-6-linux.rocm.gpu.gfx942.1_85778404001.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8159922006)
[logs-runattempt1-test-default-6-6-linux.rocm.gpu.gfx942.1_85778403985.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160273064)

**cholesky_ex test is passing:**
See the status of it in comment pytorch#188720 (comment)

**Successfully remove Magma dependency for autogenerated tests:**
Here is the status of autogenerated tests for which Magma dependency was removed:

| Status | Count | Notes |
|---|---|---|
| ✅ Passed | 1,525 | Fully passing all dtype variants |
| ✅ Passed (some skipped) | 7 | Passing overall, some dtype variants skipped |
| ⏭ Skipped | 585 | Expected skips: inplace variants (linalg ops have no in-place), `@onlyCPU` CUDA tests, NNC ops not fused, no-gradient ops, multi-GPU (only 1 GPU) |
| 🔶 XFAIL | 17 | Pre-existing expected failures (e.g., `lu`, `norm_nuc` JIT, `compare_cpu_linalg_lu*`) — not regressions |
| ❌ FAILED | 0 | ✅ Zero failures |
| ➖ Not in logs | 22 | Test not generated for that op (e.g., `geqrf`/`linalg_matrix_rank` have no backward, no out-requires-grad, etc.) |
| **Total** | **2,156** | |

**Bottom line:**
- **0 tests failed**
- **1,532 tests passing** (1,525 + 7 "passed with some skipped")
- **585 tests skipped** (all expected / pre-existing)
- **17 XFAIL** (pre-existing expected failures, not regressions)
- **22 not generated** (N/A — ops that don't support those test types)

**Skip Reason-**
| Category | Skipped Patterns |
|---|---|
| `test_meta.py` inplace variants (linalg has no in-place ops) | 168 |
| `test_ops_gradients.py` inplace variants (linalg has no in-place ops) | 84 |
| Other (op/dtype-specific limitations) | 123 |
| `test_fx_experimental.py` (`@onlyCPU` decorator) | 42 |
| `test_jit_fuser_te.py` (NNC doesn't fuse linalg ops) | 42 |
| `test_ops.py` multi-device (only 1 GPU in CI) | 42 |
| `test_ops.py` test_tags (linalg ops have no tags) | 42 |
| `test_ops_gradients.py` test_fn_fail_gradgrad (op supports gradgrad) | 42 |
| **Total** | **585** |

**The trunk failure is unrelated to PR change. The test_extension_utils timed out (ran 33 min, exceeded the 30-min limit → exit code 124). It's a ROCm infra flakiness — pytest hung during collection/import, not a test logic failure. Unrelated to the PR.**
https://github.com/pytorch/pytorch/actions/runs/28910027855/job/85767842211?pr=188720

**The lint failure is not due to my PR changes:** https://github.com/pytorch/pytorch/actions/runs/28910028195/job/86188389813?pr=188720#step:5:155

Pull Request resolved: pytorch#188720
Approved by: https://github.com/jithunnair-amd, https://github.com/jeffdaily
akashveramd added a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
…emove Magma dependency for autogenerated tests

Raw cherry-pick of upstream commit 29288fe.
Conflicts in:
  - test/inductor/test_torchinductor.py
  - test/test_linalg.py
  - torch/testing/_internal/opinfo/definitions/linalg.py
(conflict markers present in those files)

Co-authored-by: Cursor <[email protected]>
akashveramd pushed a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
…OLVER, remove Magma for autogenerated tests

Conflicts in three files resolved:

test/inductor/test_torchinductor.py (1 conflict):
  Decorator for test_linalg_eig_stride_consistency: HEAD had old
  @unittest.skipIf(TEST_WITH_ROCM and not torch.cuda.has_magma, ...) @skipIfMPS.
  PR replaces with @xfail_if_mps_unimplemented @skipIfNoLapack.
  Resolution: took PR's version (hipSOLVER now supports eig on ROCm).

test/test_linalg.py (2 conflicts):
1. Import line: PR removes skipCUDAIfNoMagmaAndNoCusolver, skipCUDAIfRocm, adds
   onlyAccelerator. Kept skipCUDAIfNoMagmaAndNoCusolver and skipCUDAIfRocm (still
   used in this file); dropped onlyAccelerator (not defined in release/2.11).
2. test_cholesky_ex decorator (large block, line ~735): HEAD had a large block of
   old torch.cholesky tests (test_old_cholesky_batched_many_batches, etc.) between
   prior tests and @skipCUDAIfNoCusolver for test_cholesky_ex. PR changes decorator
   to @skipCUDAIfNoMagmaAndNoLinalgsolver. Resolution: kept all HEAD's old cholesky
   tests and used PR's new decorator for test_cholesky_ex.

torch/testing/_internal/opinfo/definitions/linalg.py (1 conflict):
  PR adds linalg.matrix_sqrth OpInfo that references sample_inputs_linalg_matrix_sqrth
  function not defined in release/2.11. Resolved by taking HEAD's version (omitting
  the OpInfo) to avoid NameError at import time.

Co-authored-by: Cursor <[email protected]>
akashveramd pushed a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
…MagmaAndNoLinalgsolver in torch.cholesky OpInfo

The auto-merge of PR pytorch#188720 removed 'skipCUDAIfNoMagma' from the import in
common_methods_invocations.py, but the torch.cholesky OpInfo still used it at
line ~13198. This caused a NameError at import time.

Fix: replaced skipCUDAIfNoMagma with skipCUDAIfNoMagmaAndNoLinalgsolver in the
torch.cholesky OpInfo decorator, consistent with the rest of the file after the
PR's auto-merged changes.

Co-authored-by: Cursor <[email protected]>
akashveramd pushed a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
Add @skipCUDAIf guards to all torch.linalg.eig tests that would fail on
ROCm < 7.14 where hipSOLVER does not expose xgeev (needed for
non-symmetric eig). Also add the same guard to
test_linalg_eig_stride_consistency in test_torchinductor.py.

Co-authored-by: Cursor <[email protected]>
akashveramd pushed a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
…to test_linalg.py

The ROCm version guard decorators added in the previous commit referenced
_get_torch_rocm_version but it was not included in the common_cuda import.

Co-authored-by: Cursor <[email protected]>
akashveramd pushed a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
akashveramd added a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
…emove Magma dependency for autogenerated tests

Co-authored-by: Cursor <[email protected]>
akashveramd pushed a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
…OLVER, remove Magma for autogenerated tests

test_linalg.py:
- Kept all test_old_cholesky* tests (removed upstream by a different unbackported PR)
- Changed @skipCUDAIfNoMagmaAndNoCusolver -> @skipCUDAIfNoMagmaAndNoLinalgsolver on test_cholesky_ex only
test_torchinductor.py:
- Replaced old ROCm+Magma skipIf with @xfail_if_mps_unimplemented + @skipIfNoLapack (PR's intent)
opinfo/definitions/linalg.py:
- Dropped linalg.matrix_sqrth OpInfo (operator does not exist in 2.11)

Co-authored-by: Cursor <[email protected]>
akashveramd pushed a commit to akashveramd/pytorch that referenced this pull request Jul 21, 2026
jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Jul 27, 2026
…ma dependency (#3455)

## Summary

Backports 6 upstream PyTorch PRs to `release/2.13` that enable ROCm
linear algebra tests and remove the Magma dependency by routing through
hipSOLVER (ROCm >= 7.14):

- **pytorch#180303** – Replace `skipCUDAIfNoMagmaAndNoCusolver` with
`skipCUDAIfNoMagmaAndNoLinalgsolver` across linalg tests and OpInfo
definitions, enabling tests on ROCm via hipSOLVER
- **pytorch#187703** – Re-enable `test_preferred_linalg_library` test for ROCm
- **pytorch#185557** – Enable `linalg.eig` / `ldl_solve` via hipSOLVER `xgeev`
(ROCm >= 7.14); enable `test_linalg_solve` and `test_triangular_solve`
via cuBLAS path
- **pytorch#187011** – Merge `test_norm_matrix_degenerate_shapes` variants into
a single test that handles both old and new NumPy behavior
- **pytorch#186122** – Enable `test_inverse_errors_large` and
`test_lu_solve_batched_many_batches` linalg tests on ROCm
- **pytorch#188720** – Enable `cholesky_ex` via hipSOLVER and remove Magma
dependency for autogenerated linalg tests

## Key C++ changes
- `BatchLinearAlgebraLib.cpp/h`, `CUDASolver.cpp/h`: extend `xgeev`,
`xpotrs`, `ldl_solve` and related 64-bit solver paths to compile and run
on ROCm >= 7.14 (`USE_ROCM && ROCM_VERSION >= 71400`)
- `BatchLinearAlgebra.cpp`: route `linalg_eig_kernel` through hipSOLVER
`xgeev` on ROCm >= 7.14 instead of Magma
- `cuda_to_hip_mappings.py`: add hipify mappings for `cusolverDnXgeev`,
`cusolverDnCreateParams`/`DestroyParams`, and related symbols

## Test changes
- Replace `@skipCUDAIfNoMagma` / `@skipCUDAIfNoMagmaAndNoCusolver` with
`@skipCUDAIfNoMagmaAndNoLinalgsolver` across `test_linalg.py`,
`common_methods_invocations.py`, and `opinfo/definitions/linalg.py`
- Remove ROCm-specific `skipIf` skips for
`test_linalg_eig_stride_consistency` in inductor tests
- Add ROCm version guard (`ROCM_VERSION < (7, 14)`) for `linalg.eig` /
`linalg.eigvals` OpInfos on older ROCm without hipSOLVER `xgeev` support

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport
@jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang
@jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10
@aditew01 @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe
@blzheng @wenzhe-nrv @jiayisunx @ipiszy @kadeng @muchulee8 @amjames
@chauhang @aakhundov @coconutruben @azahed98

Co-authored-by: Akash Verma <[email protected]>
Co-authored-by: Cursor <[email protected]>
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
… Magma dependency for autogenerated tests (pytorch#188720)

hipSOLVER >= 3.5.0 (ROCm >= 7.14) introduced hipsolverDnXgeev, the ROCm equivalent of cuSOLVER's cusolverDnXgeev. This PR leverages that support to enable non-Hermitian eigendecomposition (linalg.eig) and cholesky_ex on ROCm without requiring MAGMA.

Here is the status of the PR-
Confirmed the status of all enabled tests (cholesky_ex & autogenerated tests) from logs downloaded from https://github.com/pytorch/pytorch/actions/runs/28910025721/job/85778404018?pr=188720
For 6 shards, there are 6 sets containing multiple log files-
[logs-runattempt1-test-default-1-6-linux.rocm.gpu.gfx942.1_85778404018.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160032112)
[logs-runattempt1-test-default-2-6-linux.rocm.gpu.gfx942.1_85778404014.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160160292)
[logs-runattempt1-test-default-3-6-linux.rocm.gpu.gfx942.1_85778403989.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8159877291)
[logs-runattempt1-test-default-4-6-linux.rocm.gpu.gfx942.1_85778404005.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160331467)
[logs-runattempt1-test-default-5-6-linux.rocm.gpu.gfx942.1_85778404001.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8159922006)
[logs-runattempt1-test-default-6-6-linux.rocm.gpu.gfx942.1_85778403985.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160273064)

**cholesky_ex test is passing:**
See the status of it in comment pytorch#188720 (comment)

**Successfully remove Magma dependency for autogenerated tests:**
Here is the status of autogenerated tests for which Magma dependency was removed:

| Status | Count | Notes |
|---|---|---|
| ✅ Passed | 1,525 | Fully passing all dtype variants |
| ✅ Passed (some skipped) | 7 | Passing overall, some dtype variants skipped |
| ⏭ Skipped | 585 | Expected skips: inplace variants (linalg ops have no in-place), `@onlyCPU` CUDA tests, NNC ops not fused, no-gradient ops, multi-GPU (only 1 GPU) |
| 🔶 XFAIL | 17 | Pre-existing expected failures (e.g., `lu`, `norm_nuc` JIT, `compare_cpu_linalg_lu*`) — not regressions |
| ❌ FAILED | 0 | ✅ Zero failures |
| ➖ Not in logs | 22 | Test not generated for that op (e.g., `geqrf`/`linalg_matrix_rank` have no backward, no out-requires-grad, etc.) |
| **Total** | **2,156** | |

**Bottom line:**
- **0 tests failed**
- **1,532 tests passing** (1,525 + 7 "passed with some skipped")
- **585 tests skipped** (all expected / pre-existing)
- **17 XFAIL** (pre-existing expected failures, not regressions)
- **22 not generated** (N/A — ops that don't support those test types)

**Skip Reason-**
| Category | Skipped Patterns |
|---|---|
| `test_meta.py` inplace variants (linalg has no in-place ops) | 168 |
| `test_ops_gradients.py` inplace variants (linalg has no in-place ops) | 84 |
| Other (op/dtype-specific limitations) | 123 |
| `test_fx_experimental.py` (`@onlyCPU` decorator) | 42 |
| `test_jit_fuser_te.py` (NNC doesn't fuse linalg ops) | 42 |
| `test_ops.py` multi-device (only 1 GPU in CI) | 42 |
| `test_ops.py` test_tags (linalg ops have no tags) | 42 |
| `test_ops_gradients.py` test_fn_fail_gradgrad (op supports gradgrad) | 42 |
| **Total** | **585** |

**The trunk failure is unrelated to PR change. The test_extension_utils timed out (ran 33 min, exceeded the 30-min limit → exit code 124). It's a ROCm infra flakiness — pytest hung during collection/import, not a test logic failure. Unrelated to the PR.**
https://github.com/pytorch/pytorch/actions/runs/28910027855/job/85767842211?pr=188720

**The lint failure is not due to my PR changes:** https://github.com/pytorch/pytorch/actions/runs/28910028195/job/86188389813?pr=188720#step:5:155

Pull Request resolved: pytorch#188720
Approved by: https://github.com/jithunnair-amd, https://github.com/jeffdaily
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
… Magma dependency for autogenerated tests (pytorch#188720)

hipSOLVER >= 3.5.0 (ROCm >= 7.14) introduced hipsolverDnXgeev, the ROCm equivalent of cuSOLVER's cusolverDnXgeev. This PR leverages that support to enable non-Hermitian eigendecomposition (linalg.eig) and cholesky_ex on ROCm without requiring MAGMA.

Here is the status of the PR-
Confirmed the status of all enabled tests (cholesky_ex & autogenerated tests) from logs downloaded from https://github.com/pytorch/pytorch/actions/runs/28910025721/job/85778404018?pr=188720
For 6 shards, there are 6 sets containing multiple log files-
[logs-runattempt1-test-default-1-6-linux.rocm.gpu.gfx942.1_85778404018.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160032112)
[logs-runattempt1-test-default-2-6-linux.rocm.gpu.gfx942.1_85778404014.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160160292)
[logs-runattempt1-test-default-3-6-linux.rocm.gpu.gfx942.1_85778403989.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8159877291)
[logs-runattempt1-test-default-4-6-linux.rocm.gpu.gfx942.1_85778404005.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160331467)
[logs-runattempt1-test-default-5-6-linux.rocm.gpu.gfx942.1_85778404001.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8159922006)
[logs-runattempt1-test-default-6-6-linux.rocm.gpu.gfx942.1_85778403985.zip](https://github.com/pytorch/pytorch/actions/runs/28910025721/artifacts/8160273064)

**cholesky_ex test is passing:**
See the status of it in comment pytorch#188720 (comment)

**Successfully remove Magma dependency for autogenerated tests:**
Here is the status of autogenerated tests for which Magma dependency was removed:

| Status | Count | Notes |
|---|---|---|
| ✅ Passed | 1,525 | Fully passing all dtype variants |
| ✅ Passed (some skipped) | 7 | Passing overall, some dtype variants skipped |
| ⏭ Skipped | 585 | Expected skips: inplace variants (linalg ops have no in-place), `@onlyCPU` CUDA tests, NNC ops not fused, no-gradient ops, multi-GPU (only 1 GPU) |
| 🔶 XFAIL | 17 | Pre-existing expected failures (e.g., `lu`, `norm_nuc` JIT, `compare_cpu_linalg_lu*`) — not regressions |
| ❌ FAILED | 0 | ✅ Zero failures |
| ➖ Not in logs | 22 | Test not generated for that op (e.g., `geqrf`/`linalg_matrix_rank` have no backward, no out-requires-grad, etc.) |
| **Total** | **2,156** | |

**Bottom line:**
- **0 tests failed**
- **1,532 tests passing** (1,525 + 7 "passed with some skipped")
- **585 tests skipped** (all expected / pre-existing)
- **17 XFAIL** (pre-existing expected failures, not regressions)
- **22 not generated** (N/A — ops that don't support those test types)

**Skip Reason-**
| Category | Skipped Patterns |
|---|---|
| `test_meta.py` inplace variants (linalg has no in-place ops) | 168 |
| `test_ops_gradients.py` inplace variants (linalg has no in-place ops) | 84 |
| Other (op/dtype-specific limitations) | 123 |
| `test_fx_experimental.py` (`@onlyCPU` decorator) | 42 |
| `test_jit_fuser_te.py` (NNC doesn't fuse linalg ops) | 42 |
| `test_ops.py` multi-device (only 1 GPU in CI) | 42 |
| `test_ops.py` test_tags (linalg ops have no tags) | 42 |
| `test_ops_gradients.py` test_fn_fail_gradgrad (op supports gradgrad) | 42 |
| **Total** | **585** |

**The trunk failure is unrelated to PR change. The test_extension_utils timed out (ran 33 min, exceeded the 30-min limit → exit code 124). It's a ROCm infra flakiness — pytest hung during collection/import, not a test logic failure. Unrelated to the PR.**
https://github.com/pytorch/pytorch/actions/runs/28910027855/job/85767842211?pr=188720

**The lint failure is not due to my PR changes:** https://github.com/pytorch/pytorch/actions/runs/28910028195/job/86188389813?pr=188720#step:5:155

Pull Request resolved: pytorch#188720
Approved by: https://github.com/jithunnair-amd, https://github.com/jeffdaily
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-no-td Do not run TD on this PR ciflow/inductor ciflow/rocm-mi200 Trigger "default" config CI on ROCm MI200 ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 ciflow/rocm-nightly Trigger "default" config CI on a nightly build of ROCm from theRock on MI300 ciflow/trunk Trigger trunk jobs on your pull request keep-going Don't stop on first failure, keep running tests until the end Merged module: inductor module: rocm AMD GPU support for Pytorch open source release notes: linalg_frontend release notes category topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants