Skip to content

Commit

Permalink
[HIPIFY][ROCm#674][rocSPARSE][feature] rocSPARSE support - Step 38 - …
Browse files Browse the repository at this point in the history
…functions

+ Updated synthetic tests and the regenerated hipify-perl and SPARSE docs
  • Loading branch information
emankov committed Sep 9, 2023
1 parent c71b9c7 commit 880b76c
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 24 deletions.
8 changes: 8 additions & 0 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -1691,8 +1691,10 @@ sub rocSubstitutions {
subst("cusparseCgebsr2gebsr_bufferSize", "rocsparse_cgebsr2gebsr_buffer_size", "library");
subst("cusparseCgpsvInterleavedBatch", "rocsparse_cgpsv_interleaved_batch", "library");
subst("cusparseCgpsvInterleavedBatch_bufferSizeExt", "rocsparse_cgpsv_interleaved_batch_buffer_size", "library");
subst("cusparseCgtsv2", "rocsparse_cgtsv", "library");
subst("cusparseCgtsv2StridedBatch", "rocsparse_cgtsv_no_pivot_strided_batch", "library");
subst("cusparseCgtsv2StridedBatch_bufferSizeExt", "rocsparse_cgtsv_no_pivot_strided_batch_buffer_size", "library");
subst("cusparseCgtsv2_bufferSizeExt", "rocsparse_cgtsv_buffer_size", "library");
subst("cusparseCgtsv2_nopivot", "rocsparse_cgtsv_no_pivot", "library");
subst("cusparseCgtsv2_nopivot_bufferSizeExt", "rocsparse_cgtsv_no_pivot_buffer_size", "library");
subst("cusparseCgtsvInterleavedBatch", "rocsparse_cgtsv_interleaved_batch", "library");
Expand Down Expand Up @@ -1747,8 +1749,10 @@ sub rocSubstitutions {
subst("cusparseDgebsr2gebsr_bufferSize", "rocsparse_dgebsr2gebsr_buffer_size", "library");
subst("cusparseDgpsvInterleavedBatch", "rocsparse_dgpsv_interleaved_batch", "library");
subst("cusparseDgpsvInterleavedBatch_bufferSizeExt", "rocsparse_dgpsv_interleaved_batch_buffer_size", "library");
subst("cusparseDgtsv2", "rocsparse_dgtsv", "library");
subst("cusparseDgtsv2StridedBatch", "rocsparse_dgtsv_no_pivot_strided_batch", "library");
subst("cusparseDgtsv2StridedBatch_bufferSizeExt", "rocsparse_dgtsv_no_pivot_strided_batch_buffer_size", "library");
subst("cusparseDgtsv2_bufferSizeExt", "rocsparse_dgtsv_buffer_size", "library");
subst("cusparseDgtsv2_nopivot", "rocsparse_dgtsv_no_pivot", "library");
subst("cusparseDgtsv2_nopivot_bufferSizeExt", "rocsparse_dgtsv_no_pivot_buffer_size", "library");
subst("cusparseDgtsvInterleavedBatch", "rocsparse_dgtsv_interleaved_batch", "library");
Expand Down Expand Up @@ -1812,8 +1816,10 @@ sub rocSubstitutions {
subst("cusparseSgebsr2gebsr_bufferSize", "rocsparse_sgebsr2gebsr_buffer_size", "library");
subst("cusparseSgpsvInterleavedBatch", "rocsparse_sgpsv_interleaved_batch", "library");
subst("cusparseSgpsvInterleavedBatch_bufferSizeExt", "rocsparse_sgpsv_interleaved_batch_buffer_size", "library");
subst("cusparseSgtsv2", "rocsparse_sgtsv", "library");
subst("cusparseSgtsv2StridedBatch", "rocsparse_sgtsv_no_pivot_strided_batch", "library");
subst("cusparseSgtsv2StridedBatch_bufferSizeExt", "rocsparse_sgtsv_no_pivot_strided_batch_buffer_size", "library");
subst("cusparseSgtsv2_bufferSizeExt", "rocsparse_sgtsv_buffer_size", "library");
subst("cusparseSgtsv2_nopivot", "rocsparse_sgtsv_no_pivot", "library");
subst("cusparseSgtsv2_nopivot_bufferSizeExt", "rocsparse_sgtsv_no_pivot_buffer_size", "library");
subst("cusparseSgtsvInterleavedBatch", "rocsparse_sgtsv_interleaved_batch", "library");
Expand Down Expand Up @@ -1876,8 +1882,10 @@ sub rocSubstitutions {
subst("cusparseZgebsr2gebsr_bufferSize", "rocsparse_zgebsr2gebsr_buffer_size", "library");
subst("cusparseZgpsvInterleavedBatch", "rocsparse_zgpsv_interleaved_batch", "library");
subst("cusparseZgpsvInterleavedBatch_bufferSizeExt", "rocsparse_zgpsv_interleaved_batch_buffer_size", "library");
subst("cusparseZgtsv2", "rocsparse_zgtsv", "library");
subst("cusparseZgtsv2StridedBatch", "rocsparse_zgtsv_no_pivot_strided_batch", "library");
subst("cusparseZgtsv2StridedBatch_bufferSizeExt", "rocsparse_zgtsv_no_pivot_strided_batch_buffer_size", "library");
subst("cusparseZgtsv2_bufferSizeExt", "rocsparse_zgtsv_buffer_size", "library");
subst("cusparseZgtsv2_nopivot", "rocsparse_zgtsv_no_pivot", "library");
subst("cusparseZgtsv2_nopivot_bufferSizeExt", "rocsparse_zgtsv_no_pivot_buffer_size", "library");
subst("cusparseZgtsvInterleavedBatch", "rocsparse_zgtsv_interleaved_batch", "library");
Expand Down
16 changes: 8 additions & 8 deletions docs/tables/CUSPARSE_API_supported_by_HIP_and_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,10 @@
|`cusparseCgpsvInterleavedBatch`|9.2| | |`hipsparseCgpsvInterleavedBatch`|5.1.0| | | |`rocsparse_cgpsv_interleaved_batch`|5.1.0| | | |
|`cusparseCgpsvInterleavedBatch_bufferSizeExt`|9.2| | |`hipsparseCgpsvInterleavedBatch_bufferSizeExt`|5.1.0| | | |`rocsparse_cgpsv_interleaved_batch_buffer_size`|5.1.0| | | |
|`cusparseCgtsv`| |10.2|11.0| | | | | | | | | | |
|`cusparseCgtsv2`|9.0| | |`hipsparseCgtsv2`|4.3.0| | | | | | | | |
|`cusparseCgtsv2`|9.0| | |`hipsparseCgtsv2`|4.3.0| | | |`rocsparse_cgtsv`|4.3.0| | | |
|`cusparseCgtsv2StridedBatch`| | | |`hipsparseCgtsv2StridedBatch`|4.5.0| | | |`rocsparse_cgtsv_no_pivot_strided_batch`|4.3.0| | | |
|`cusparseCgtsv2StridedBatch_bufferSizeExt`| | | |`hipsparseCgtsv2StridedBatch_bufferSizeExt`|4.5.0| | | |`rocsparse_cgtsv_no_pivot_strided_batch_buffer_size`|4.3.0| | | |
|`cusparseCgtsv2_bufferSizeExt`|9.0| | |`hipsparseCgtsv2_bufferSizeExt`|4.3.0| | | | | | | | |
|`cusparseCgtsv2_bufferSizeExt`|9.0| | |`hipsparseCgtsv2_bufferSizeExt`|4.3.0| | | |`rocsparse_cgtsv_buffer_size`|4.3.0| | | |
|`cusparseCgtsv2_nopivot`|9.0| | |`hipsparseCgtsv2_nopivot`|4.3.0| | | |`rocsparse_cgtsv_no_pivot`|4.3.0| | | |
|`cusparseCgtsv2_nopivot_bufferSizeExt`|9.0| | |`hipsparseCgtsv2_nopivot_bufferSizeExt`|4.3.0| | | |`rocsparse_cgtsv_no_pivot_buffer_size`|4.3.0| | | |
|`cusparseCgtsvInterleavedBatch`|9.2| | |`hipsparseCgtsvInterleavedBatch`|5.1.0| | | |`rocsparse_cgtsv_interleaved_batch`|5.1.0| | | |
Expand Down Expand Up @@ -526,10 +526,10 @@
|`cusparseDgpsvInterleavedBatch`|9.2| | |`hipsparseDgpsvInterleavedBatch`|5.1.0| | | |`rocsparse_dgpsv_interleaved_batch`|5.1.0| | | |
|`cusparseDgpsvInterleavedBatch_bufferSizeExt`|9.2| | |`hipsparseDgpsvInterleavedBatch_bufferSizeExt`|5.1.0| | | |`rocsparse_dgpsv_interleaved_batch_buffer_size`|5.1.0| | | |
|`cusparseDgtsv`| |10.2|11.0| | | | | | | | | | |
|`cusparseDgtsv2`|9.0| | |`hipsparseDgtsv2`|4.3.0| | | | | | | | |
|`cusparseDgtsv2`|9.0| | |`hipsparseDgtsv2`|4.3.0| | | |`rocsparse_dgtsv`|4.3.0| | | |
|`cusparseDgtsv2StridedBatch`| | | |`hipsparseDgtsv2StridedBatch`|4.5.0| | | |`rocsparse_dgtsv_no_pivot_strided_batch`|4.3.0| | | |
|`cusparseDgtsv2StridedBatch_bufferSizeExt`| | | |`hipsparseDgtsv2StridedBatch_bufferSizeExt`|4.5.0| | | |`rocsparse_dgtsv_no_pivot_strided_batch_buffer_size`|4.3.0| | | |
|`cusparseDgtsv2_bufferSizeExt`|9.0| | |`hipsparseDgtsv2_bufferSizeExt`|4.3.0| | | | | | | | |
|`cusparseDgtsv2_bufferSizeExt`|9.0| | |`hipsparseDgtsv2_bufferSizeExt`|4.3.0| | | |`rocsparse_dgtsv_buffer_size`|4.3.0| | | |
|`cusparseDgtsv2_nopivot`|9.0| | |`hipsparseDgtsv2_nopivot`|4.3.0| | | |`rocsparse_dgtsv_no_pivot`|4.3.0| | | |
|`cusparseDgtsv2_nopivot_bufferSizeExt`|9.0| | |`hipsparseDgtsv2_nopivot_bufferSizeExt`|4.3.0| | | |`rocsparse_dgtsv_no_pivot_buffer_size`|4.3.0| | | |
|`cusparseDgtsvInterleavedBatch`|9.2| | |`hipsparseDgtsvInterleavedBatch`|5.1.0| | | |`rocsparse_dgtsv_interleaved_batch`|5.1.0| | | |
Expand Down Expand Up @@ -559,10 +559,10 @@
|`cusparseSgpsvInterleavedBatch`|9.2| | |`hipsparseSgpsvInterleavedBatch`|5.1.0| | | |`rocsparse_sgpsv_interleaved_batch`|5.1.0| | | |
|`cusparseSgpsvInterleavedBatch_bufferSizeExt`|9.2| | |`hipsparseSgpsvInterleavedBatch_bufferSizeExt`|5.1.0| | | |`rocsparse_sgpsv_interleaved_batch_buffer_size`|5.1.0| | | |
|`cusparseSgtsv`| |10.2|11.0| | | | | | | | | | |
|`cusparseSgtsv2`|9.0| | |`hipsparseSgtsv2`|4.3.0| | | | | | | | |
|`cusparseSgtsv2`|9.0| | |`hipsparseSgtsv2`|4.3.0| | | |`rocsparse_sgtsv`|4.3.0| | | |
|`cusparseSgtsv2StridedBatch`|9.0| | |`hipsparseSgtsv2StridedBatch`|4.5.0| | | |`rocsparse_sgtsv_no_pivot_strided_batch`|4.3.0| | | |
|`cusparseSgtsv2StridedBatch_bufferSizeExt`|9.0| | |`hipsparseSgtsv2StridedBatch_bufferSizeExt`|4.5.0| | | |`rocsparse_sgtsv_no_pivot_strided_batch_buffer_size`|4.3.0| | | |
|`cusparseSgtsv2_bufferSizeExt`|9.0| | |`hipsparseSgtsv2_bufferSizeExt`|4.3.0| | | | | | | | |
|`cusparseSgtsv2_bufferSizeExt`|9.0| | |`hipsparseSgtsv2_bufferSizeExt`|4.3.0| | | |`rocsparse_sgtsv_buffer_size`|4.3.0| | | |
|`cusparseSgtsv2_nopivot`|9.0| | |`hipsparseSgtsv2_nopivot`|4.3.0| | | |`rocsparse_sgtsv_no_pivot`|4.3.0| | | |
|`cusparseSgtsv2_nopivot_bufferSizeExt`|9.0| | |`hipsparseSgtsv2_nopivot_bufferSizeExt`|4.3.0| | | |`rocsparse_sgtsv_no_pivot_buffer_size`|4.3.0| | | |
|`cusparseSgtsvInterleavedBatch`|9.2| | |`hipsparseSgtsvInterleavedBatch`|5.1.0| | | |`rocsparse_sgtsv_interleaved_batch`|5.1.0| | | |
Expand Down Expand Up @@ -596,10 +596,10 @@
|`cusparseZgpsvInterleavedBatch`|9.2| | |`hipsparseZgpsvInterleavedBatch`|5.1.0| | | |`rocsparse_zgpsv_interleaved_batch`|5.1.0| | | |
|`cusparseZgpsvInterleavedBatch_bufferSizeExt`|9.2| | |`hipsparseZgpsvInterleavedBatch_bufferSizeExt`|5.1.0| | | |`rocsparse_zgpsv_interleaved_batch_buffer_size`|5.1.0| | | |
|`cusparseZgtsv`| |10.2|11.0| | | | | | | | | | |
|`cusparseZgtsv2`|9.0| | |`hipsparseZgtsv2`|4.3.0| | | | | | | | |
|`cusparseZgtsv2`|9.0| | |`hipsparseZgtsv2`|4.3.0| | | |`rocsparse_zgtsv`|4.3.0| | | |
|`cusparseZgtsv2StridedBatch`| | | |`hipsparseZgtsv2StridedBatch`|4.5.0| | | |`rocsparse_zgtsv_no_pivot_strided_batch`|4.3.0| | | |
|`cusparseZgtsv2StridedBatch_bufferSizeExt`| | | |`hipsparseZgtsv2StridedBatch_bufferSizeExt`|4.5.0| | | |`rocsparse_zgtsv_no_pivot_strided_batch_buffer_size`|4.3.0| | | |
|`cusparseZgtsv2_bufferSizeExt`|9.0| | |`hipsparseZgtsv2_bufferSizeExt`|4.3.0| | | | | | | | |
|`cusparseZgtsv2_bufferSizeExt`|9.0| | |`hipsparseZgtsv2_bufferSizeExt`|4.3.0| | | |`rocsparse_zgtsv_buffer_size`|4.3.0| | | |
|`cusparseZgtsv2_nopivot`|9.0| | |`hipsparseZgtsv2_nopivot`|4.3.0| | | |`rocsparse_zgtsv_no_pivot`|4.3.0| | | |
|`cusparseZgtsv2_nopivot_bufferSizeExt`|9.0| | |`hipsparseZgtsv2_nopivot_bufferSizeExt`|4.3.0| | | |`rocsparse_zgtsv_no_pivot_buffer_size`|4.3.0| | | |
|`cusparseZgtsvInterleavedBatch`|9.2| | |`hipsparseZgtsvInterleavedBatch`|5.1.0| | | |`rocsparse_zgtsv_interleaved_batch`|5.1.0| | | |
Expand Down
16 changes: 8 additions & 8 deletions docs/tables/CUSPARSE_API_supported_by_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -492,10 +492,10 @@
|`cusparseCgpsvInterleavedBatch`|9.2| | |`rocsparse_cgpsv_interleaved_batch`|5.1.0| | | |
|`cusparseCgpsvInterleavedBatch_bufferSizeExt`|9.2| | |`rocsparse_cgpsv_interleaved_batch_buffer_size`|5.1.0| | | |
|`cusparseCgtsv`| |10.2|11.0| | | | | |
|`cusparseCgtsv2`|9.0| | | | | | | |
|`cusparseCgtsv2`|9.0| | |`rocsparse_cgtsv`|4.3.0| | | |
|`cusparseCgtsv2StridedBatch`| | | |`rocsparse_cgtsv_no_pivot_strided_batch`|4.3.0| | | |
|`cusparseCgtsv2StridedBatch_bufferSizeExt`| | | |`rocsparse_cgtsv_no_pivot_strided_batch_buffer_size`|4.3.0| | | |
|`cusparseCgtsv2_bufferSizeExt`|9.0| | | | | | | |
|`cusparseCgtsv2_bufferSizeExt`|9.0| | |`rocsparse_cgtsv_buffer_size`|4.3.0| | | |
|`cusparseCgtsv2_nopivot`|9.0| | |`rocsparse_cgtsv_no_pivot`|4.3.0| | | |
|`cusparseCgtsv2_nopivot_bufferSizeExt`|9.0| | |`rocsparse_cgtsv_no_pivot_buffer_size`|4.3.0| | | |
|`cusparseCgtsvInterleavedBatch`|9.2| | |`rocsparse_cgtsv_interleaved_batch`|5.1.0| | | |
Expand Down Expand Up @@ -526,10 +526,10 @@
|`cusparseDgpsvInterleavedBatch`|9.2| | |`rocsparse_dgpsv_interleaved_batch`|5.1.0| | | |
|`cusparseDgpsvInterleavedBatch_bufferSizeExt`|9.2| | |`rocsparse_dgpsv_interleaved_batch_buffer_size`|5.1.0| | | |
|`cusparseDgtsv`| |10.2|11.0| | | | | |
|`cusparseDgtsv2`|9.0| | | | | | | |
|`cusparseDgtsv2`|9.0| | |`rocsparse_dgtsv`|4.3.0| | | |
|`cusparseDgtsv2StridedBatch`| | | |`rocsparse_dgtsv_no_pivot_strided_batch`|4.3.0| | | |
|`cusparseDgtsv2StridedBatch_bufferSizeExt`| | | |`rocsparse_dgtsv_no_pivot_strided_batch_buffer_size`|4.3.0| | | |
|`cusparseDgtsv2_bufferSizeExt`|9.0| | | | | | | |
|`cusparseDgtsv2_bufferSizeExt`|9.0| | |`rocsparse_dgtsv_buffer_size`|4.3.0| | | |
|`cusparseDgtsv2_nopivot`|9.0| | |`rocsparse_dgtsv_no_pivot`|4.3.0| | | |
|`cusparseDgtsv2_nopivot_bufferSizeExt`|9.0| | |`rocsparse_dgtsv_no_pivot_buffer_size`|4.3.0| | | |
|`cusparseDgtsvInterleavedBatch`|9.2| | |`rocsparse_dgtsv_interleaved_batch`|5.1.0| | | |
Expand Down Expand Up @@ -559,10 +559,10 @@
|`cusparseSgpsvInterleavedBatch`|9.2| | |`rocsparse_sgpsv_interleaved_batch`|5.1.0| | | |
|`cusparseSgpsvInterleavedBatch_bufferSizeExt`|9.2| | |`rocsparse_sgpsv_interleaved_batch_buffer_size`|5.1.0| | | |
|`cusparseSgtsv`| |10.2|11.0| | | | | |
|`cusparseSgtsv2`|9.0| | | | | | | |
|`cusparseSgtsv2`|9.0| | |`rocsparse_sgtsv`|4.3.0| | | |
|`cusparseSgtsv2StridedBatch`|9.0| | |`rocsparse_sgtsv_no_pivot_strided_batch`|4.3.0| | | |
|`cusparseSgtsv2StridedBatch_bufferSizeExt`|9.0| | |`rocsparse_sgtsv_no_pivot_strided_batch_buffer_size`|4.3.0| | | |
|`cusparseSgtsv2_bufferSizeExt`|9.0| | | | | | | |
|`cusparseSgtsv2_bufferSizeExt`|9.0| | |`rocsparse_sgtsv_buffer_size`|4.3.0| | | |
|`cusparseSgtsv2_nopivot`|9.0| | |`rocsparse_sgtsv_no_pivot`|4.3.0| | | |
|`cusparseSgtsv2_nopivot_bufferSizeExt`|9.0| | |`rocsparse_sgtsv_no_pivot_buffer_size`|4.3.0| | | |
|`cusparseSgtsvInterleavedBatch`|9.2| | |`rocsparse_sgtsv_interleaved_batch`|5.1.0| | | |
Expand Down Expand Up @@ -596,10 +596,10 @@
|`cusparseZgpsvInterleavedBatch`|9.2| | |`rocsparse_zgpsv_interleaved_batch`|5.1.0| | | |
|`cusparseZgpsvInterleavedBatch_bufferSizeExt`|9.2| | |`rocsparse_zgpsv_interleaved_batch_buffer_size`|5.1.0| | | |
|`cusparseZgtsv`| |10.2|11.0| | | | | |
|`cusparseZgtsv2`|9.0| | | | | | | |
|`cusparseZgtsv2`|9.0| | |`rocsparse_zgtsv`|4.3.0| | | |
|`cusparseZgtsv2StridedBatch`| | | |`rocsparse_zgtsv_no_pivot_strided_batch`|4.3.0| | | |
|`cusparseZgtsv2StridedBatch_bufferSizeExt`| | | |`rocsparse_zgtsv_no_pivot_strided_batch_buffer_size`|4.3.0| | | |
|`cusparseZgtsv2_bufferSizeExt`|9.0| | | | | | | |
|`cusparseZgtsv2_bufferSizeExt`|9.0| | |`rocsparse_zgtsv_buffer_size`|4.3.0| | | |
|`cusparseZgtsv2_nopivot`|9.0| | |`rocsparse_zgtsv_no_pivot`|4.3.0| | | |
|`cusparseZgtsv2_nopivot_bufferSizeExt`|9.0| | |`rocsparse_zgtsv_no_pivot_buffer_size`|4.3.0| | | |
|`cusparseZgtsvInterleavedBatch`|9.2| | |`rocsparse_zgtsv_interleaved_batch`|5.1.0| | | |
Expand Down
24 changes: 16 additions & 8 deletions src/CUDA2HIP_SPARSE_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,15 @@ const std::map<llvm::StringRef, hipCounter> CUDA_SPARSE_FUNCTION_MAP {
{"cusparseCgtsv_nopivot", {"hipsparseCgtsv_nopivot", "", CONV_LIB_FUNC, API_SPARSE, 12, UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},
{"cusparseZgtsv_nopivot", {"hipsparseZgtsv_nopivot", "", CONV_LIB_FUNC, API_SPARSE, 12, UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}},

{"cusparseSgtsv2_bufferSizeExt", {"hipsparseSgtsv2_bufferSizeExt", "", CONV_LIB_FUNC, API_SPARSE, 12, ROC_UNSUPPORTED}},
{"cusparseDgtsv2_bufferSizeExt", {"hipsparseDgtsv2_bufferSizeExt", "", CONV_LIB_FUNC, API_SPARSE, 12, ROC_UNSUPPORTED}},
{"cusparseCgtsv2_bufferSizeExt", {"hipsparseCgtsv2_bufferSizeExt", "", CONV_LIB_FUNC, API_SPARSE, 12, ROC_UNSUPPORTED}},
{"cusparseZgtsv2_bufferSizeExt", {"hipsparseZgtsv2_bufferSizeExt", "", CONV_LIB_FUNC, API_SPARSE, 12, ROC_UNSUPPORTED}},
{"cusparseSgtsv2_bufferSizeExt", {"hipsparseSgtsv2_bufferSizeExt", "rocsparse_sgtsv_buffer_size", CONV_LIB_FUNC, API_SPARSE, 12}},
{"cusparseDgtsv2_bufferSizeExt", {"hipsparseDgtsv2_bufferSizeExt", "rocsparse_dgtsv_buffer_size", CONV_LIB_FUNC, API_SPARSE, 12}},
{"cusparseCgtsv2_bufferSizeExt", {"hipsparseCgtsv2_bufferSizeExt", "rocsparse_cgtsv_buffer_size", CONV_LIB_FUNC, API_SPARSE, 12}},
{"cusparseZgtsv2_bufferSizeExt", {"hipsparseZgtsv2_bufferSizeExt", "rocsparse_zgtsv_buffer_size", CONV_LIB_FUNC, API_SPARSE, 12}},

{"cusparseSgtsv2", {"hipsparseSgtsv2", "", CONV_LIB_FUNC, API_SPARSE, 12, ROC_UNSUPPORTED}},
{"cusparseDgtsv2", {"hipsparseDgtsv2", "", CONV_LIB_FUNC, API_SPARSE, 12, ROC_UNSUPPORTED}},
{"cusparseCgtsv2", {"hipsparseCgtsv2", "", CONV_LIB_FUNC, API_SPARSE, 12, ROC_UNSUPPORTED}},
{"cusparseZgtsv2", {"hipsparseZgtsv2", "", CONV_LIB_FUNC, API_SPARSE, 12, ROC_UNSUPPORTED}},
{"cusparseSgtsv2", {"hipsparseSgtsv2", "rocsparse_sgtsv", CONV_LIB_FUNC, API_SPARSE, 12}},
{"cusparseDgtsv2", {"hipsparseDgtsv2", "rocsparse_dgtsv", CONV_LIB_FUNC, API_SPARSE, 12}},
{"cusparseCgtsv2", {"hipsparseCgtsv2", "rocsparse_cgtsv", CONV_LIB_FUNC, API_SPARSE, 12}},
{"cusparseZgtsv2", {"hipsparseZgtsv2", "rocsparse_zgtsv", CONV_LIB_FUNC, API_SPARSE, 12}},

{"cusparseSgtsv2_nopivot_bufferSizeExt", {"hipsparseSgtsv2_nopivot_bufferSizeExt", "rocsparse_sgtsv_no_pivot_buffer_size", CONV_LIB_FUNC, API_SPARSE, 12}},
{"cusparseDgtsv2_nopivot_bufferSizeExt", {"hipsparseDgtsv2_nopivot_bufferSizeExt", "rocsparse_dgtsv_no_pivot_buffer_size", CONV_LIB_FUNC, API_SPARSE, 12}},
Expand Down Expand Up @@ -2167,6 +2167,14 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_SPARSE_FUNCTION_VER_MAP {
{"rocsparse_cgtsv_no_pivot_buffer_size", {HIP_4030, HIP_0, HIP_0 }},
{"rocsparse_dgtsv_no_pivot_buffer_size", {HIP_4030, HIP_0, HIP_0 }},
{"rocsparse_sgtsv_no_pivot_buffer_size", {HIP_4030, HIP_0, HIP_0 }},
{"rocsparse_zgtsv", {HIP_4030, HIP_0, HIP_0 }},
{"rocsparse_cgtsv", {HIP_4030, HIP_0, HIP_0 }},
{"rocsparse_dgtsv", {HIP_4030, HIP_0, HIP_0 }},
{"rocsparse_sgtsv", {HIP_4030, HIP_0, HIP_0 }},
{"rocsparse_zgtsv_buffer_size", {HIP_4030, HIP_0, HIP_0 }},
{"rocsparse_cgtsv_buffer_size", {HIP_4030, HIP_0, HIP_0 }},
{"rocsparse_dgtsv_buffer_size", {HIP_4030, HIP_0, HIP_0 }},
{"rocsparse_sgtsv_buffer_size", {HIP_4030, HIP_0, HIP_0 }},
};

const std::map<unsigned int, llvm::StringRef> CUDA_SPARSE_API_SECTION_MAP {
Expand Down
Loading

0 comments on commit 880b76c

Please sign in to comment.