CUDA: Mapping Error using CUSPARSE csrmv() routine
问题 I'm currently trying to use the CUSPARSE library in order to speed up an HPCG implementation. However, it appears I'm making some kind of mistake during device data allocation. This is the code segment that results in CUSPARSE_STATUS_MAPPING_ERROR : int HPC_sparsemv( CRS_Matrix *A_crs_d, FP * x_d, FP * y_d) { FP alpha = 1.0f; FP beta = 0.0f; FP* vals = A_crs_d->vals; int* inds = A_crs_d->col_ind; int* row_ptr = A_crs_d->row_ptr; /*generate Matrix descriptor for SparseMV computation*/