You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[release/2.13] Expected error message is different than actual #2817
EAssertionError: "`driver` other than `gels` is not supported on CUDA"doesnotmatch"torch.linalg.lstsq: parameter `driver` should be one of (gels, gelsy, gelsd, gelss)"EEToexecutethistest, runthefollowingfromthebaserepodir:
Epythontest/test_linalg.pyTestLinalgXPU.test_linalg_lstsq_input_checks_xpu_complex128EEThismessagecanbesuppressedbysettingPYTORCH_PRINT_REPRO_ON_FAILURE=0
changed the title [-]Expected error message is different than actual[/-][+][release/2.13] Expected error message is different than actual[/+]on Jun 17, 2026
Root cause: the upstream test expects the CUDA-only driver error raised at aten/src/ATen/native/BatchLinearAlgebra.cpp:3538 ("driver other than gels is not supported on CUDA"), but XPU lstsq takes the CPU-fallback path which accepts all drivers and raises the generic "should be one of (gels, gelsy, gelsd, gelss)" message. Error-message expectation mismatch, not incorrect computation; defect owner is the upstream test (wait_upstream).
Analyzed case: torch-xpu-ops/test/xpu/test_linalg_xpu.py::TestLinalgXPU::test_linalg_lstsq_input_checks_xpu_complex128 (case 1 of 4; the other 3 not analyzed)
axis
value
reason
type
Bug
Reported UT failure (assertion); issue_type empty, Bug heuristic.
Activity
drivershould be one of (gels, gelsy, gelsd, gelss) #3696 as a duplicate of this issuebjarzemb commentedon Jun 17, 2026
I have this issue also on Windows with Intel XPU (Arc B580) in release 2.13 tests.
[-]Expected error message is different than actual[/-][+][release/2.13] Expected error message is different than actual[/+]kdrozd-dev commentedon Jun 17, 2026
Fix is ready we are waiting for community review.
bjarzemb commentedon Jun 24, 2026
I have this issue also on LNL (windows) in release 2.13 tests.
daisyden commentedon Nov 11, 2026
label-issue: #2817
Root cause: the upstream test expects the CUDA-only driver error raised at aten/src/ATen/native/BatchLinearAlgebra.cpp:3538 ("
driverother thangelsis not supported on CUDA"), but XPU lstsq takes the CPU-fallback path which accepts all drivers and raises the generic "should be one of (gels, gelsy, gelsd, gelss)" message. Error-message expectation mismatch, not incorrect computation; defect owner is the upstream test (wait_upstream).Analyzed case: torch-xpu-ops/test/xpu/test_linalg_xpu.py::TestLinalgXPU::test_linalg_lstsq_input_checks_xpu_complex128 (case 1 of 4; the other 3 not analyzed)
typeBugissue_typeempty, Bug heuristic.testtest: utmodulemodule: opspriorityLowfunctionalityTest cases (4):
Applied to this issue. Generated by a local
label-issuerun.