This needs to be a CUSPARSE array, i.e
Dvec = CuSparseMatrixCSC(sparse(rows, cols, vec))
By the way, vec is a symbol in Base. Trying to reassign it should throw an error.
This needs to be a CUSPARSE array, i.e
Dvec = CuSparseMatrixCSC(sparse(rows, cols, vec))
By the way, vec is a symbol in Base. Trying to reassign it should throw an error.