Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michel2323 committed Nov 30, 2023
1 parent 7542abf commit c8a4636
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ext/AMDGPU/blockjacobi.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
KP.BlockJacobiPreconditioner(J::rocSPARSE.ROCSparseMatrixCSR; options...) = BlockJacobiPreconditioner(SparseMatrixCSC(J); options...)

function KP.create_blocklist(cublocks::ROCArray, npart)
blocklist = Array{CuArray{Float64,2}}(undef, npart)
blocklist = Array{ROCArray{Float64,2}}(undef, npart)
for b in 1:npart
blocklist[b] = ROCMatrix{Float64}(undef, size(cublocks,1), size(cublocks,2))
end
Expand Down
4 changes: 2 additions & 2 deletions ext/AMDGPU/ilu0.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ for ArrayType in (:(ROCVector{T}), :(ROCMatrix{T}))
end

function ldiv!(ilu::AMD_ILU0{ROCSparseMatrixCSC{T,Cint}}, x::$ArrayType) where T <: BlasReal
ldiv!(LowerTriangular(ilu.P), y) # Forward substitution with L
ldiv!(UnitUpperTriangular(ilu.P), y) # Backward substitution with U
ldiv!(LowerTriangular(ilu.P), x) # Forward substitution with L
ldiv!(UnitUpperTriangular(ilu.P), x) # Backward substitution with U
return x
end

Expand Down

0 comments on commit c8a4636

Please sign in to comment.