CUDA error after step 10 of CuSolverRf Code=11 (CudaErrorInvalidValue)

I’m having trouble with CuSolverRf after step 10: Import A to cusolverRF.

Running the sample “lap2D_5pt_n100.mtx” allows the program to run normally and with my modified .mtx file allows the program to run past step 5 which means it’s not really a corrupted line in the data file.

Is there anything I’ve missed here? How do I solve this? Thank you.