Skip to content

Commit 1744416

Browse files
committed
more more more AMD fixes
1 parent 878b428 commit 1744416

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

test/amd/orthnull.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ eltypes = (Float32, Float64, ComplexF32, ComplexF64)
140140
# with alg and tol kwargs
141141
if alg == :svd
142142
V2, C2 = @constinferred left_orth!(copy!(Ac, A), (V, C); alg = $(QuoteNode(alg)), trunc = (; atol))
143-
N2 = @constinferred left_null!(copy!(Ac, A), N; alg, trunc = (; atol))
143+
AMDGPU.@allowscalar begin
144+
N2 = @constinferred left_null!(copy!(Ac, A), N; alg, trunc = (; atol))
145+
end
144146
@test V2 * C2 A
145147
@test isisometric(V2)
146148
@test LinearAlgebra.norm(A' * N2) 0 atol = MatrixAlgebraKit.defaulttol(T)
@@ -150,7 +152,9 @@ eltypes = (Float32, Float64, ComplexF32, ComplexF64)
150152
@test hV2 * hV2' + hN2 * hN2' I
151153

152154
V2, C2 = @constinferred left_orth!(copy!(Ac, A), (V, C); alg = $(QuoteNode(alg)), trunc = (; rtol))
153-
N2 = @constinferred left_null!(copy!(Ac, A), N; alg, trunc = (; rtol))
155+
AMDGPU.@allowscalar begin
156+
N2 = @constinferred left_null!(copy!(Ac, A), N; alg, trunc = (; rtol))
157+
end
154158
@test V2 * C2 A
155159
@test isisometric(V2)
156160
@test LinearAlgebra.norm(A' * N2) 0 atol = MatrixAlgebraKit.defaulttol(T)

0 commit comments

Comments
 (0)