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
julia>using SparseArrays, CUDA
julia> x =sprand(3,3,0.5)
3×3 SparseMatrixCSC{Float64, Int64} with 7 stored entries:⋅0.6628060.348350.4225770.05063280.932217⋅0.6492290.753374
julia> xd = x |> cu
3×3 CUDA.CUSPARSE.CuSparseMatrixCSC{Float32, Int32} with 7 stored entries:⋅0.662805560.348350350.42257660.0506327930.9322167⋅0.6492290.7533741
The text was updated successfully, but these errors were encountered:
Types here could hookup into SparseArrays show implementation for a nice printing.
This is what CUSPARSE types do in CUDA.jl https://github.com/JuliaGPU/CUDA.jl/blob/583b948ef4f1ab739047d19e7f65657a354ec28b/lib/cusparse/array.jl#L503
The text was updated successfully, but these errors were encountered: