rocsparse_sddmm_preprocess Interface Reference#
hipfort_rocsparse::rocsparse_sddmm_preprocess Interface Reference
Preprocess data before the use of rocsparse_sddmm
.
More...
Public Member Functions | |
integer(kind(rocsparse_status_success)) function | rocsparse_sddmm_preprocess_ (handle, opA, opB, alpha, A, B, beta, C, compute_type, alg, temp_buffer) |
Detailed Description
Preprocess data before the use of rocsparse_sddmm
.
rocsparse_sddmm_preprocess
executes a part of the algorithm that can be calculated once in the context of multiple calls of the rocsparse_sddmm
with the same sparsity pattern.
- Parameters
-
[in] handle handle to the rocsparse library context queue. [in] opA dense matrix \(A\) operation type. [in] opB dense matrix \(B\) operation type. [in] alpha scalar \(\alpha\). [in] A dense matrix \(A\) descriptor. [in] B dense matrix \(B\) descriptor. [in] beta scalar \(\beta\). [in,out] C sparse matrix \(C\) descriptor. [in] compute_type floating point precision for the SDDMM computation. [in] alg specification of the algorithm to use. [in] temp_buffer temporary storage buffer allocated by the user. The size must be greater or equal to the size obtained with rocsparse_sddmm_buffer_size
.
- Return values
-
rocsparse_status_success the operation completed successfully. rocsparse_status_invalid_value the value of trans_A
ortrans_B
is incorrect.rocsparse_status_invalid_handle the library context was not initialized. rocsparse_status_invalid_pointer alpha
andbeta
are invalid,A
,B
,D
,C
ortemp_buffer
pointer is invalid.rocsparse_status_not_implemented opA
==rocsparse_operation_conjugate_transpose
oropB
==rocsparse_operation_conjugate_transpose
.
Member Function/Subroutine Documentation
◆ rocsparse_sddmm_preprocess_()
integer(kind(rocsparse_status_success)) function hipfort_rocsparse::rocsparse_sddmm_preprocess::rocsparse_sddmm_preprocess_ | ( | type(c_ptr), value | handle, |
integer(kind(rocsparse_operation_none)), value | opA, | ||
integer(kind(rocsparse_operation_none)), value | opB, | ||
type(c_ptr), value | alpha, | ||
type(c_ptr), value | A, | ||
type(c_ptr), value | B, | ||
type(c_ptr), value | beta, | ||
type(c_ptr), value | C, | ||
integer(kind(rocsparse_datatype_f32_r)), value | compute_type, | ||
integer(kind(rocsparse_sddmm_alg_default)), value | alg, | ||
type(c_ptr), value | temp_buffer | ||
) |
The documentation for this interface was generated from the following file: