Skip to content

Commit 5f4e222

Browse files
committed
More renaming
1 parent 34dc3aa commit 5f4e222

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
2323
SparseMatrixColorings = "0a514795-09f3-496d-8182-132a7b665d35"
2424
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
2525
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
26+
cuSPARSE = "b26da814-b3bc-49ef-b0ee-c816305aa060"

test/cuda.jl

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using CUDA.CUSPARSE: CuSparseMatrixCSC, CuSparseMatrixCSR
1+
using cuSPARSE: CuSparseMatrixCSC, CuSparseMatrixCSR
22
using LinearAlgebra
33
using SparseArrays
44
using SparseMatrixColorings
@@ -21,34 +21,34 @@ symmetric_params = vcat(
2121
)
2222

2323
@testset verbose = true "Column coloring & decompression" begin
24-
problem = ColoringProblem(; structure=:nonsymmetric, partition=:column)
25-
algo = GreedyColoringAlgorithm(; decompression=:direct)
24+
problem = ColoringProblem(; structure = :nonsymmetric, partition = :column)
25+
algo = GreedyColoringAlgorithm(; decompression = :direct)
2626
@testset for T in (CuSparseMatrixCSC, CuSparseMatrixCSR)
2727
@testset "$((; m, n, p))" for (m, n, p) in asymmetric_params
2828
A0 = T(sprand(rng, m, n, p))
29-
test_coloring_decompression(A0, problem, algo; gpu=true)
29+
test_coloring_decompression(A0, problem, algo; gpu = true)
3030
end
3131
end
3232
end;
3333

3434
@testset verbose = true "Row coloring & decompression" begin
35-
problem = ColoringProblem(; structure=:nonsymmetric, partition=:row)
36-
algo = GreedyColoringAlgorithm(; decompression=:direct)
35+
problem = ColoringProblem(; structure = :nonsymmetric, partition = :row)
36+
algo = GreedyColoringAlgorithm(; decompression = :direct)
3737
@testset for T in (CuSparseMatrixCSC, CuSparseMatrixCSR)
3838
@testset "$((; m, n, p))" for (m, n, p) in asymmetric_params
3939
A0 = T(sprand(rng, m, n, p))
40-
test_coloring_decompression(A0, problem, algo; gpu=true)
40+
test_coloring_decompression(A0, problem, algo; gpu = true)
4141
end
4242
end
4343
end;
4444

4545
@testset verbose = true "Symmetric coloring & direct decompression" begin
46-
problem = ColoringProblem(; structure=:symmetric, partition=:column)
47-
algo = GreedyColoringAlgorithm(; postprocessing=false, decompression=:direct)
46+
problem = ColoringProblem(; structure = :symmetric, partition = :column)
47+
algo = GreedyColoringAlgorithm(; postprocessing = false, decompression = :direct)
4848
@testset for T in (CuSparseMatrixCSC, CuSparseMatrixCSR)
4949
@testset "$((; n, p))" for (n, p) in symmetric_params
5050
A0 = T(sparse(Symmetric(sprand(rng, n, n, p))))
51-
test_coloring_decompression(A0, problem, algo; gpu=true)
51+
test_coloring_decompression(A0, problem, algo; gpu = true)
5252
end
5353
A0 = T(sparse(Diagonal(ones(10))))
5454
result = coloring(A0, problem, algo)

0 commit comments

Comments
 (0)