|
| integer(kind(hipsparse_status_success)) function | hipsparsescsrsv2_analysis_ (handle, transa, m, nnz, descra, csrsortedvala, csrsortedrowptra, csrsortedcolinda, myinfo, policy, pbuffer) |
| |
| integer(kind(hipsparse_status_success)) function | hipsparsescsrsv2_analysis_rank_0 (handle, transa, m, nnz, descra, csrsortedvala, csrsortedrowptra, csrsortedcolinda, myinfo, policy, pbuffer) |
| |
| integer(kind(hipsparse_status_success)) function | hipsparsescsrsv2_analysis_rank_1 (handle, transa, m, nnz, descra, csrsortedvala, csrsortedrowptra, csrsortedcolinda, myinfo, policy, pbuffer) |
| |
hipsparseXcsrsv2_analysis performs the analysis step for hipsparseScsrsv2_solve "hipsparseXcsrsv2_solve()". It is expected that this function will be executed only once for a given matrix and particular operation type.
- Note
- This function is non-blocking and executed asynchronously with respect to the host. It can return before the actual computation has finished.
- Parameters
-
| [in] | handle | - handle to the hipSPARSE library context queue. |
| [in] | transA | - matrix operation type. |
| [in] | m | - number of rows of the sparse CSR matrix. |
| [in] | nnz | - number of non-zero entries of the sparse CSR matrix. |
| [in] | descrA | - descriptor of the sparse CSR matrix. |
| [in] | csrSortedValA | - array of nnz elements of the sparse CSR matrix. |
| [in] | csrSortedRowPtrA | - array of m+1 elements that point to the start of every row of the sparse CSR matrix. |
| [in] | csrSortedColIndA | - array of nnz elements containing the column indices of the sparse CSR matrix. |
| [out] | myInfo | - structure that holds the information collected during the analysis step. |
| [in] | policy | - HIPSPARSE_SOLVE_POLICY_NO_LEVEL or HIPSPARSE_SOLVE_POLICY_USE_LEVEL. |
| [in] | pBuffer | - temporary storage buffer allocated by the user. |
- Return values
-
| HIPSPARSE_STATUS_SUCCESS | the operation completed successfully. |
| HIPSPARSE_STATUS_INVALID_VALUE | handle, m, nnz, descr, csrSortedRowPtrA, csrSortedColIndA, info, or pBuffer is invalid. |
| HIPSPARSE_STATUS_INTERNAL_ERROR | an internal error occurred. |
| HIPSPARSE_STATUS_NOT_SUPPORTED | transA == HIPSPARSE_OPERATION_CONJUGATE_TRANSPOSE or hipsparseMatrixType_t != HIPSPARSE_MATRIX_TYPE_GENERAL. |