I am trying to use the CuSparseMatrixCSC constructor as defined here, but it throws an error. I’m wondering what’s gone wrong.
julia> using CUDA
julia> I = CuArray([1,1]);
julia> J = CuArray([1,2]);
julia> V = CuArray([0.2, 0.3]);
julia> CUSPARSE.CuSparseMatrixCSC(I, J, V, (3,3))
3×3 CUDA.CUSPARSE.CuSparseMatrixCSC{Float64} with 2 stored entries:Error showing value of type CUDA.CUSPARSE.CuSparseMatrixCSC{Float64}:
ERROR: ArgumentError: 2 == length(colptr) < 4