rocsparse_scsritsv_analysis Interface Reference#
hipfort_rocsparse::rocsparse_scsritsv_analysis Interface Reference
Public Member Functions | |
| integer(kind(rocsparse_status_success)) function | rocsparse_scsritsv_analysis_ (handle, trans, m, nnz, descr, csr_val, csr_row_ptr, csr_col_ind, myinfo, analysis, solve, temp_buffer) |
Detailed Description
rocsparse_csritsv_analysis performs the analysis step for rocsparse_Xcsritsv_solve(). It is expected that this function will be executed only once for a given matrix and particular operation type. The analysis meta data can be cleared by rocsparse_csritsv_clear().
Selecting rocsparse_analysis_policy_reuse policy can greatly improve the computation performance of metadata. However, the user needs to ensure that the sparsity pattern remains unchanged. If this cannot be assured, rocsparse_analysis_policy_force has to be used.
- Note
- If the matrix sparsity pattern changes, the gathered information will become invalid.
- This function is blocking with respect to the host.
- This routine does not support execution in a hipGraph context.
- Parameters
-
[in] handle - handle to the rocSPARSE library context queue. [in] trans - 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] descr - descriptor of the sparse CSR matrix. [in] csr_val - array of nnzelements of the sparse CSR matrix.[in] csr_row_ptr - array of m+1elements that point to the start of every row of the sparse CSR matrix.[in] csr_col_ind - array of nnzelements containing the column indices of the sparse CSR matrix.[out] myInfo - structure that holds the information collected during the analysis step. [in] analysis - rocsparse_analysis_policy_reuseorrocsparse_analysis_policy_force.[in] solve - rocsparse_solve_policy_auto.[in] temp_buffer - temporary storage buffer allocated by the user.
- Return values
-
rocsparse_status_success the operation completed successfully. rocsparse_status_invalid_handle the library context was not initialized. rocsparse_status_invalid_size mornnzis invalid.rocsparse_status_invalid_pointer descr,csr_row_ptr,csr_col_ind,info, ortemp_bufferpointer is invalid.rocsparse_status_internal_error an internal error occurred. rocsparse_status_not_implemented rocsparse_matrix_type!=rocsparse_matrix_type_generalandrocsparse_matrix_type!=rocsparse_matrix_type_triangular.
Member Function/Subroutine Documentation
◆ rocsparse_scsritsv_analysis_()
| integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_scsritsv_analysis::rocsparse_scsritsv_analysis_ | ( | type(c_ptr), value | handle, |
| integer(kind(rocsparse_operation_none)), value | trans, | ||
| integer(c_int), value | m, | ||
| integer(c_int), value | nnz, | ||
| type(c_ptr), value | descr, | ||
| type(c_ptr), value | csr_val, | ||
| type(c_ptr), value | csr_row_ptr, | ||
| type(c_ptr), value | csr_col_ind, | ||
| type(c_ptr), value | myinfo, | ||
| integer(kind(rocsparse_analysis_policy_reuse)), value | analysis, | ||
| integer(kind(rocsparse_solve_policy_auto)), value | solve, | ||
| type(c_ptr), value | temp_buffer | ||
| ) |
The documentation for this interface was generated from the following file: