Skip to content

Commit a28c545

Browse files
authored
Don't duplicate const defs (#2703)
1 parent 19a7ea2 commit a28c545

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/cusparse/interfaces.jl

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -244,19 +244,6 @@ for SparseMatrixType in (:CuSparseMatrixBSR,)
244244
end
245245
end # SparseMatrixType loop
246246

247-
# work around upstream breakage from JuliaLang/julia#55547
248-
@static if VERSION == v"1.11.2"
249-
const CuSparseUpperOrUnitUpperTriangular = LinearAlgebra.UpperOrUnitUpperTriangular{
250-
<:Any,<:Union{<:AbstractCuSparseArray, Adjoint{<:Any, <:AbstractCuSparseArray}, Transpose{<:Any, <:AbstractCuSparseArray}}}
251-
const CuSparseLowerOrUnitLowerTriangular = LinearAlgebra.LowerOrUnitLowerTriangular{
252-
<:Any,<:Union{<:AbstractCuSparseArray, Adjoint{<:Any, <:AbstractCuSparseArray}, Transpose{<:Any, <:AbstractCuSparseArray}}}
253-
254-
LinearAlgebra.istriu(::CuSparseUpperOrUnitUpperTriangular) = true
255-
LinearAlgebra.istril(::CuSparseUpperOrUnitUpperTriangular) = false
256-
LinearAlgebra.istriu(::CuSparseLowerOrUnitLowerTriangular) = false
257-
LinearAlgebra.istril(::CuSparseLowerOrUnitLowerTriangular) = true
258-
end
259-
260247
for SparseMatrixType in (:CuSparseMatrixCOO, :CuSparseMatrixCSR, :CuSparseMatrixCSC)
261248
@eval begin
262249
function LinearAlgebra.generic_trimatdiv!(C::DenseCuVector{T}, uploc, isunitc, tfun::Function, A::$SparseMatrixType{T}, B::DenseCuVector{T}) where {T<:BlasFloat}

0 commit comments

Comments
 (0)