Hey all, I have a very general question about cusolverStatus_t, and I suppose there are many similar questions in the forum. But would you mind explaining the integer values for each case of cusolverStatus_t?
I suppose, CUSOLVER_STATUS_SUCCESS is 0, by that the integer values for all would be in range of 0 to 7 for CUSOLVER_STATUS_SUCCESS, CUSOLVER_STATUS_NOT_INITIALIZED, CUSOLVER_STATUS_ALLOC_FAILED, …, and finally CUSOLVER_STATUS_MATRIX_TYPE_NOT_SUPPORTED.
Is my understanding correct?
For an exact answer, refer to the cusolver_common.h
that you’re using with your particular version of the CUDA Toolkit.
The following is from CUDA 11.7.
typedef enum{
CUSOLVER_STATUS_SUCCESS=0,
CUSOLVER_STATUS_NOT_INITIALIZED=1,
CUSOLVER_STATUS_ALLOC_FAILED=2,
CUSOLVER_STATUS_INVALID_VALUE=3,
CUSOLVER_STATUS_ARCH_MISMATCH=4,
CUSOLVER_STATUS_MAPPING_ERROR=5,
CUSOLVER_STATUS_EXECUTION_FAILED=6,
CUSOLVER_STATUS_INTERNAL_ERROR=7,
CUSOLVER_STATUS_MATRIX_TYPE_NOT_SUPPORTED=8,
CUSOLVER_STATUS_NOT_SUPPORTED = 9,
CUSOLVER_STATUS_ZERO_PIVOT=10,
CUSOLVER_STATUS_INVALID_LICENSE=11,
CUSOLVER_STATUS_IRS_PARAMS_NOT_INITIALIZED=12,
CUSOLVER_STATUS_IRS_PARAMS_INVALID=13,
CUSOLVER_STATUS_IRS_PARAMS_INVALID_PREC=14,
CUSOLVER_STATUS_IRS_PARAMS_INVALID_REFINE=15,
CUSOLVER_STATUS_IRS_PARAMS_INVALID_MAXITER=16,
CUSOLVER_STATUS_IRS_INTERNAL_ERROR=20,
CUSOLVER_STATUS_IRS_NOT_SUPPORTED=21,
CUSOLVER_STATUS_IRS_OUT_OF_RANGE=22,
CUSOLVER_STATUS_IRS_NRHS_NOT_SUPPORTED_FOR_REFINE_GMRES=23,
CUSOLVER_STATUS_IRS_INFOS_NOT_INITIALIZED=25,
CUSOLVER_STATUS_IRS_INFOS_NOT_DESTROYED=26,
CUSOLVER_STATUS_IRS_MATRIX_SINGULAR=30,
CUSOLVER_STATUS_INVALID_WORKSPACE=31
} cusolverStatus_t;
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.