Skip to content

Commit

Permalink
[HIPIFY][ROCm#674][rocSPARSE][feature] rocSPARSE support - Step 56 - …
Browse files Browse the repository at this point in the history
…functions rocsparse_(s|d|c|z)csrsm_solve` + `rocsparse_bsrsm_zero_pivot`

+ `csrsm2Info_t` -> `rocsparse_mat_info`
+ [fix] `cusparse(S|D|C|Z)csrsm2_solve`' `A - Added` version is `9.2`, not `10.0`
+ Added synthetic test `cusparse2rocsparse_9200_12000.cu` for rocSPARSE APIs with typecasting and which are used in CUDA >= 9.2 and CUDA < 12.0 (FileCheck tool limitation)
+ Updated synthetic tests and the regenerated hipify-perl and SPARSE docs
  • Loading branch information
emankov committed Nov 6, 2023
1 parent 702ee31 commit 7b669b6
Show file tree
Hide file tree
Showing 11 changed files with 228 additions and 30 deletions.
7 changes: 7 additions & 0 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -1779,6 +1779,7 @@ sub rocSubstitutions {
subst("cusparseCcsrilu02_analysis", "rocsparse_ccsrilu0_analysis", "library");
subst("cusparseCcsrilu02_bufferSize", "rocsparse_ccsrilu0_buffer_size", "library");
subst("cusparseCcsrilu02_numericBoost", "rocsparse_dccsrilu0_numeric_boost", "library");
subst("cusparseCcsrsm2_solve", "rocsparse_ccsrsm_solve", "library");
subst("cusparseCdense2csc", "rocsparse_cdense2csc", "library");
subst("cusparseCdense2csr", "rocsparse_cdense2csr", "library");
subst("cusparseCgebsr2csr", "rocsparse_cgebsr2csr", "library");
Expand Down Expand Up @@ -1848,6 +1849,7 @@ sub rocSubstitutions {
subst("cusparseDcsrilu02_analysis", "rocsparse_dcsrilu0_analysis", "library");
subst("cusparseDcsrilu02_bufferSize", "rocsparse_dcsrilu0_buffer_size", "library");
subst("cusparseDcsrilu02_numericBoost", "rocsparse_dcsrilu0_numeric_boost", "library");
subst("cusparseDcsrsm2_solve", "rocsparse_dcsrsm_solve", "library");
subst("cusparseDdense2csc", "rocsparse_ddense2csc", "library");
subst("cusparseDdense2csr", "rocsparse_ddense2csr", "library");
subst("cusparseDestroy", "rocsparse_destroy_handle", "library");
Expand Down Expand Up @@ -1936,6 +1938,7 @@ sub rocSubstitutions {
subst("cusparseScsrilu02_analysis", "rocsparse_scsrilu0_analysis", "library");
subst("cusparseScsrilu02_bufferSize", "rocsparse_scsrilu0_buffer_size", "library");
subst("cusparseScsrilu02_numericBoost", "rocsparse_dscsrilu0_numeric_boost", "library");
subst("cusparseScsrsm2_solve", "rocsparse_scsrsm_solve", "library");
subst("cusparseSdense2csc", "rocsparse_sdense2csc", "library");
subst("cusparseSdense2csr", "rocsparse_sdense2csr", "library");
subst("cusparseSetMatDiagType", "rocsparse_set_mat_diag_type", "library");
Expand Down Expand Up @@ -1989,6 +1992,7 @@ sub rocSubstitutions {
subst("cusparseSpruneDense2csr_bufferSizeExt", "rocsparse_sprune_dense2csr_buffer_size", "library");
subst("cusparseXbsric02_zeroPivot", "rocsparse_bsric0_zero_pivot", "library");
subst("cusparseXbsrilu02_zeroPivot", "rocsparse_bsrilu0_zero_pivot", "library");
subst("cusparseXbsrsm2_zeroPivot", "rocsparse_bsrsm_zero_pivot", "library");
subst("cusparseXcoo2csr", "rocsparse_coo2csr", "library");
subst("cusparseXcoosortByColumn", "rocsparse_coosort_by_column", "library");
subst("cusparseXcoosortByRow", "rocsparse_coosort_by_row", "library");
Expand Down Expand Up @@ -2033,6 +2037,7 @@ sub rocSubstitutions {
subst("cusparseZcsrilu02_analysis", "rocsparse_zcsrilu0_analysis", "library");
subst("cusparseZcsrilu02_bufferSize", "rocsparse_zcsrilu0_buffer_size", "library");
subst("cusparseZcsrilu02_numericBoost", "rocsparse_zcsrilu0_numeric_boost", "library");
subst("cusparseZcsrsm2_solve", "rocsparse_zcsrsm_solve", "library");
subst("cusparseZdense2csc", "rocsparse_zdense2csc", "library");
subst("cusparseZdense2csr", "rocsparse_zdense2csr", "library");
subst("cusparseZgebsr2csr", "rocsparse_zgebsr2csr", "library");
Expand Down Expand Up @@ -2068,6 +2073,8 @@ sub rocSubstitutions {
subst("csric02Info_t", "rocsparse_mat_info", "type");
subst("csrilu02Info", "_rocsparse_mat_info", "type");
subst("csrilu02Info_t", "rocsparse_mat_info", "type");
subst("csrsm2Info", "_rocsparse_mat_info", "type");
subst("csrsm2Info_t", "rocsparse_mat_info", "type");
subst("cuComplex", "rocblas_float_complex", "type");
subst("cuDoubleComplex", "rocblas_double_complex", "type");
subst("cuFloatComplex", "rocblas_float_complex", "type");
Expand Down
8 changes: 4 additions & 4 deletions docs/tables/CUSPARSE_API_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
|`cusparseCcsrmm2`| |10.2| |11.0|`hipsparseCcsrmm2`|3.1.0| | | | |
|`cusparseCcsrsm2_analysis`|10.0|11.3| |12.0|`hipsparseCcsrsm2_analysis`|3.1.0| | | | |
|`cusparseCcsrsm2_bufferSizeExt`|10.0|11.3| |12.0|`hipsparseCcsrsm2_bufferSizeExt`|3.1.0| | | | |
|`cusparseCcsrsm2_solve`|10.0|11.3| |12.0|`hipsparseCcsrsm2_solve`|3.1.0| | | | |
|`cusparseCcsrsm2_solve`|9.2|11.3| |12.0|`hipsparseCcsrsm2_solve`|3.1.0| | | | |
|`cusparseCcsrsm_analysis`| |10.2| |11.0| | | | | | |
|`cusparseCcsrsm_solve`| |10.2| |11.0| | | | | | |
|`cusparseCgemmi`|8.0|11.0| |12.0|`hipsparseCgemmi`|3.7.0| | | | |
Expand All @@ -401,7 +401,7 @@
|`cusparseDcsrmm2`| |10.2| |11.0|`hipsparseDcsrmm2`|1.9.2| | | | |
|`cusparseDcsrsm2_analysis`|10.0|11.3| |12.0|`hipsparseDcsrsm2_analysis`|3.1.0| | | | |
|`cusparseDcsrsm2_bufferSizeExt`|10.0|11.3| |12.0|`hipsparseDcsrsm2_bufferSizeExt`|3.1.0| | | | |
|`cusparseDcsrsm2_solve`|10.0|11.3| |12.0|`hipsparseDcsrsm2_solve`|3.1.0| | | | |
|`cusparseDcsrsm2_solve`|9.2|11.3| |12.0|`hipsparseDcsrsm2_solve`|3.1.0| | | | |
|`cusparseDcsrsm_analysis`| |10.2| |11.0| | | | | | |
|`cusparseDcsrsm_solve`| |10.2| |11.0| | | | | | |
|`cusparseDgemmi`|8.0|11.0| |12.0|`hipsparseDgemmi`|3.7.0| | | | |
Expand All @@ -414,7 +414,7 @@
|`cusparseScsrmm2`| |10.2| |11.0|`hipsparseScsrmm2`|1.9.2| | | | |
|`cusparseScsrsm2_analysis`|10.0|11.3| |12.0|`hipsparseScsrsm2_analysis`|3.1.0| | | | |
|`cusparseScsrsm2_bufferSizeExt`|10.0|11.3| |12.0|`hipsparseScsrsm2_bufferSizeExt`|3.1.0| | | | |
|`cusparseScsrsm2_solve`|10.0|11.3| |12.0|`hipsparseScsrsm2_solve`|3.1.0| | | | |
|`cusparseScsrsm2_solve`|9.2|11.3| |12.0|`hipsparseScsrsm2_solve`|3.1.0| | | | |
|`cusparseScsrsm_analysis`| |10.2| |11.0| | | | | | |
|`cusparseScsrsm_solve`| |10.2| |11.0| | | | | | |
|`cusparseSgemmi`|8.0|11.0| |12.0|`hipsparseSgemmi`|3.7.0| | | | |
Expand All @@ -429,7 +429,7 @@
|`cusparseZcsrmm2`| |10.2| |11.0|`hipsparseZcsrmm2`|3.1.0| | | | |
|`cusparseZcsrsm2_analysis`|10.0|11.3| |12.0|`hipsparseZcsrsm2_analysis`|3.1.0| | | | |
|`cusparseZcsrsm2_bufferSizeExt`|10.0|11.3| |12.0|`hipsparseZcsrsm2_bufferSizeExt`|3.1.0| | | | |
|`cusparseZcsrsm2_solve`|10.0|11.3| |12.0|`hipsparseZcsrsm2_solve`|3.1.0| | | | |
|`cusparseZcsrsm2_solve`|9.2|11.3| |12.0|`hipsparseZcsrsm2_solve`|3.1.0| | | | |
|`cusparseZcsrsm_analysis`| |10.2| |11.0| | | | | | |
|`cusparseZcsrsm_solve`| |10.2| |11.0| | | | | | |
|`cusparseZgemmi`|8.0|11.0| |12.0|`hipsparseZgemmi`|3.7.0| | | | |
Expand Down
14 changes: 7 additions & 7 deletions docs/tables/CUSPARSE_API_supported_by_HIP_and_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@
|`csric02Info_t`| |12.2| | |`csric02Info_t`|3.1.0| | | | |`rocsparse_mat_info`|1.9.0| | | | |
|`csrilu02Info`| |12.2| | |`csrilu02Info`|1.9.2| | | | |`_rocsparse_mat_info`|1.9.0| | | | |
|`csrilu02Info_t`| |12.2| | |`csrilu02Info_t`|1.9.2| | | | |`rocsparse_mat_info`|1.9.0| | | | |
|`csrsm2Info`|9.2| | |12.0| | | | | | | | | | | | |
|`csrsm2Info_t`|9.2| | |12.0|`csrsm2Info_t`|3.1.0| | | | | | | | | | |
|`csrsm2Info`|9.2| | |12.0| | | | | | |`_rocsparse_mat_info`|1.9.0| | | | |
|`csrsm2Info_t`|9.2| | |12.0|`csrsm2Info_t`|3.1.0| | | | |`rocsparse_mat_info`|1.9.0| | | | |
|`csrsv2Info`| | | |12.0| | | | | | | | | | | | |
|`csrsv2Info_t`| | | |12.0|`csrsv2Info_t`|1.9.2| | | | | | | | | | |
|`csru2csrInfo`| |12.2| | |`csru2csrInfo`|4.2.0| | | | | | | | | | |
Expand Down Expand Up @@ -388,7 +388,7 @@
|`cusparseCcsrmm2`| |10.2| |11.0|`hipsparseCcsrmm2`|3.1.0| | | | | | | | | | |
|`cusparseCcsrsm2_analysis`|10.0|11.3| |12.0|`hipsparseCcsrsm2_analysis`|3.1.0| | | | | | | | | | |
|`cusparseCcsrsm2_bufferSizeExt`|10.0|11.3| |12.0|`hipsparseCcsrsm2_bufferSizeExt`|3.1.0| | | | | | | | | | |
|`cusparseCcsrsm2_solve`|10.0|11.3| |12.0|`hipsparseCcsrsm2_solve`|3.1.0| | | | | | | | | | |
|`cusparseCcsrsm2_solve`|9.2|11.3| |12.0|`hipsparseCcsrsm2_solve`|3.1.0| | | | |`rocsparse_ccsrsm_solve`|3.1.0| | | | |
|`cusparseCcsrsm_analysis`| |10.2| |11.0| | | | | | | | | | | | |
|`cusparseCcsrsm_solve`| |10.2| |11.0| | | | | | | | | | | | |
|`cusparseCgemmi`|8.0|11.0| |12.0|`hipsparseCgemmi`|3.7.0| | | | | | | | | | |
Expand All @@ -401,7 +401,7 @@
|`cusparseDcsrmm2`| |10.2| |11.0|`hipsparseDcsrmm2`|1.9.2| | | | | | | | | | |
|`cusparseDcsrsm2_analysis`|10.0|11.3| |12.0|`hipsparseDcsrsm2_analysis`|3.1.0| | | | | | | | | | |
|`cusparseDcsrsm2_bufferSizeExt`|10.0|11.3| |12.0|`hipsparseDcsrsm2_bufferSizeExt`|3.1.0| | | | | | | | | | |
|`cusparseDcsrsm2_solve`|10.0|11.3| |12.0|`hipsparseDcsrsm2_solve`|3.1.0| | | | | | | | | | |
|`cusparseDcsrsm2_solve`|9.2|11.3| |12.0|`hipsparseDcsrsm2_solve`|3.1.0| | | | |`rocsparse_dcsrsm_solve`|3.1.0| | | | |
|`cusparseDcsrsm_analysis`| |10.2| |11.0| | | | | | | | | | | | |
|`cusparseDcsrsm_solve`| |10.2| |11.0| | | | | | | | | | | | |
|`cusparseDgemmi`|8.0|11.0| |12.0|`hipsparseDgemmi`|3.7.0| | | | | | | | | | |
Expand All @@ -414,11 +414,11 @@
|`cusparseScsrmm2`| |10.2| |11.0|`hipsparseScsrmm2`|1.9.2| | | | | | | | | | |
|`cusparseScsrsm2_analysis`|10.0|11.3| |12.0|`hipsparseScsrsm2_analysis`|3.1.0| | | | | | | | | | |
|`cusparseScsrsm2_bufferSizeExt`|10.0|11.3| |12.0|`hipsparseScsrsm2_bufferSizeExt`|3.1.0| | | | | | | | | | |
|`cusparseScsrsm2_solve`|10.0|11.3| |12.0|`hipsparseScsrsm2_solve`|3.1.0| | | | | | | | | | |
|`cusparseScsrsm2_solve`|9.2|11.3| |12.0|`hipsparseScsrsm2_solve`|3.1.0| | | | |`rocsparse_scsrsm_solve`|3.1.0| | | | |
|`cusparseScsrsm_analysis`| |10.2| |11.0| | | | | | | | | | | | |
|`cusparseScsrsm_solve`| |10.2| |11.0| | | | | | | | | | | | |
|`cusparseSgemmi`|8.0|11.0| |12.0|`hipsparseSgemmi`|3.7.0| | | | | | | | | | |
|`cusparseXbsrsm2_zeroPivot`| |12.2| | |`hipsparseXbsrsm2_zeroPivot`|4.5.0| | | | | | | | | | |
|`cusparseXbsrsm2_zeroPivot`| |12.2| | |`hipsparseXbsrsm2_zeroPivot`|4.5.0| | | | |`rocsparse_bsrsm_zero_pivot`|4.5.0| | | | |
|`cusparseXcsrsm2_zeroPivot`|10.0|11.3| |12.0|`hipsparseXcsrsm2_zeroPivot`|3.1.0| | | | | | | | | | |
|`cusparseZbsrmm`| | | | |`hipsparseZbsrmm`|3.7.0| | | | | | | | | | |
|`cusparseZbsrsm2_analysis`| |12.2| | |`hipsparseZbsrsm2_analysis`|4.5.0| | | | |`rocsparse_zbsrsm_analysis`|3.6.0| | | | |
Expand All @@ -429,7 +429,7 @@
|`cusparseZcsrmm2`| |10.2| |11.0|`hipsparseZcsrmm2`|3.1.0| | | | | | | | | | |
|`cusparseZcsrsm2_analysis`|10.0|11.3| |12.0|`hipsparseZcsrsm2_analysis`|3.1.0| | | | | | | | | | |
|`cusparseZcsrsm2_bufferSizeExt`|10.0|11.3| |12.0|`hipsparseZcsrsm2_bufferSizeExt`|3.1.0| | | | | | | | | | |
|`cusparseZcsrsm2_solve`|10.0|11.3| |12.0|`hipsparseZcsrsm2_solve`|3.1.0| | | | | | | | | | |
|`cusparseZcsrsm2_solve`|9.2|11.3| |12.0|`hipsparseZcsrsm2_solve`|3.1.0| | | | |`rocsparse_zcsrsm_solve`|3.1.0| | | | |
|`cusparseZcsrsm_analysis`| |10.2| |11.0| | | | | | | | | | | | |
|`cusparseZcsrsm_solve`| |10.2| |11.0| | | | | | | | | | | | |
|`cusparseZgemmi`|8.0|11.0| |12.0|`hipsparseZgemmi`|3.7.0| | | | | | | | | | |
Expand Down
14 changes: 7 additions & 7 deletions docs/tables/CUSPARSE_API_supported_by_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@
|`csric02Info_t`| |12.2| | |`rocsparse_mat_info`|1.9.0| | | | |
|`csrilu02Info`| |12.2| | |`_rocsparse_mat_info`|1.9.0| | | | |
|`csrilu02Info_t`| |12.2| | |`rocsparse_mat_info`|1.9.0| | | | |
|`csrsm2Info`|9.2| | |12.0| | | | | | |
|`csrsm2Info_t`|9.2| | |12.0| | | | | | |
|`csrsm2Info`|9.2| | |12.0|`_rocsparse_mat_info`|1.9.0| | | | |
|`csrsm2Info_t`|9.2| | |12.0|`rocsparse_mat_info`|1.9.0| | | | |
|`csrsv2Info`| | | |12.0| | | | | | |
|`csrsv2Info_t`| | | |12.0| | | | | | |
|`csru2csrInfo`| |12.2| | | | | | | | |
Expand Down Expand Up @@ -388,7 +388,7 @@
|`cusparseCcsrmm2`| |10.2| |11.0| | | | | | |
|`cusparseCcsrsm2_analysis`|10.0|11.3| |12.0| | | | | | |
|`cusparseCcsrsm2_bufferSizeExt`|10.0|11.3| |12.0| | | | | | |
|`cusparseCcsrsm2_solve`|10.0|11.3| |12.0| | | | | | |
|`cusparseCcsrsm2_solve`|9.2|11.3| |12.0|`rocsparse_ccsrsm_solve`|3.1.0| | | | |
|`cusparseCcsrsm_analysis`| |10.2| |11.0| | | | | | |
|`cusparseCcsrsm_solve`| |10.2| |11.0| | | | | | |
|`cusparseCgemmi`|8.0|11.0| |12.0| | | | | | |
Expand All @@ -401,7 +401,7 @@
|`cusparseDcsrmm2`| |10.2| |11.0| | | | | | |
|`cusparseDcsrsm2_analysis`|10.0|11.3| |12.0| | | | | | |
|`cusparseDcsrsm2_bufferSizeExt`|10.0|11.3| |12.0| | | | | | |
|`cusparseDcsrsm2_solve`|10.0|11.3| |12.0| | | | | | |
|`cusparseDcsrsm2_solve`|9.2|11.3| |12.0|`rocsparse_dcsrsm_solve`|3.1.0| | | | |
|`cusparseDcsrsm_analysis`| |10.2| |11.0| | | | | | |
|`cusparseDcsrsm_solve`| |10.2| |11.0| | | | | | |
|`cusparseDgemmi`|8.0|11.0| |12.0| | | | | | |
Expand All @@ -414,11 +414,11 @@
|`cusparseScsrmm2`| |10.2| |11.0| | | | | | |
|`cusparseScsrsm2_analysis`|10.0|11.3| |12.0| | | | | | |
|`cusparseScsrsm2_bufferSizeExt`|10.0|11.3| |12.0| | | | | | |
|`cusparseScsrsm2_solve`|10.0|11.3| |12.0| | | | | | |
|`cusparseScsrsm2_solve`|9.2|11.3| |12.0|`rocsparse_scsrsm_solve`|3.1.0| | | | |
|`cusparseScsrsm_analysis`| |10.2| |11.0| | | | | | |
|`cusparseScsrsm_solve`| |10.2| |11.0| | | | | | |
|`cusparseSgemmi`|8.0|11.0| |12.0| | | | | | |
|`cusparseXbsrsm2_zeroPivot`| |12.2| | | | | | | | |
|`cusparseXbsrsm2_zeroPivot`| |12.2| | |`rocsparse_bsrsm_zero_pivot`|4.5.0| | | | |
|`cusparseXcsrsm2_zeroPivot`|10.0|11.3| |12.0| | | | | | |
|`cusparseZbsrmm`| | | | | | | | | | |
|`cusparseZbsrsm2_analysis`| |12.2| | |`rocsparse_zbsrsm_analysis`|3.6.0| | | | |
Expand All @@ -429,7 +429,7 @@
|`cusparseZcsrmm2`| |10.2| |11.0| | | | | | |
|`cusparseZcsrsm2_analysis`|10.0|11.3| |12.0| | | | | | |
|`cusparseZcsrsm2_bufferSizeExt`|10.0|11.3| |12.0| | | | | | |
|`cusparseZcsrsm2_solve`|10.0|11.3| |12.0| | | | | | |
|`cusparseZcsrsm2_solve`|9.2|11.3| |12.0|`rocsparse_zcsrsm_solve`|3.1.0| | | | |
|`cusparseZcsrsm_analysis`| |10.2| |11.0| | | | | | |
|`cusparseZcsrsm_solve`| |10.2| |11.0| | | | | | |
|`cusparseZgemmi`|8.0|11.0| |12.0| | | | | | |
Expand Down
23 changes: 14 additions & 9 deletions src/CUDA2HIP_SPARSE_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ const std::map<llvm::StringRef, hipCounter> CUDA_SPARSE_FUNCTION_MAP {
{"cusparseCcsrsm2_analysis", {"hipsparseCcsrsm2_analysis", "", CONV_LIB_FUNC, API_SPARSE, 10, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
{"cusparseZcsrsm2_analysis", {"hipsparseZcsrsm2_analysis", "", CONV_LIB_FUNC, API_SPARSE, 10, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},

{"cusparseScsrsm2_solve", {"hipsparseScsrsm2_solve", "", CONV_LIB_FUNC, API_SPARSE, 10, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
{"cusparseDcsrsm2_solve", {"hipsparseDcsrsm2_solve", "", CONV_LIB_FUNC, API_SPARSE, 10, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
{"cusparseCcsrsm2_solve", {"hipsparseCcsrsm2_solve", "", CONV_LIB_FUNC, API_SPARSE, 10, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
{"cusparseZcsrsm2_solve", {"hipsparseZcsrsm2_solve", "", CONV_LIB_FUNC, API_SPARSE, 10, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
{"cusparseScsrsm2_solve", {"hipsparseScsrsm2_solve", "rocsparse_scsrsm_solve", CONV_LIB_FUNC, API_SPARSE, 10, CUDA_DEPRECATED | CUDA_REMOVED}},
{"cusparseDcsrsm2_solve", {"hipsparseDcsrsm2_solve", "rocsparse_dcsrsm_solve", CONV_LIB_FUNC, API_SPARSE, 10, CUDA_DEPRECATED | CUDA_REMOVED}},
{"cusparseCcsrsm2_solve", {"hipsparseCcsrsm2_solve", "rocsparse_ccsrsm_solve", CONV_LIB_FUNC, API_SPARSE, 10, CUDA_DEPRECATED | CUDA_REMOVED}},
{"cusparseZcsrsm2_solve", {"hipsparseZcsrsm2_solve", "rocsparse_zcsrsm_solve", CONV_LIB_FUNC, API_SPARSE, 10, CUDA_DEPRECATED | CUDA_REMOVED}},
{"cusparseXcsrsm2_zeroPivot", {"hipsparseXcsrsm2_zeroPivot", "", CONV_LIB_FUNC, API_SPARSE, 10, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},

{"cusparseSbsrmm", {"hipsparseSbsrmm", "", CONV_LIB_FUNC, API_SPARSE, 10, ROC_UNSUPPORTED}},
Expand All @@ -277,7 +277,7 @@ const std::map<llvm::StringRef, hipCounter> CUDA_SPARSE_FUNCTION_MAP {
{"cusparseDbsrsm2_solve", {"hipsparseDbsrsm2_solve", "rocsparse_dbsrsm_solve", CONV_LIB_FUNC, API_SPARSE, 10, CUDA_DEPRECATED}},
{"cusparseCbsrsm2_solve", {"hipsparseCbsrsm2_solve", "rocsparse_cbsrsm_solve", CONV_LIB_FUNC, API_SPARSE, 10, CUDA_DEPRECATED}},
{"cusparseZbsrsm2_solve", {"hipsparseZbsrsm2_solve", "rocsparse_zbsrsm_solve", CONV_LIB_FUNC, API_SPARSE, 10, CUDA_DEPRECATED}},
{"cusparseXbsrsm2_zeroPivot", {"hipsparseXbsrsm2_zeroPivot", "", CONV_LIB_FUNC, API_SPARSE, 10, ROC_UNSUPPORTED | CUDA_DEPRECATED}},
{"cusparseXbsrsm2_zeroPivot", {"hipsparseXbsrsm2_zeroPivot", "rocsparse_bsrsm_zero_pivot", CONV_LIB_FUNC, API_SPARSE, 10, CUDA_DEPRECATED}},

// NOTE: rocsparse_(s|d|c|z)gemmi have additional argument: rocsparse_mat_descr
// TODO: Add rocsparse_create_mat_descr() call before rocsparse_(s|d|c|z)gemmi call and rocsparse_destroy_mat_descr() after
Expand Down Expand Up @@ -955,10 +955,10 @@ const std::map<llvm::StringRef, cudaAPIversions> CUDA_SPARSE_FUNCTION_VER_MAP {
{"cusparseDcsrsm2_analysis", {CUDA_100, CUDA_113, CUDA_120}},
{"cusparseCcsrsm2_analysis", {CUDA_100, CUDA_113, CUDA_120}},
{"cusparseZcsrsm2_analysis", {CUDA_100, CUDA_113, CUDA_120}},
{"cusparseScsrsm2_solve", {CUDA_100, CUDA_113, CUDA_120}},
{"cusparseDcsrsm2_solve", {CUDA_100, CUDA_113, CUDA_120}},
{"cusparseCcsrsm2_solve", {CUDA_100, CUDA_113, CUDA_120}},
{"cusparseZcsrsm2_solve", {CUDA_100, CUDA_113, CUDA_120}},
{"cusparseScsrsm2_solve", {CUDA_92, CUDA_113, CUDA_120}},
{"cusparseDcsrsm2_solve", {CUDA_92, CUDA_113, CUDA_120}},
{"cusparseCcsrsm2_solve", {CUDA_92, CUDA_113, CUDA_120}},
{"cusparseZcsrsm2_solve", {CUDA_92, CUDA_113, CUDA_120}},
{"cusparseXcsrsm2_zeroPivot", {CUDA_100, CUDA_113, CUDA_120}},
{"cusparseSgemmi", {CUDA_80, CUDA_110, CUDA_120}},
{"cusparseDgemmi", {CUDA_80, CUDA_110, CUDA_120}},
Expand Down Expand Up @@ -2288,6 +2288,11 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_SPARSE_FUNCTION_VER_MAP {
{"rocsparse_cbsrsm_buffer_size", {HIP_4050, HIP_0, HIP_0 }},
{"rocsparse_dbsrsm_buffer_size", {HIP_4050, HIP_0, HIP_0 }},
{"rocsparse_sbsrsm_buffer_size", {HIP_4050, HIP_0, HIP_0 }},
{"rocsparse_bsrsm_zero_pivot", {HIP_4050, HIP_0, HIP_0 }},
{"rocsparse_zcsrsm_solve", {HIP_3010, HIP_0, HIP_0 }},
{"rocsparse_ccsrsm_solve", {HIP_3010, HIP_0, HIP_0 }},
{"rocsparse_dcsrsm_solve", {HIP_3010, HIP_0, HIP_0 }},
{"rocsparse_scsrsm_solve", {HIP_3010, HIP_0, HIP_0 }},
};

const std::map<llvm::StringRef, cudaAPIChangedVersions> CUDA_SPARSE_FUNCTION_CHANGED_VER_MAP {
Expand Down
Loading

0 comments on commit 7b669b6

Please sign in to comment.