Get error when run cusparse spmv

I run cusparse spmv, but it some times will get error:
here is the detail information of errro:
CUDA API failed at line 47 with error: unspecified launch failure (719)
CUDA API failed at line 49 with error: unspecified launch failure (719)
CUDA API failed at line 50 with error: unspecified launch failure (719)
CUDA API failed at line 51 with error: unspecified launch failure (719)
CUDA API failed at line 52 with error: unspecified launch failure (719)
CUDA API failed at line 54 with error: unspecified launch failure (719)
CUDA API failed at line 57 with error: unspecified launch failure (719)
CUDA API failed at line 59 with error: unspecified launch failure (719)
CUDA API failed at line 61 with error: unspecified launch failure (719)
CUDA API failed at line 63 with error: unspecified launch failure (719)
CUSPARSE API failed at line 72 with error: initialization error (1)
** On entry to cusparseCreateCsr() parameter number 5 (csrRowOffsets) had an illegal value: null pointer

CUSPARSE API failed at line 74 with error: invalid value (3)
** On entry to cusparseCreateDnVec() parameter number 3 (values) had an illegal value: null pointer

CUSPARSE API failed at line 79 with error: invalid value (3)
** On entry to cusparseCreateDnVec() parameter number 3 (values) had an illegal value: null pointer

CUSPARSE API failed at line 81 with error: invalid value (3)

how should i fix it?

Hi. What’s your code that invokes cusparse spmv?
The error messages explained the reasons of your fails. Addressing this issue will fix the problems.