Skip to content

Commit d1d29b7

Browse files
committed
[HIPIFY][ROCm#674][rocSPARSE][feature] rocSPARSE support - Step 66 - functions rocsparse_(s|d|c|z)csrsv_buffer_size
+ Updated synthetic tests, the regenerated hipify-perl, and `SPARSE` `CUDA2HIP` documentation
1 parent 3fb5166 commit d1d29b7

File tree

6 files changed

+63
-14
lines changed

6 files changed

+63
-14
lines changed

bin/hipify-perl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,6 +1829,7 @@ sub rocSubstitutions {
18291829
subst("cusparseCcsrsm2_bufferSizeExt", "rocsparse_ccsrsm_buffer_size", "library");
18301830
subst("cusparseCcsrsm2_solve", "rocsparse_ccsrsm_solve", "library");
18311831
subst("cusparseCcsrsv2_analysis", "rocsparse_ccsrsv_analysis", "library");
1832+
subst("cusparseCcsrsv2_bufferSizeExt", "rocsparse_ccsrsv_buffer_size", "library");
18321833
subst("cusparseCcsrsv2_solve", "rocsparse_ccsrsv_solve", "library");
18331834
subst("cusparseCdense2csc", "rocsparse_cdense2csc", "library");
18341835
subst("cusparseCdense2csr", "rocsparse_cdense2csr", "library");
@@ -1908,6 +1909,7 @@ sub rocSubstitutions {
19081909
subst("cusparseDcsrsm2_bufferSizeExt", "rocsparse_dcsrsm_buffer_size", "library");
19091910
subst("cusparseDcsrsm2_solve", "rocsparse_dcsrsm_solve", "library");
19101911
subst("cusparseDcsrsv2_analysis", "rocsparse_dcsrsv_analysis", "library");
1912+
subst("cusparseDcsrsv2_bufferSizeExt", "rocsparse_dcsrsv_buffer_size", "library");
19111913
subst("cusparseDcsrsv2_solve", "rocsparse_dcsrsv_solve", "library");
19121914
subst("cusparseDdense2csc", "rocsparse_ddense2csc", "library");
19131915
subst("cusparseDdense2csr", "rocsparse_ddense2csr", "library");
@@ -2006,6 +2008,7 @@ sub rocSubstitutions {
20062008
subst("cusparseScsrsm2_bufferSizeExt", "rocsparse_scsrsm_buffer_size", "library");
20072009
subst("cusparseScsrsm2_solve", "rocsparse_scsrsm_solve", "library");
20082010
subst("cusparseScsrsv2_analysis", "rocsparse_scsrsv_analysis", "library");
2011+
subst("cusparseScsrsv2_bufferSizeExt", "rocsparse_scsrsv_buffer_size", "library");
20092012
subst("cusparseScsrsv2_solve", "rocsparse_scsrsv_solve", "library");
20102013
subst("cusparseSdense2csc", "rocsparse_sdense2csc", "library");
20112014
subst("cusparseSdense2csr", "rocsparse_sdense2csr", "library");
@@ -2115,6 +2118,7 @@ sub rocSubstitutions {
21152118
subst("cusparseZcsrsm2_bufferSizeExt", "rocsparse_zcsrsm_buffer_size", "library");
21162119
subst("cusparseZcsrsm2_solve", "rocsparse_zcsrsm_solve", "library");
21172120
subst("cusparseZcsrsv2_analysis", "rocsparse_zcsrsv_analysis", "library");
2121+
subst("cusparseZcsrsv2_bufferSizeExt", "rocsparse_zcsrsv_buffer_size", "library");
21182122
subst("cusparseZcsrsv2_solve", "rocsparse_zcsrsv_solve", "library");
21192123
subst("cusparseZdense2csc", "rocsparse_zdense2csc", "library");
21202124
subst("cusparseZdense2csr", "rocsparse_zdense2csr", "library");

docs/tables/CUSPARSE_API_supported_by_HIP_and_ROC.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
|`cusparseCcsrmv_mp`|8.0|10.2| |11.0| | | | | | | | | | | | |
303303
|`cusparseCcsrsv2_analysis`| |11.3| |12.0|`hipsparseCcsrsv2_analysis`|3.1.0| | | | |`rocsparse_ccsrsv_analysis`|2.10.0| | | | |
304304
|`cusparseCcsrsv2_bufferSize`| |11.3| |12.0|`hipsparseCcsrsv2_bufferSize`|3.1.0| | | | | | | | | | |
305-
|`cusparseCcsrsv2_bufferSizeExt`| |11.3| |12.0|`hipsparseCcsrsv2_bufferSizeExt`|3.1.0| | | | | | | | | | |
305+
|`cusparseCcsrsv2_bufferSizeExt`| |11.3| |12.0|`hipsparseCcsrsv2_bufferSizeExt`|3.1.0| | | | |`rocsparse_ccsrsv_buffer_size`|2.10.0| | | | |
306306
|`cusparseCcsrsv2_solve`| |11.3| |12.0|`hipsparseCcsrsv2_solve`|3.1.0| | | | |`rocsparse_ccsrsv_solve`|2.10.0| | | | |
307307
|`cusparseCcsrsv_analysis`| |10.2| |11.0| | | | | | | | | | | | |
308308
|`cusparseCcsrsv_solve`| |10.2| |11.0| | | | | | | | | | | | |
@@ -325,7 +325,7 @@
325325
|`cusparseDcsrmv_mp`|8.0|10.2| |11.0| | | | | | | | | | | | |
326326
|`cusparseDcsrsv2_analysis`| |11.3| |12.0|`hipsparseDcsrsv2_analysis`|1.9.2| | | | |`rocsparse_dcsrsv_analysis`|1.9.0| | | | |
327327
|`cusparseDcsrsv2_bufferSize`| |11.3| |12.0|`hipsparseDcsrsv2_bufferSize`|1.9.2| | | | | | | | | | |
328-
|`cusparseDcsrsv2_bufferSizeExt`| |11.3| |12.0|`hipsparseDcsrsv2_bufferSizeExt`|1.9.2| | | | | | | | | | |
328+
|`cusparseDcsrsv2_bufferSizeExt`| |11.3| |12.0|`hipsparseDcsrsv2_bufferSizeExt`|1.9.2| | | | |`rocsparse_dcsrsv_buffer_size`|1.9.0| | | | |
329329
|`cusparseDcsrsv2_solve`| |11.3| |12.0|`hipsparseDcsrsv2_solve`|1.9.2| | | | |`rocsparse_dcsrsv_solve`|1.9.0| | | | |
330330
|`cusparseDcsrsv_analysis`| |10.2| |11.0| | | | | | | | | | | | |
331331
|`cusparseDcsrsv_solve`| |10.2| |11.0| | | | | | | | | | | | |
@@ -344,7 +344,7 @@
344344
|`cusparseScsrmv_mp`|8.0|10.2| |11.0| | | | | | | | | | | | |
345345
|`cusparseScsrsv2_analysis`| |11.3| |12.0|`hipsparseScsrsv2_analysis`|1.9.2| | | | |`rocsparse_scsrsv_analysis`|1.9.0| | | | |
346346
|`cusparseScsrsv2_bufferSize`| |11.3| |12.0|`hipsparseScsrsv2_bufferSize`|1.9.2| | | | | | | | | | |
347-
|`cusparseScsrsv2_bufferSizeExt`| |11.3| |12.0|`hipsparseScsrsv2_bufferSizeExt`|1.9.2| | | | | | | | | | |
347+
|`cusparseScsrsv2_bufferSizeExt`| |11.3| |12.0|`hipsparseScsrsv2_bufferSizeExt`|1.9.2| | | | |`rocsparse_scsrsv_buffer_size`|1.9.0| | | | |
348348
|`cusparseScsrsv2_solve`| |11.3| |12.0|`hipsparseScsrsv2_solve`|1.9.2| | | | |`rocsparse_scsrsv_solve`|1.9.0| | | | |
349349
|`cusparseScsrsv_analysis`| |10.2| |11.0| | | | | | | | | | | | |
350350
|`cusparseScsrsv_solve`| |10.2| |11.0| | | | | | | | | | | | |
@@ -365,7 +365,7 @@
365365
|`cusparseZcsrmv_mp`|8.0|10.2| |11.0| | | | | | | | | | | | |
366366
|`cusparseZcsrsv2_analysis`| |11.3| |12.0|`hipsparseZcsrsv2_analysis`|3.1.0| | | | |`rocsparse_zcsrsv_analysis`|2.10.0| | | | |
367367
|`cusparseZcsrsv2_bufferSize`| |11.3| |12.0|`hipsparseZcsrsv2_bufferSize`|3.1.0| | | | | | | | | | |
368-
|`cusparseZcsrsv2_bufferSizeExt`| |11.3| |12.0|`hipsparseZcsrsv2_bufferSizeExt`|3.1.0| | | | | | | | | | |
368+
|`cusparseZcsrsv2_bufferSizeExt`| |11.3| |12.0|`hipsparseZcsrsv2_bufferSizeExt`|3.1.0| | | | |`rocsparse_zcsrsv_buffer_size`|2.10.0| | | | |
369369
|`cusparseZcsrsv2_solve`| |11.3| |12.0|`hipsparseZcsrsv2_solve`|3.1.0| | | | |`rocsparse_zcsrsv_solve`|2.10.0| | | | |
370370
|`cusparseZcsrsv_analysis`| |10.2| |11.0| | | | | | | | | | | | |
371371
|`cusparseZcsrsv_solve`| |10.2| |11.0| | | | | | | | | | | | |

docs/tables/CUSPARSE_API_supported_by_ROC.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@
302302
|`cusparseCcsrmv_mp`|8.0|10.2| |11.0| | | | | | |
303303
|`cusparseCcsrsv2_analysis`| |11.3| |12.0|`rocsparse_ccsrsv_analysis`|2.10.0| | | | |
304304
|`cusparseCcsrsv2_bufferSize`| |11.3| |12.0| | | | | | |
305-
|`cusparseCcsrsv2_bufferSizeExt`| |11.3| |12.0| | | | | | |
305+
|`cusparseCcsrsv2_bufferSizeExt`| |11.3| |12.0|`rocsparse_ccsrsv_buffer_size`|2.10.0| | | | |
306306
|`cusparseCcsrsv2_solve`| |11.3| |12.0|`rocsparse_ccsrsv_solve`|2.10.0| | | | |
307307
|`cusparseCcsrsv_analysis`| |10.2| |11.0| | | | | | |
308308
|`cusparseCcsrsv_solve`| |10.2| |11.0| | | | | | |
@@ -325,7 +325,7 @@
325325
|`cusparseDcsrmv_mp`|8.0|10.2| |11.0| | | | | | |
326326
|`cusparseDcsrsv2_analysis`| |11.3| |12.0|`rocsparse_dcsrsv_analysis`|1.9.0| | | | |
327327
|`cusparseDcsrsv2_bufferSize`| |11.3| |12.0| | | | | | |
328-
|`cusparseDcsrsv2_bufferSizeExt`| |11.3| |12.0| | | | | | |
328+
|`cusparseDcsrsv2_bufferSizeExt`| |11.3| |12.0|`rocsparse_dcsrsv_buffer_size`|1.9.0| | | | |
329329
|`cusparseDcsrsv2_solve`| |11.3| |12.0|`rocsparse_dcsrsv_solve`|1.9.0| | | | |
330330
|`cusparseDcsrsv_analysis`| |10.2| |11.0| | | | | | |
331331
|`cusparseDcsrsv_solve`| |10.2| |11.0| | | | | | |
@@ -344,7 +344,7 @@
344344
|`cusparseScsrmv_mp`|8.0|10.2| |11.0| | | | | | |
345345
|`cusparseScsrsv2_analysis`| |11.3| |12.0|`rocsparse_scsrsv_analysis`|1.9.0| | | | |
346346
|`cusparseScsrsv2_bufferSize`| |11.3| |12.0| | | | | | |
347-
|`cusparseScsrsv2_bufferSizeExt`| |11.3| |12.0| | | | | | |
347+
|`cusparseScsrsv2_bufferSizeExt`| |11.3| |12.0|`rocsparse_scsrsv_buffer_size`|1.9.0| | | | |
348348
|`cusparseScsrsv2_solve`| |11.3| |12.0|`rocsparse_scsrsv_solve`|1.9.0| | | | |
349349
|`cusparseScsrsv_analysis`| |10.2| |11.0| | | | | | |
350350
|`cusparseScsrsv_solve`| |10.2| |11.0| | | | | | |
@@ -365,7 +365,7 @@
365365
|`cusparseZcsrmv_mp`|8.0|10.2| |11.0| | | | | | |
366366
|`cusparseZcsrsv2_analysis`| |11.3| |12.0|`rocsparse_zcsrsv_analysis`|2.10.0| | | | |
367367
|`cusparseZcsrsv2_bufferSize`| |11.3| |12.0| | | | | | |
368-
|`cusparseZcsrsv2_bufferSizeExt`| |11.3| |12.0| | | | | | |
368+
|`cusparseZcsrsv2_bufferSizeExt`| |11.3| |12.0|`rocsparse_zcsrsv_buffer_size`|2.10.0| | | | |
369369
|`cusparseZcsrsv2_solve`| |11.3| |12.0|`rocsparse_zcsrsv_solve`|2.10.0| | | | |
370370
|`cusparseZcsrsv_analysis`| |10.2| |11.0| | | | | | |
371371
|`cusparseZcsrsv_solve`| |10.2| |11.0| | | | | | |

src/CUDA2HIP_SPARSE_API_functions.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ const std::map<llvm::StringRef, hipCounter> CUDA_SPARSE_FUNCTION_MAP {
183183
{"cusparseCsrsv_solveEx", {"hipsparseCsrsv_solveEx", "", CONV_LIB_FUNC, API_SPARSE, 9, UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
184184

185185
{"cusparseScsrsv2_bufferSize", {"hipsparseScsrsv2_bufferSize", "", CONV_LIB_FUNC, API_SPARSE, 9, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
186-
{"cusparseScsrsv2_bufferSizeExt", {"hipsparseScsrsv2_bufferSizeExt", "", CONV_LIB_FUNC, API_SPARSE, 9, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
186+
{"cusparseScsrsv2_bufferSizeExt", {"hipsparseScsrsv2_bufferSizeExt", "rocsparse_scsrsv_buffer_size", CONV_LIB_FUNC, API_SPARSE, 9, CUDA_DEPRECATED | CUDA_REMOVED}},
187187
{"cusparseDcsrsv2_bufferSize", {"hipsparseDcsrsv2_bufferSize", "", CONV_LIB_FUNC, API_SPARSE, 9, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
188-
{"cusparseDcsrsv2_bufferSizeExt", {"hipsparseDcsrsv2_bufferSizeExt", "", CONV_LIB_FUNC, API_SPARSE, 9, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
188+
{"cusparseDcsrsv2_bufferSizeExt", {"hipsparseDcsrsv2_bufferSizeExt", "rocsparse_dcsrsv_buffer_size", CONV_LIB_FUNC, API_SPARSE, 9, CUDA_DEPRECATED | CUDA_REMOVED}},
189189
{"cusparseCcsrsv2_bufferSize", {"hipsparseCcsrsv2_bufferSize", "", CONV_LIB_FUNC, API_SPARSE, 9, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
190-
{"cusparseCcsrsv2_bufferSizeExt", {"hipsparseCcsrsv2_bufferSizeExt", "", CONV_LIB_FUNC, API_SPARSE, 9, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
190+
{"cusparseCcsrsv2_bufferSizeExt", {"hipsparseCcsrsv2_bufferSizeExt", "rocsparse_ccsrsv_buffer_size", CONV_LIB_FUNC, API_SPARSE, 9, CUDA_DEPRECATED | CUDA_REMOVED}},
191191
{"cusparseZcsrsv2_bufferSize", {"hipsparseZcsrsv2_bufferSize", "", CONV_LIB_FUNC, API_SPARSE, 9, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
192-
{"cusparseZcsrsv2_bufferSizeExt", {"hipsparseZcsrsv2_bufferSizeExt", "", CONV_LIB_FUNC, API_SPARSE, 9, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
192+
{"cusparseZcsrsv2_bufferSizeExt", {"hipsparseZcsrsv2_bufferSizeExt", "rocsparse_zcsrsv_buffer_size", CONV_LIB_FUNC, API_SPARSE, 9, CUDA_DEPRECATED | CUDA_REMOVED}},
193193

194194
{"cusparseScsrsv2_analysis", {"hipsparseScsrsv2_analysis", "rocsparse_scsrsv_analysis", CONV_LIB_FUNC, API_SPARSE, 9, CUDA_DEPRECATED | CUDA_REMOVED}},
195195
{"cusparseDcsrsv2_analysis", {"hipsparseDcsrsv2_analysis", "rocsparse_dcsrsv_analysis", CONV_LIB_FUNC, API_SPARSE, 9, CUDA_DEPRECATED | CUDA_REMOVED}},
@@ -2331,6 +2331,10 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_SPARSE_FUNCTION_VER_MAP {
23312331
{"rocsparse_ccsrsv_analysis", {HIP_2100, HIP_0, HIP_0 }},
23322332
{"rocsparse_dcsrsv_analysis", {HIP_1090, HIP_0, HIP_0 }},
23332333
{"rocsparse_scsrsv_analysis", {HIP_1090, HIP_0, HIP_0 }},
2334+
{"rocsparse_zcsrsv_buffer_size", {HIP_2100, HIP_0, HIP_0 }},
2335+
{"rocsparse_ccsrsv_buffer_size", {HIP_2100, HIP_0, HIP_0 }},
2336+
{"rocsparse_dcsrsv_buffer_size", {HIP_1090, HIP_0, HIP_0 }},
2337+
{"rocsparse_scsrsv_buffer_size", {HIP_1090, HIP_0, HIP_0 }},
23342338
};
23352339

23362340
const std::map<llvm::StringRef, cudaAPIChangedVersions> CUDA_SPARSE_FUNCTION_CHANGED_VER_MAP {

tests/unit_tests/synthetic/libraries/cusparse2hipsparse.cu

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,8 +1727,6 @@ int main() {
17271727
status_t = cusparseCreateSpVec(&spVecDescr_t, size, nnz, indices, values, indexType_t, indexBase_t, dataType);
17281728

17291729
#if CUDA_VERSION < 12000
1730-
csrsv2Info_t csrsv2_info;
1731-
17321730
// TODO: Mark as C-Changed in 12.0.0
17331731
// CUDA: cusparseStatus_t CUSPARSEAPI cusparseDestroySpVec(cusparseSpVecDescr_t spVecDescr);
17341732
// HIP: hipsparseStatus_t hipsparseDestroySpVec(hipsparseSpVecDescr_t spVecDescr);
@@ -2411,6 +2409,7 @@ int main() {
24112409

24122410
#if CUDA_VERSION < 12000
24132411
csrgemm2Info_t csrgemm2_info;
2412+
csrsv2Info_t csrsv2_info;
24142413

24152414
// CUDA: CUSPARSE_DEPRECATED(cusparseSparseToDense) cusparseStatus_t CUSPARSEAPI cusparseZcsc2dense(cusparseHandle_t handle, int m, int n, const cusparseMatDescr_t descrA, const cuDoubleComplex* cscSortedValA, const int* cscSortedRowIndA, const int* cscSortedColPtrA, cuDoubleComplex* A, int lda);
24162415
// HIP: DEPRECATED_CUDA_11000("The routine will be removed in CUDA 12") HIPSPARSE_EXPORT hipsparseStatus_t hipsparseZcsc2dense(hipsparseHandle_t handle, int m, int n, const hipsparseMatDescr_t descr, const hipDoubleComplex* csc_val, const int* csc_row_ind, const int* csc_col_ptr, hipDoubleComplex* A, int ld);
@@ -2516,6 +2515,26 @@ int main() {
25162515
// HIP: DEPRECATED_CUDA_11000("The routine will be removed in CUDA 12") HIPSPARSE_EXPORT hipsparseStatus_t hipsparseScsrgemm2_bufferSizeExt(hipsparseHandle_t handle, int m, int n, int k, const float* alpha, const hipsparseMatDescr_t descrA, int nnzA, const int* csrRowPtrA, const int* csrColIndA, const hipsparseMatDescr_t descrB, int nnzB, const int* csrRowPtrB, const int* csrColIndB, const float* beta, const hipsparseMatDescr_t descrD, int nnzD, const int* csrRowPtrD, const int* csrColIndD, csrgemm2Info_t info, size_t* pBufferSizeInBytes);
25172516
// CHECK: status_t = hipsparseScsrgemm2_bufferSizeExt(handle_t, m, n, k, &fA, matDescr_A, nnza, &csrRowPtrA, &csrColIndA, matDescr_B, nnzb, &csrRowPtrB, &csrColIndB, &fB, matDescr_D, nnzd, &csrRowPtrD, &csrColIndD, csrgemm2_info, &bufferSize);
25182517
status_t = cusparseScsrgemm2_bufferSizeExt(handle_t, m, n, k, &fA, matDescr_A, nnza, &csrRowPtrA, &csrColIndA, matDescr_B, nnzb, &csrRowPtrB, &csrColIndB, &fB, matDescr_D, nnzd, &csrRowPtrD, &csrColIndD, csrgemm2_info, &bufferSize);
2518+
2519+
// CUDA: CUSPARSE_DEPRECATED(cusparseSpSV) cusparseStatus_t CUSPARSEAPI cusparseZcsrsv2_bufferSizeExt(cusparseHandle_t handle, cusparseOperation_t transA, int m, int nnz, const cusparseMatDescr_t descrA, cuDoubleComplex* csrSortedValA, const int* csrSortedRowPtrA, const int* csrSortedColIndA, csrsv2Info_t info, size_t* pBufferSize);
2520+
// HIP: HIPSPARSE_EXPORT hipsparseStatus_t hipsparseZcsrsv2_bufferSizeExt(hipsparseHandle_t handle, hipsparseOperation_t transA, int m, int nnz, const hipsparseMatDescr_t descrA, hipDoubleComplex* csrSortedValA, const int* csrSortedRowPtrA, const int* csrSortedColIndA, csrsv2Info_t info, size_t* pBufferSize);
2521+
// CHECK: status_t = hipsparseZcsrsv2_bufferSizeExt(handle_t, opA, m, innz, matDescr_A, &dComplexcsrSortedValA, &csrRowPtrA, &csrColIndA, csrsv2_info, &bufferSize);
2522+
status_t = cusparseZcsrsv2_bufferSizeExt(handle_t, opA, m, innz, matDescr_A, &dComplexcsrSortedValA, &csrRowPtrA, &csrColIndA, csrsv2_info, &bufferSize);
2523+
2524+
// CUDA: CUSPARSE_DEPRECATED(cusparseSpSV) cusparseStatus_t CUSPARSEAPI cusparseCcsrsv2_bufferSizeExt(cusparseHandle_t handle, cusparseOperation_t transA, int m, int nnz, const cusparseMatDescr_t descrA, cuComplex* csrSortedValA, const int* csrSortedRowPtrA, const int* csrSortedColIndA, csrsv2Info_t info, size_t* pBufferSize);
2525+
// HIP: HIPSPARSE_EXPORThipsparseStatus_t hipsparseCcsrsv2_bufferSizeExt(hipsparseHandle_t handle, hipsparseOperation_t transA, int m, int nnz, const hipsparseMatDescr_t descrA, hipComplex* csrSortedValA, const int* csrSortedRowPtrA, const int* csrSortedColIndA, csrsv2Info_t info, size_t* pBufferSize);
2526+
// CHECK: status_t = hipsparseCcsrsv2_bufferSizeExt(handle_t, opA, m, innz, matDescr_A, &complexcsrSortedValA, &csrRowPtrA, &csrColIndA, csrsv2_info, &bufferSize);
2527+
status_t = cusparseCcsrsv2_bufferSizeExt(handle_t, opA, m, innz, matDescr_A, &complexcsrSortedValA, &csrRowPtrA, &csrColIndA, csrsv2_info, &bufferSize);
2528+
2529+
// CUDA: CUSPARSE_DEPRECATED(cusparseSpSV) cusparseStatus_t CUSPARSEAPI cusparseDcsrsv2_bufferSizeExt(cusparseHandle_t handle, cusparseOperation_t transA, int m, int nnz, const cusparseMatDescr_t descrA, double* csrSortedValA, const int* csrSortedRowPtrA, const int* csrSortedColIndA, csrsv2Info_t info, size_t* pBufferSize);
2530+
// HIP: HIPSPARSE_EXPORT hipsparseStatus_t hipsparseDcsrsv2_bufferSizeExt(hipsparseHandle_t handle, hipsparseOperation_t transA, int m, int nnz, const hipsparseMatDescr_t descrA, double* csrSortedValA, const int* csrSortedRowPtrA, const int* csrSortedColIndA, csrsv2Info_t info, size_t* pBufferSize);
2531+
// CHECK: status_t = hipsparseDcsrsv2_bufferSizeExt(handle_t, opA, m, innz, matDescr_A, &dcsrSortedValA, &csrRowPtrA, &csrColIndA, csrsv2_info, &bufferSize);
2532+
status_t = cusparseDcsrsv2_bufferSizeExt(handle_t, opA, m, innz, matDescr_A, &dcsrSortedValA, &csrRowPtrA, &csrColIndA, csrsv2_info, &bufferSize);
2533+
2534+
// CUDA: CUSPARSE_DEPRECATED(cusparseSpSV) cusparseStatus_t CUSPARSEAPI cusparseScsrsv2_bufferSizeExt(cusparseHandle_t handle, cusparseOperation_t transA, int m, int nnz, const cusparseMatDescr_t descrA, float* csrSortedValA, const int* csrSortedRowPtrA, const int* csrSortedColIndA, csrsv2Info_t info, size_t* pBufferSize);
2535+
// HIP: HIPSPARSE_EXPORT hipsparseStatus_t hipsparseScsrsv2_bufferSizeExt(hipsparseHandle_t handle, hipsparseOperation_t transA, int m, int nnz, const hipsparseMatDescr_t descrA, float* csrSortedValA, const int* csrSortedRowPtrA, const int* csrSortedColIndA, csrsv2Info_t info, size_t* pBufferSize);
2536+
// CHECK: status_t = hipsparseScsrsv2_bufferSizeExt(handle_t, opA, m, innz, matDescr_A, &csrSortedValA, &csrRowPtrA, &csrColIndA, csrsv2_info, &bufferSize);
2537+
status_t = cusparseScsrsv2_bufferSizeExt(handle_t, opA, m, innz, matDescr_A, &csrSortedValA, &csrRowPtrA, &csrColIndA, csrsv2_info, &bufferSize);
25192538
#endif
25202539

25212540
#if CUDA_VERSION >= 12000

0 commit comments

Comments
 (0)