diff --git a/test/gpu/amd.jl b/test/gpu/amd.jl index 2690f20dc..a336dc3a4 100644 --- a/test/gpu/amd.jl +++ b/test/gpu/amd.jl @@ -103,6 +103,15 @@ include("gpu.jl") @test norm(b - A * x) ≤ atol + rtol * norm(b) end + @testset "block-MINRES -- $FC" begin + A, b = symmetric_indefinite(FC=FC) + B = hcat(b, -b) + A = M(A) + B = M(B) + X, stats = block_minres(A, B) + @test norm(B - A * X) ≤ atol + rtol * norm(B) + end + @testset "block-GMRES -- $FC" begin A, b = nonsymmetric_indefinite(FC=FC) B = hcat(b, -b) diff --git a/test/gpu/intel.jl b/test/gpu/intel.jl index 0498f2f01..aa50e4e86 100644 --- a/test/gpu/intel.jl +++ b/test/gpu/intel.jl @@ -86,8 +86,17 @@ include("gpu.jl") @test norm(b - A * x) ≤ atol + rtol * norm(b) end + @testset "block-MINRES -- $FC" begin + A, b = symmetric_indefinite(FC=FC) + B = hcat(b, -b) + A = M(A) + B = M(B) + X, stats = block_minres(A, B) + @test norm(B - A * X) ≤ atol + rtol * norm(B) + end + @testset "block-GMRES -- $FC" begin - A, b = symmetric_definite(FC=FC) + A, b = nonsymmetric_definite(FC=FC) B = hcat(b, -b) A = M(A) B = M(B) diff --git a/test/gpu/nvidia.jl b/test/gpu/nvidia.jl index 96825df1f..b6020b641 100644 --- a/test/gpu/nvidia.jl +++ b/test/gpu/nvidia.jl @@ -186,6 +186,15 @@ include("gpu.jl") @test norm(b - A * x) ≤ atol + rtol * norm(b) end + @testset "block-MINRES -- $FC" begin + A, b = symmetric_indefinite(FC=FC) + B = hcat(b, -b) + A = M(A) + B = M(B) + X, stats = block_minres(A, B) + @test norm(B - A * X) ≤ atol + rtol * norm(B) + end + @testset "block-GMRES -- $FC" begin A, b = nonsymmetric_indefinite(FC=FC) B = hcat(b, -b)