Skip to content

Commit 3870ac8

Browse files
committed
Test some warnings
1 parent 5ce3656 commit 3870ac8

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

test/amd/svd.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ include(joinpath("..", "utilities.jl"))
4040
Sd = svd_vals(A, alg)
4141
@test ROCArray(diagview(S)) Sd
4242
# ROCArray is necessary because norm of ROCArray view with non-unit step is broken
43+
if alg isa ROCSOLVER_QRIteration
44+
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_compact!(copy!(Ac, A), (U, S, Vᴴ), alg; bad = "bad")
45+
end
4346
end
4447
end
4548
end
@@ -79,6 +82,10 @@ end
7982
@test Sc === Sc2
8083
@test ROCArray(diagview(S)) Sc
8184
# ROCArray is necessary because norm of ROCArray view with non-unit step is broken
85+
if alg isa ROCSOLVER_QRIteration
86+
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_full!(copy!(Ac, A), (U, S, Vᴴ), alg; bad = "bad")
87+
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_vals!(copy!(Ac, A), Sc, alg; bad = "bad")
88+
end
8289
end
8390
end
8491
end

test/cuda/svd.jl

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ include(joinpath("..", "utilities.jl"))
4040
Sd = svd_vals(A, alg)
4141
@test CuArray(diagview(S)) Sd
4242
# CuArray is necessary because norm of CuArray view with non-unit step is broken
43+
if alg isa CUSOLVER_QRIteration
44+
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_compact!(copy!(Ac, A), (U, S, Vᴴ), alg; bad = "bad")
45+
end
4346
end
4447
end
4548
end
@@ -80,8 +83,10 @@ end
8083
@test Sc === Sc2
8184
@test CuArray(diagview(S)) Sc
8285
# CuArray is necessary because norm of CuArray view with non-unit step is broken
83-
end
84-
@testset "algorithm $alg" for alg in algs
86+
if alg isa CUSOLVER_QRIteration
87+
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_full!(copy!(Ac, A), (U, S, Vᴴ), alg; bad = "bad")
88+
@test_warn "GPU_QRIteration does not accept any keyword arguments" svd_valsl!(copy!(Ac, A), Sc, alg; bad = "bad")
89+
end
8590
end
8691
end
8792
end

0 commit comments

Comments
 (0)