I try to analyze matrix A (number of rows is 220, number of non-zero elements is 588). But the cusparseScsrsv_analysis returned the value: CUSPARSE_STATUS_ALLOC_FAILED. And my platform is win32 vs2012 and GT240M(512MB). When I run my program, the GPU memory usage is only 270MB . There is a lot of memory that can be allocated and why the cusparseScsrsv_analysis function failed?