Skip to content

Commit 4dabf1a

Browse files
committed
update GPU tests
1 parent 94d62d2 commit 4dabf1a

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

test/amd/eigh.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151
@test A * V1 ≈ V1 * D1
5252
@test LinearAlgebra.opnorm(A - V1 * D1 * V1') ≈ D₀[r + 1]
5353
54-
trunc = trunctol(s * D₀[r + 1])
54+
trunc = trunctol(; atol=s * D₀[r + 1])
5555
D2, V2 = @constinferred eigh_trunc(A; alg, trunc)
5656
@test length(diagview(D2)) == r
5757
@test isisometry(V2)

test/amd/svd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,9 @@ end
108108
# @test LinearAlgebra.opnorm(A - U1 * S1 * V1ᴴ) ≈ S₀[r + 1]
109109

110110
# s = 1 + sqrt(eps(real(T)))
111-
# trunc2 = trunctol(s * S₀[r + 1])
111+
# trunc2 = trunctol(; atol=s * S₀[r + 1])
112112

113-
# U2, S2, V2ᴴ = @constinferred svd_trunc(A; alg, trunc=trunctol(s * S₀[r + 1]))
113+
# U2, S2, V2ᴴ = @constinferred svd_trunc(A; alg, trunc=trunctol(; atol=s * S₀[r + 1]))
114114
# @test length(S2.diag) == r
115115
# @test U1 ≈ U2
116116
# @test S1 ≈ S2

test/cuda/eig.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ end
4949
@test A * V1 ≈ V1 * D1
5050
5151
s = 1 + sqrt(eps(real(T)))
52-
trunc = trunctol(s * abs(D₀[r + 1]))
52+
trunc = trunctol(; atol=s * abs(D₀[r + 1]))
5353
D2, V2 = @constinferred eig_trunc(A; alg, trunc)
5454
@test length(diagview(D2)) == r
5555
@test A * V2 ≈ V2 * D2

test/cuda/eigh.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ end
4949
@test A * V1 ≈ V1 * D1
5050
@test LinearAlgebra.opnorm(A - V1 * D1 * V1') ≈ D₀[r + 1]
5151
52-
trunc = trunctol(s * D₀[r + 1])
52+
trunc = trunctol(; atol = s * D₀[r + 1])
5353
D2, V2 = @constinferred eigh_trunc(A; alg, trunc)
5454
@test length(diagview(D2)) == r
5555
@test isisometry(V2)

test/cuda/svd.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ end
109109

110110
if !(alg isa CUSOLVER_Randomized)
111111
s = 1 + sqrt(eps(real(T)))
112-
trunc2 = trunctol(s * S₀[r + 1])
112+
trunc2 = trunctol(; atol=s * S₀[r + 1])
113113

114-
U2, S2, V2ᴴ = @constinferred svd_trunc(A; alg, trunc=trunctol(s * S₀[r + 1]))
114+
U2, S2, V2ᴴ = @constinferred svd_trunc(A; alg, trunc=trunctol(; atol=s * S₀[r + 1]))
115115
@test length(S2.diag) == r
116116
@test U1 U2
117117
@test parent(S1) parent(S2)

0 commit comments

Comments
 (0)