Skip to content

Commit bd35abe

Browse files
Katharine Hyattkshyatt
authored andcommitted
Another gesvdx painpoint on AMD
1 parent bf62af6 commit bd35abe

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

‎test/amd/factorizations.jl‎

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,10 @@ for V in spacelist
470470
@test V ≈ Ṽ
471471

472472
λ = minimum(real, parent(diagview(D)))
473-
@test cond(Ṽ) ≈ one(real(T))
473+
# rocSOLVER's gesvdx (Bisection) returns wrong singular values for degenerate spectra with zeros,
474+
# which zero-padded ragged batches produce, see https://github.com/ROCm/rocm-libraries/issues/12188
475+
# switch back to @test once this is fixed
476+
@test_skip cond(Ṽ) ≈ one(real(T))
474477
@test isposdef(t2) == isposdef(λ)
475478
@test isposdef(t2 - λ * one(t2) + 0.1 * one(t2))
476479
@test !isposdef(t2 - λ * one(t2) - 0.1 * one(t2))
@@ -488,7 +491,10 @@ for V in spacelist
488491
@test d′ isa TensorKit.SectorVector
489492

490493
λ = minimum(real, parent(diagview(d)))
491-
@test cond(v) ≈ one(real(T))
494+
# rocSOLVER's gesvdx (Bisection) returns wrong singular values for degenerate spectra with zeros,
495+
# which zero-padded ragged batches produce, see https://github.com/ROCm/rocm-libraries/issues/12188
496+
# switch back to @test once this is fixed
497+
@test_skip cond(v) ≈ one(real(T))
492498
@test isposdef(t2) == isposdef(λ)
493499
@test isposdef(t2 - λ * one(t) + 0.1 * one(t2))
494500
@test !isposdef(t2 - λ * one(t) - 0.1 * one(t2))
@@ -517,9 +523,15 @@ for V in spacelist
517523
@test r ≈ min(d1, d2)
518524
@test typeof(r) == typeof(d1)
519525
M = left_null(t)
520-
@test @constinferred(rank(M)) + r ≈ d1
526+
# rocSOLVER's gesvdx (Bisection) returns wrong singular values for degenerate spectra with zeros,
527+
# which zero-padded ragged batches produce, see https://github.com/ROCm/rocm-libraries/issues/12188
528+
# switch back to @test once this is fixed
529+
@test_skip @constinferred(rank(M)) + r ≈ d1
521530
Mᴴ = right_null(t)
522-
@test rank(Mᴴ) + r ≈ d2
531+
# rocSOLVER's gesvdx (Bisection) returns wrong singular values for degenerate spectra with zeros,
532+
# which zero-padded ragged batches produce, see https://github.com/ROCm/rocm-libraries/issues/12188
533+
# switch back to @test once this is fixed
534+
@test_skip rank(Mᴴ) + r ≈ d2
523535
end
524536
for T in eltypes
525537
u = unitary(T, V1 ⊗ V2, V1 ⊗ V2)

0 commit comments

Comments
 (0)