Skip to content

Commit

Permalink
[HIPIFY][ROCm#674][rocSPARSE][feature] rocSPARSE support - Step 30 - …
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 Aug 24, 2023
1 parent 9630f28 commit 0d58bf3
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 @@ -1683,6 +1683,7 @@ sub rocSubstitutions {
subst("cusparseCcsr2hyb", "rocsparse_ccsr2hyb", "library");
subst("cusparseCcsrcolor", "rocsparse_ccsrcolor", "library");
subst("cusparseCdense2csc", "rocsparse_cdense2csc", "library");
subst("cusparseCdense2csr", "rocsparse_cdense2csr", "library");
subst("cusparseCgebsr2csr", "rocsparse_cgebsr2csr", "library");
subst("cusparseCgebsr2gebsc", "rocsparse_cgebsr2gebsc", "library");
subst("cusparseCgebsr2gebsc_bufferSize", "rocsparse_cgebsr2gebsc_buffer_size", "library");
Expand Down Expand Up @@ -1721,6 +1722,7 @@ sub rocSubstitutions {
subst("cusparseDcsr2hyb", "rocsparse_dcsr2hyb", "library");
subst("cusparseDcsrcolor", "rocsparse_dcsrcolor", "library");
subst("cusparseDdense2csc", "rocsparse_ddense2csc", "library");
subst("cusparseDdense2csr", "rocsparse_ddense2csr", "library");
subst("cusparseDestroy", "rocsparse_destroy_handle", "library");
subst("cusparseDestroyColorInfo", "rocsparse_destroy_color_info", "library");
subst("cusparseDestroyDnMat", "rocsparse_destroy_dnmat_descr", "library");
Expand Down Expand Up @@ -1752,7 +1754,9 @@ sub rocSubstitutions {
subst("cusparseDpruneDense2csr", "rocsparse_dprune_dense2csr", "library");
subst("cusparseDpruneDense2csrByPercentage", "rocsparse_dprune_dense2csr_by_percentage", "library");
subst("cusparseDpruneDense2csrByPercentage_bufferSizeExt", "rocsparse_dprune_dense2csr_by_percentage_buffer_size", "library");
subst("cusparseDpruneDense2csrNnz", "rocsparse_dprune_dense2csr_nnz", "library");
subst("cusparseDpruneDense2csrNnzByPercentage", "rocsparse_dprune_dense2csr_nnz_by_percentage", "library");
subst("cusparseDpruneDense2csr_bufferSizeExt", "rocsparse_dprune_dense2csr_buffer_size", "library");
subst("cusparseGather", "rocsparse_gather", "library");
subst("cusparseGetMatDiagType", "rocsparse_get_mat_diag_type", "library");
subst("cusparseGetMatFillMode", "rocsparse_get_mat_fill_mode", "library");
Expand All @@ -1776,6 +1780,7 @@ sub rocSubstitutions {
subst("cusparseScsr2hyb", "rocsparse_scsr2hyb", "library");
subst("cusparseScsrcolor", "rocsparse_scsrcolor", "library");
subst("cusparseSdense2csc", "rocsparse_sdense2csc", "library");
subst("cusparseSdense2csr", "rocsparse_sdense2csr", "library");
subst("cusparseSetMatDiagType", "rocsparse_set_mat_diag_type", "library");
subst("cusparseSetMatFillMode", "rocsparse_set_mat_fill_mode", "library");
subst("cusparseSetMatIndexBase", "rocsparse_set_mat_index_base", "library");
Expand Down Expand Up @@ -1811,7 +1816,9 @@ sub rocSubstitutions {
subst("cusparseSpruneDense2csr", "rocsparse_sprune_dense2csr", "library");
subst("cusparseSpruneDense2csrByPercentage", "rocsparse_sprune_dense2csr_by_percentage", "library");
subst("cusparseSpruneDense2csrByPercentage_bufferSizeExt", "rocsparse_sprune_dense2csr_by_percentage_buffer_size", "library");
subst("cusparseSpruneDense2csrNnz", "rocsparse_sprune_dense2csr_nnz", "library");
subst("cusparseSpruneDense2csrNnzByPercentage", "rocsparse_sprune_dense2csr_nnz_by_percentage", "library");
subst("cusparseSpruneDense2csr_bufferSizeExt", "rocsparse_sprune_dense2csr_buffer_size", "library");
subst("cusparseXcoo2csr", "rocsparse_coo2csr", "library");
subst("cusparseXcoosortByColumn", "rocsparse_coosort_by_column", "library");
subst("cusparseXcoosortByRow", "rocsparse_coosort_by_row", "library");
Expand All @@ -1834,6 +1841,7 @@ sub rocSubstitutions {
subst("cusparseZcsr2hyb", "rocsparse_zcsr2hyb", "library");
subst("cusparseZcsrcolor", "rocsparse_zcsrcolor", "library");
subst("cusparseZdense2csc", "rocsparse_zdense2csc", "library");
subst("cusparseZdense2csr", "rocsparse_zdense2csr", "library");
subst("cusparseZgebsr2csr", "rocsparse_zgebsr2csr", "library");
subst("cusparseZgebsr2gebsc", "rocsparse_zgebsr2gebsc", "library");
subst("cusparseZgebsr2gebsc_bufferSize", "rocsparse_zgebsr2gebsc_buffer_size", "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 @@ -635,7 +635,7 @@
|`cusparseCcsru2csr`| |12.2| |`hipsparseCcsru2csr`|4.2.0| | | | | | | | |
|`cusparseCcsru2csr_bufferSizeExt`| |12.2| |`hipsparseCcsru2csr_bufferSizeExt`|4.2.0| | | | | | | | |
|`cusparseCdense2csc`| |11.1|12.0|`hipsparseCdense2csc`|3.5.0| | | |`rocsparse_cdense2csc`|3.2.0| | | |
|`cusparseCdense2csr`| |11.1|12.0|`hipsparseCdense2csr`|3.5.0| | | | | | | | |
|`cusparseCdense2csr`| |11.1|12.0|`hipsparseCdense2csr`|3.5.0| | | |`rocsparse_cdense2csr`|3.2.0| | | |
|`cusparseCdense2hyb`| |10.2|11.0| | | | | | | | | | |
|`cusparseCgebsr2csr`| | | |`hipsparseCgebsr2csr`|4.1.0| | | |`rocsparse_cgebsr2csr`|3.10.0| | | |
|`cusparseCgebsr2gebsc`| | | |`hipsparseCgebsr2gebsc`|4.1.0| | | |`rocsparse_cgebsr2gebsc`|4.1.0| | | |
Expand Down Expand Up @@ -669,7 +669,7 @@
|`cusparseDcsru2csr`| |12.2| |`hipsparseDcsru2csr`|4.2.0| | | | | | | | |
|`cusparseDcsru2csr_bufferSizeExt`| |12.2| |`hipsparseDcsru2csr_bufferSizeExt`|4.2.0| | | | | | | | |
|`cusparseDdense2csc`| |11.1|12.0|`hipsparseDdense2csc`|3.5.0| | | |`rocsparse_ddense2csc`|3.2.0| | | |
|`cusparseDdense2csr`| |11.1|12.0|`hipsparseDdense2csr`|3.5.0| | | | | | | | |
|`cusparseDdense2csr`| |11.1|12.0|`hipsparseDdense2csr`|3.5.0| | | |`rocsparse_ddense2csr`|3.2.0| | | |
|`cusparseDdense2hyb`| |10.2|11.0| | | | | | | | | | |
|`cusparseDestroyCsru2csrInfo`| |12.2| |`hipsparseDestroyCsru2csrInfo`|4.2.0| | | | | | | | |
|`cusparseDgebsr2csr`| | | |`hipsparseDgebsr2csr`|4.1.0| | | |`rocsparse_dgebsr2csr`|3.10.0| | | |
Expand All @@ -693,9 +693,9 @@
|`cusparseDpruneDense2csr`|9.0|12.2| |`hipsparseDpruneDense2csr`|3.9.0| | | |`rocsparse_dprune_dense2csr`|3.9.0| | | |
|`cusparseDpruneDense2csrByPercentage`|9.0|12.2| |`hipsparseDpruneDense2csrByPercentage`|3.9.0| | | |`rocsparse_dprune_dense2csr_by_percentage`|3.9.0| | | |
|`cusparseDpruneDense2csrByPercentage_bufferSizeExt`|9.0|12.2| |`hipsparseDpruneDense2csrByPercentage_bufferSizeExt`|3.9.0| | | |`rocsparse_dprune_dense2csr_by_percentage_buffer_size`|3.9.0| | | |
|`cusparseDpruneDense2csrNnz`|9.0|12.2| |`hipsparseDpruneDense2csrNnz`|3.9.0| | | | | | | | |
|`cusparseDpruneDense2csrNnz`|9.0|12.2| |`hipsparseDpruneDense2csrNnz`|3.9.0| | | |`rocsparse_dprune_dense2csr_nnz`|3.9.0| | | |
|`cusparseDpruneDense2csrNnzByPercentage`|9.0|12.2| |`hipsparseDpruneDense2csrNnzByPercentage`|3.9.0| | | |`rocsparse_dprune_dense2csr_nnz_by_percentage`|3.9.0| | | |
|`cusparseDpruneDense2csr_bufferSizeExt`|9.0|12.2| |`hipsparseDpruneDense2csr_bufferSizeExt`|3.9.0| | | | | | | | |
|`cusparseDpruneDense2csr_bufferSizeExt`|9.0|12.2| |`hipsparseDpruneDense2csr_bufferSizeExt`|3.9.0| | | |`rocsparse_dprune_dense2csr_buffer_size`|3.9.0| | | |
|`cusparseHpruneCsr2csr`|9.0|12.2| | | | | | | | | | | |
|`cusparseHpruneCsr2csrByPercentage`|9.0|12.2| | | | | | | | | | | |
|`cusparseHpruneCsr2csrByPercentage_bufferSizeExt`|9.0|12.2| | | | | | | | | | | |
Expand Down Expand Up @@ -723,7 +723,7 @@
|`cusparseScsru2csr`| |12.2| |`hipsparseScsru2csr`|4.2.0| | | | | | | | |
|`cusparseScsru2csr_bufferSizeExt`| |12.2| |`hipsparseScsru2csr_bufferSizeExt`|4.2.0| | | | | | | | |
|`cusparseSdense2csc`| |11.1|12.0|`hipsparseSdense2csc`|3.5.0| | | |`rocsparse_sdense2csc`|3.2.0| | | |
|`cusparseSdense2csr`| |11.1|12.0|`hipsparseSdense2csr`|3.5.0| | | | | | | | |
|`cusparseSdense2csr`| |11.1|12.0|`hipsparseSdense2csr`|3.5.0| | | |`rocsparse_sdense2csr`|3.2.0| | | |
|`cusparseSdense2hyb`| |10.2|11.0| | | | | | | | | | |
|`cusparseSgebsr2csr`| | | |`hipsparseSgebsr2csr`|4.1.0| | | |`rocsparse_sgebsr2csr`|3.10.0| | | |
|`cusparseSgebsr2gebsc`| | | |`hipsparseSgebsr2gebsc`|4.1.0| | | |`rocsparse_sgebsr2gebsc`|4.1.0| | | |
Expand All @@ -746,9 +746,9 @@
|`cusparseSpruneDense2csr`|9.0|12.2| |`hipsparseSpruneDense2csr`|3.9.0| | | |`rocsparse_sprune_dense2csr`|3.9.0| | | |
|`cusparseSpruneDense2csrByPercentage`|9.0|12.2| |`hipsparseSpruneDense2csrByPercentage`|3.9.0| | | |`rocsparse_sprune_dense2csr_by_percentage`|3.9.0| | | |
|`cusparseSpruneDense2csrByPercentage_bufferSizeExt`|9.0|12.2| |`hipsparseSpruneDense2csrByPercentage_bufferSizeExt`|3.9.0| | | |`rocsparse_sprune_dense2csr_by_percentage_buffer_size`|3.9.0| | | |
|`cusparseSpruneDense2csrNnz`|9.0|12.2| |`hipsparseSpruneDense2csrNnz`|3.9.0| | | | | | | | |
|`cusparseSpruneDense2csrNnz`|9.0|12.2| |`hipsparseSpruneDense2csrNnz`|3.9.0| | | |`rocsparse_sprune_dense2csr_nnz`|3.9.0| | | |
|`cusparseSpruneDense2csrNnzByPercentage`|9.0|12.2| |`hipsparseSpruneDense2csrNnzByPercentage`|3.9.0| | | |`rocsparse_sprune_dense2csr_nnz_by_percentage`|3.9.0| | | |
|`cusparseSpruneDense2csr_bufferSizeExt`|9.0|12.2| |`hipsparseSpruneDense2csr_bufferSizeExt`|3.9.0| | | | | | | | |
|`cusparseSpruneDense2csr_bufferSizeExt`|9.0|12.2| |`hipsparseSpruneDense2csr_bufferSizeExt`|3.9.0| | | |`rocsparse_sprune_dense2csr_buffer_size`|3.9.0| | | |
|`cusparseXcoo2csr`| | | |`hipsparseXcoo2csr`|1.9.2| | | |`rocsparse_coo2csr`|1.9.0| | | |
|`cusparseXcoosortByColumn`| | | |`hipsparseXcoosortByColumn`|1.9.2| | | |`rocsparse_coosort_by_column`|1.9.0| | | |
|`cusparseXcoosortByRow`| | | |`hipsparseXcoosortByRow`|1.9.2| | | |`rocsparse_coosort_by_row`|1.9.0| | | |
Expand Down Expand Up @@ -777,7 +777,7 @@
|`cusparseZcsru2csr`| |12.2| |`hipsparseZcsru2csr`|4.2.0| | | | | | | | |
|`cusparseZcsru2csr_bufferSizeExt`| |12.2| |`hipsparseZcsru2csr_bufferSizeExt`|4.2.0| | | | | | | | |
|`cusparseZdense2csc`| |11.1|12.0|`hipsparseZdense2csc`|3.5.0| | | |`rocsparse_zdense2csc`|3.2.0| | | |
|`cusparseZdense2csr`| |11.1|12.0|`hipsparseZdense2csr`|3.5.0| | | | | | | | |
|`cusparseZdense2csr`| |11.1|12.0|`hipsparseZdense2csr`|3.5.0| | | |`rocsparse_zdense2csr`|3.2.0| | | |
|`cusparseZdense2hyb`| |10.2|11.0| | | | | | | | | | |
|`cusparseZgebsr2csr`| | | |`hipsparseZgebsr2csr`|4.1.0| | | |`rocsparse_zgebsr2csr`|3.10.0| | | |
|`cusparseZgebsr2gebsc`| | | |`hipsparseZgebsr2gebsc`|4.1.0| | | |`rocsparse_zgebsr2gebsc`|4.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 @@ -635,7 +635,7 @@
|`cusparseCcsru2csr`| |12.2| | | | | | |
|`cusparseCcsru2csr_bufferSizeExt`| |12.2| | | | | | |
|`cusparseCdense2csc`| |11.1|12.0|`rocsparse_cdense2csc`|3.2.0| | | |
|`cusparseCdense2csr`| |11.1|12.0| | | | | |
|`cusparseCdense2csr`| |11.1|12.0|`rocsparse_cdense2csr`|3.2.0| | | |
|`cusparseCdense2hyb`| |10.2|11.0| | | | | |
|`cusparseCgebsr2csr`| | | |`rocsparse_cgebsr2csr`|3.10.0| | | |
|`cusparseCgebsr2gebsc`| | | |`rocsparse_cgebsr2gebsc`|4.1.0| | | |
Expand Down Expand Up @@ -669,7 +669,7 @@
|`cusparseDcsru2csr`| |12.2| | | | | | |
|`cusparseDcsru2csr_bufferSizeExt`| |12.2| | | | | | |
|`cusparseDdense2csc`| |11.1|12.0|`rocsparse_ddense2csc`|3.2.0| | | |
|`cusparseDdense2csr`| |11.1|12.0| | | | | |
|`cusparseDdense2csr`| |11.1|12.0|`rocsparse_ddense2csr`|3.2.0| | | |
|`cusparseDdense2hyb`| |10.2|11.0| | | | | |
|`cusparseDestroyCsru2csrInfo`| |12.2| | | | | | |
|`cusparseDgebsr2csr`| | | |`rocsparse_dgebsr2csr`|3.10.0| | | |
Expand All @@ -693,9 +693,9 @@
|`cusparseDpruneDense2csr`|9.0|12.2| |`rocsparse_dprune_dense2csr`|3.9.0| | | |
|`cusparseDpruneDense2csrByPercentage`|9.0|12.2| |`rocsparse_dprune_dense2csr_by_percentage`|3.9.0| | | |
|`cusparseDpruneDense2csrByPercentage_bufferSizeExt`|9.0|12.2| |`rocsparse_dprune_dense2csr_by_percentage_buffer_size`|3.9.0| | | |
|`cusparseDpruneDense2csrNnz`|9.0|12.2| | | | | | |
|`cusparseDpruneDense2csrNnz`|9.0|12.2| |`rocsparse_dprune_dense2csr_nnz`|3.9.0| | | |
|`cusparseDpruneDense2csrNnzByPercentage`|9.0|12.2| |`rocsparse_dprune_dense2csr_nnz_by_percentage`|3.9.0| | | |
|`cusparseDpruneDense2csr_bufferSizeExt`|9.0|12.2| | | | | | |
|`cusparseDpruneDense2csr_bufferSizeExt`|9.0|12.2| |`rocsparse_dprune_dense2csr_buffer_size`|3.9.0| | | |
|`cusparseHpruneCsr2csr`|9.0|12.2| | | | | | |
|`cusparseHpruneCsr2csrByPercentage`|9.0|12.2| | | | | | |
|`cusparseHpruneCsr2csrByPercentage_bufferSizeExt`|9.0|12.2| | | | | | |
Expand Down Expand Up @@ -723,7 +723,7 @@
|`cusparseScsru2csr`| |12.2| | | | | | |
|`cusparseScsru2csr_bufferSizeExt`| |12.2| | | | | | |
|`cusparseSdense2csc`| |11.1|12.0|`rocsparse_sdense2csc`|3.2.0| | | |
|`cusparseSdense2csr`| |11.1|12.0| | | | | |
|`cusparseSdense2csr`| |11.1|12.0|`rocsparse_sdense2csr`|3.2.0| | | |
|`cusparseSdense2hyb`| |10.2|11.0| | | | | |
|`cusparseSgebsr2csr`| | | |`rocsparse_sgebsr2csr`|3.10.0| | | |
|`cusparseSgebsr2gebsc`| | | |`rocsparse_sgebsr2gebsc`|4.1.0| | | |
Expand All @@ -746,9 +746,9 @@
|`cusparseSpruneDense2csr`|9.0|12.2| |`rocsparse_sprune_dense2csr`|3.9.0| | | |
|`cusparseSpruneDense2csrByPercentage`|9.0|12.2| |`rocsparse_sprune_dense2csr_by_percentage`|3.9.0| | | |
|`cusparseSpruneDense2csrByPercentage_bufferSizeExt`|9.0|12.2| |`rocsparse_sprune_dense2csr_by_percentage_buffer_size`|3.9.0| | | |
|`cusparseSpruneDense2csrNnz`|9.0|12.2| | | | | | |
|`cusparseSpruneDense2csrNnz`|9.0|12.2| |`rocsparse_sprune_dense2csr_nnz`|3.9.0| | | |
|`cusparseSpruneDense2csrNnzByPercentage`|9.0|12.2| |`rocsparse_sprune_dense2csr_nnz_by_percentage`|3.9.0| | | |
|`cusparseSpruneDense2csr_bufferSizeExt`|9.0|12.2| | | | | | |
|`cusparseSpruneDense2csr_bufferSizeExt`|9.0|12.2| |`rocsparse_sprune_dense2csr_buffer_size`|3.9.0| | | |
|`cusparseXcoo2csr`| | | |`rocsparse_coo2csr`|1.9.0| | | |
|`cusparseXcoosortByColumn`| | | |`rocsparse_coosort_by_column`|1.9.0| | | |
|`cusparseXcoosortByRow`| | | |`rocsparse_coosort_by_row`|1.9.0| | | |
Expand Down Expand Up @@ -777,7 +777,7 @@
|`cusparseZcsru2csr`| |12.2| | | | | | |
|`cusparseZcsru2csr_bufferSizeExt`| |12.2| | | | | | |
|`cusparseZdense2csc`| |11.1|12.0|`rocsparse_zdense2csc`|3.2.0| | | |
|`cusparseZdense2csr`| |11.1|12.0| | | | | |
|`cusparseZdense2csr`| |11.1|12.0|`rocsparse_zdense2csr`|3.2.0| | | |
|`cusparseZdense2hyb`| |10.2|11.0| | | | | |
|`cusparseZgebsr2csr`| | | |`rocsparse_zgebsr2csr`|3.10.0| | | |
|`cusparseZgebsr2gebsc`| | | |`rocsparse_zgebsr2gebsc`|4.1.0| | | |
Expand Down
Loading

0 comments on commit 0d58bf3

Please sign in to comment.