You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/MatrixAlgebraKitCUDAExt/MatrixAlgebraKitCUDAExt.jl
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,18 @@ function MatrixAlgebraKit.default_eigh_algorithm(::Type{T}; kwargs...) where {TT
32
32
returnCUSOLVER_DivideAndConquer(; kwargs...)
33
33
end
34
34
35
+
for f in (:(MatrixAlgebraKit.default_lq_algorithm),
36
+
:(MatrixAlgebraKit.default_qr_algorithm),
37
+
:(MatrixAlgebraKit.default_eig_algorithm),
38
+
:(MatrixAlgebraKit.default_eigh_algorithm),
39
+
:(MatrixAlgebraKit.default_svd_algorithm),
40
+
)
41
+
42
+
@evalfunction$f(::Type{T}; kwargs...) where {S, T <:Diagonal{S, <:StridedCuVector}}
43
+
returnCUDA_DiagonalAlgorithm(; kwargs...)
44
+
end
45
+
end
46
+
35
47
# include for block sector support
36
48
function MatrixAlgebraKit.default_qr_algorithm(::Type{Base.ReshapedArray{T, 2, SubArray{T, 1, A, Tuple{UnitRange{Int}}, true}, Tuple{}}}; kwargs...) where {T <:BlasFloat, A <:CuVecOrMat{T}}
0 commit comments