Added spmv preprocess