Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions test/test_cudss.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ end
function cudss_sparse()
n = 20
@testset "cudss_update -- precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
A_cpu = sprand(T, n, n, 1.0)
A_cpu = A_cpu + A_cpu'
A_gpu = CuSparseMatrixCSR{T,INT}(A_cpu)
Expand All @@ -61,7 +61,7 @@ end
function cudss_solver()
n = 20
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
A_cpu = sprand(T, n, n, 1.0)
A_cpu = A_cpu * A_cpu' + I
Expand Down Expand Up @@ -158,7 +158,7 @@ function cudss_execution()
n = 100
p = 5
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
@testset "Unsymmetric -- Non-Hermitian" begin
@testset "Pivoting = $pivot" for pivot in ('C', 'R', 'N')
Expand Down Expand Up @@ -296,7 +296,7 @@ function cudss_generic()
n = 100
p = 5
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
@testset "Unsymmetric -- Non-Hermitian" begin
A_cpu = sprand(T, n, n, 0.02) + I
Expand Down Expand Up @@ -578,7 +578,7 @@ function user_permutation()
return nz
end

@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
n = 1000
perm1_cpu = Vector{INT}(undef, n)
perm2_cpu = Vector{INT}(undef, n)
Expand Down Expand Up @@ -701,7 +701,7 @@ function iterative_refinement()

n = 100
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
@testset "number of iterative refinement: $ir" for ir in (1, 2)
@testset "LU" begin
Expand Down Expand Up @@ -797,7 +797,7 @@ function small_matrices()
end

@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
@testset "Size of the linear system: $n" for n in 1:16
@testset "LU" begin
Expand Down Expand Up @@ -906,7 +906,7 @@ function hybrid_memory_mode()

n = 20
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
@testset "LU" begin
A_cpu = sprand(T, n, n, 0.05) + I
Expand Down Expand Up @@ -945,7 +945,7 @@ end

function refactorization_cholesky()
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
n = 100
p = 5
Expand Down
10 changes: 5 additions & 5 deletions test/test_nonuniform_batch_cudss.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ end
function cudss_batched_sparse()
n = 20
@testset "cudss_update -- precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
A_cpu = sprand(T, n, n, 1.0)
A_cpu = A_cpu + A_cpu'
A_gpu = [CuSparseMatrixCSR{T,INT}(A_cpu), CuSparseMatrixCSR{T,INT}(A_cpu)]
Expand All @@ -58,7 +58,7 @@ function cudss_batched_solver()
n = 20
m = 30
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
A_cpu1 = sprand(T, n, n, 1.0)
A_cpu1 = A_cpu1 * A_cpu1' + I
A_gpu1 = CuSparseMatrixCSR{T,INT}(A_cpu1)
Expand Down Expand Up @@ -147,7 +147,7 @@ function cudss_batched_execution()
n = [40, 50, 80, 4, 12, 28, 51]
p = [2, 3, 4, 2, 5, 5, 6]
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
@testset "Unsymmetric -- Non-Hermitian" begin
@testset "Pivoting = $pivot" for pivot in ('C', 'R', 'N')
Expand Down Expand Up @@ -357,7 +357,7 @@ function batched_hybrid_memory_mode()

n = [20, 25, 10, 5, 2]
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
@testset "LU" begin
A_cpu = [sprand(T, n[i], n[i], 0.05) + I for i = 1:5]
Expand Down Expand Up @@ -396,7 +396,7 @@ end

function refactorization_batched_cholesky()
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
n = 100
p = 4
Expand Down
12 changes: 6 additions & 6 deletions test/test_uniform_batch_cudss.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function cudss_uniform_batch_lu()
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
# Collection of unsymmetric linear systems
# [1+λ 0 3 ]
# A(λ) = [ 4 5+λ 0 ]
Expand Down Expand Up @@ -74,7 +74,7 @@ end

function generic_uniform_batch_lu()
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
# Collection of unsymmetric linear systems
# [1+λ 0 3 ]
# A(λ) = [ 4 5+λ 0 ]
Expand Down Expand Up @@ -167,7 +167,7 @@ end

function cudss_uniform_batch_ldlt()
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
n = 5
nbatch = 2
Expand Down Expand Up @@ -260,7 +260,7 @@ end

function generic_uniform_batch_ldlt()
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
n = 5
nbatch = 2
Expand Down Expand Up @@ -375,7 +375,7 @@ end

function cudss_uniform_batch_cholesky()
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
n = 5
nbatch = 2
Expand Down Expand Up @@ -442,7 +442,7 @@ end

function generic_uniform_batch_cholesky()
@testset "precision = $T" for T in (Float32, Float64, ComplexF32, ComplexF64)
@testset "integer = $INT" for INT in (Cint,) # Int64)
@testset "integer = $INT" for INT in (Cint, Int64)
R = real(T)
n = 5
nbatch = 2
Expand Down
Loading