|
| integer(c_int) function | rocsparse_sbsrsv_buffer_size_ (handle, dir, trans, mb, nnzb, descr, bsr_val, bsr_row_ptr, bsr_col_ind, block_dim, myinfo, buffer_size) |
| |
| integer(kind(rocsparse_status_success)) function | rocsparse_sbsrsv_buffer_size_typed (handle, dir, trans, mb, nnzb, descr, bsr_val, bsr_row_ptr, bsr_col_ind, block_dim, myinfo, buffer_size) |
| |
| integer(kind(rocsparse_status_success)) function | rocsparse_sbsrsv_buffer_size_rank_0 (handle, dir, trans, mb, nnzb, descr, bsr_val, bsr_row_ptr, bsr_col_ind, block_dim, myinfo, buffer_size) |
| |
| integer(kind(rocsparse_status_success)) function | rocsparse_sbsrsv_buffer_size_rank_1 (handle, dir, trans, mb, nnzb, descr, bsr_val, bsr_row_ptr, bsr_col_ind, block_dim, myinfo, buffer_size) |
| |
rocsparse_bsrsv_buffer_size returns the size of the temporary storage buffer that is required by rocsparse_Xbsrsv_analysis() and rocsparse_Xbsrsv_solve(). The temporary storage buffer must be allocated by the user.
- Note
- This function is non-blocking and executed asynchronously with respect to the host. It can return before the actual computation has finished.
-
This routine supports execution in a hipGraph context.
- Parameters
-
| [in] | handle | - handle to the rocSPARSE library context queue. |
| [in] | dir | - matrix storage of BSR blocks. |
| [in] | trans | - matrix operation type. |
| [in] | mb | - number of block rows of the sparse BSR matrix. |
| [in] | nnzb | - number of non-zero blocks of the sparse BSR matrix. |
| [in] | descr | - descriptor of the sparse BSR matrix. |
| [in] | bsr_val | - array of nnzb blocks of the sparse BSR matrix. |
| [in] | bsr_row_ptr | - array of mb+1 elements that point to the start of every block row of the sparse BSR matrix. |
| [in] | bsr_col_ind | - array of nnz containing the block column indices of the sparse BSR matrix. |
| [in] | block_dim | - block dimension of the sparse BSR matrix. |
| [out] | myInfo | - structure that holds the information collected during the analysis step. |
| [out] | buffer_size | - number of bytes of the temporary storage buffer required by rocsparse_sbsrsv_analysis(), rocsparse_dbsrsv_analysis(), rocsparse_cbsrsv_analysis(), rocsparse_zbsrsv_analysis(), rocsparse_sbsrsv_solve(), rocsparse_dbsrsv_solve(), rocsparse_cbsrsv_solve(), and rocsparse_zbsrsv_solve(). |
- Return values
-
| rocsparse_status_success | the operation completed successfully. |
| rocsparse_status_invalid_handle | the library context was not initialized. |
| rocsparse_status_invalid_size | mb, nnzb, or block_dim is invalid. |
| rocsparse_status_invalid_pointer | descr, bsr_val, bsr_row_ptr, bsr_col_ind, info, or buffer_size pointer is invalid. |
| rocsparse_status_internal_error | an internal error occurred. |
| rocsparse_status_not_implemented | trans == rocsparse_operation_conjugate_transpose or rocsparse_matrix_type != rocsparse_matrix_type_general. |