Skip to content

Commit

Permalink
[HIPIFY][#674][rocSPARSE][feature] rocSPARSE support - Step 28 - func…
Browse files Browse the repository at this point in the history
…tions

+ Updated synthetic tests and the regenerated hipify-perl and SPARSE docs
  • Loading branch information
emankov committed Aug 18, 2023
1 parent 1d02b41 commit 885e296
Show file tree
Hide file tree
Showing 6 changed files with 122 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 @@ -1677,10 +1677,12 @@ sub rocSubstitutions {
subst("cusparseCcsc2dense", "rocsparse_ccsc2dense", "library");
subst("cusparseCcsr2bsr", "rocsparse_ccsr2bsr", "library");
subst("cusparseCcsr2csr_compress", "rocsparse_ccsr2csr_compress", "library");
subst("cusparseCcsr2dense", "rocsparse_ccsr2dense", "library");
subst("cusparseCcsr2gebsr", "rocsparse_ccsr2gebsr", "library");
subst("cusparseCcsr2gebsr_bufferSize", "rocsparse_ccsr2gebsr_buffer_size", "library");
subst("cusparseCcsr2hyb", "rocsparse_ccsr2hyb", "library");
subst("cusparseCcsrcolor", "rocsparse_ccsrcolor", "library");
subst("cusparseCdense2csc", "rocsparse_cdense2csc", "library");
subst("cusparseCgebsr2csr", "rocsparse_cgebsr2csr", "library");
subst("cusparseCgebsr2gebsc", "rocsparse_cgebsr2gebsc", "library");
subst("cusparseCgebsr2gebsc_bufferSize", "rocsparse_cgebsr2gebsc_buffer_size", "library");
Expand Down Expand Up @@ -1713,10 +1715,12 @@ sub rocSubstitutions {
subst("cusparseDcsc2dense", "rocsparse_dcsc2dense", "library");
subst("cusparseDcsr2bsr", "rocsparse_dcsr2bsr", "library");
subst("cusparseDcsr2csr_compress", "rocsparse_dcsr2csr_compress", "library");
subst("cusparseDcsr2dense", "rocsparse_dcsr2dense", "library");
subst("cusparseDcsr2gebsr", "rocsparse_dcsr2gebsr", "library");
subst("cusparseDcsr2gebsr_bufferSize", "rocsparse_dcsr2gebsr_buffer_size", "library");
subst("cusparseDcsr2hyb", "rocsparse_dcsr2hyb", "library");
subst("cusparseDcsrcolor", "rocsparse_dcsrcolor", "library");
subst("cusparseDdense2csc", "rocsparse_ddense2csc", "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 @@ -1762,10 +1766,12 @@ sub rocSubstitutions {
subst("cusparseScsc2dense", "rocsparse_scsc2dense", "library");
subst("cusparseScsr2bsr", "rocsparse_scsr2bsr", "library");
subst("cusparseScsr2csr_compress", "rocsparse_scsr2csr_compress", "library");
subst("cusparseScsr2dense", "rocsparse_scsr2dense", "library");
subst("cusparseScsr2gebsr", "rocsparse_scsr2gebsr", "library");
subst("cusparseScsr2gebsr_bufferSize", "rocsparse_scsr2gebsr_buffer_size", "library");
subst("cusparseScsr2hyb", "rocsparse_scsr2hyb", "library");
subst("cusparseScsrcolor", "rocsparse_scsrcolor", "library");
subst("cusparseSdense2csc", "rocsparse_sdense2csc", "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 @@ -1814,10 +1820,12 @@ sub rocSubstitutions {
subst("cusparseZcsc2dense", "rocsparse_zcsc2dense", "library");
subst("cusparseZcsr2bsr", "rocsparse_zcsr2bsr", "library");
subst("cusparseZcsr2csr_compress", "rocsparse_zcsr2csr_compress", "library");
subst("cusparseZcsr2dense", "rocsparse_zcsr2dense", "library");
subst("cusparseZcsr2gebsr", "rocsparse_zcsr2gebsr", "library");
subst("cusparseZcsr2gebsr_bufferSize", "rocsparse_zcsr2gebsr_buffer_size", "library");
subst("cusparseZcsr2hyb", "rocsparse_zcsr2hyb", "library");
subst("cusparseZcsrcolor", "rocsparse_zcsrcolor", "library");
subst("cusparseZdense2csc", "rocsparse_zdense2csc", "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 @@ -627,14 +627,14 @@
|`cusparseCcsr2csc`| |10.2|11.0|`hipsparseCcsr2csc`|3.1.0| | | | | | | | |
|`cusparseCcsr2csr_compress`|8.0|12.2| |`hipsparseCcsr2csr_compress`|3.5.0| | | |`rocsparse_ccsr2csr_compress`|3.5.0| | | |
|`cusparseCcsr2csru`| |12.2| |`hipsparseCcsr2csru`|4.2.0| | | | | | | | |
|`cusparseCcsr2dense`| |11.1|12.0|`hipsparseCcsr2dense`|3.5.0| | | | | | | | |
|`cusparseCcsr2dense`| |11.1|12.0|`hipsparseCcsr2dense`|3.5.0| | | |`rocsparse_ccsr2dense`|3.5.0| | | |
|`cusparseCcsr2gebsr`| | | |`hipsparseCcsr2gebsr`|4.1.0| | | |`rocsparse_ccsr2gebsr`|4.1.0| | | |
|`cusparseCcsr2gebsr_bufferSize`| | | |`hipsparseCcsr2gebsr_bufferSize`|4.1.0| | | |`rocsparse_ccsr2gebsr_buffer_size`|4.1.0| | | |
|`cusparseCcsr2gebsr_bufferSizeExt`| | | | | | | | | | | | | |
|`cusparseCcsr2hyb`| |10.2|11.0|`hipsparseCcsr2hyb`|3.1.0| | | |`rocsparse_ccsr2hyb`|2.10.0| | | |
|`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| | | | | | | | |
|`cusparseCdense2csc`| |11.1|12.0|`hipsparseCdense2csc`|3.5.0| | | |`rocsparse_cdense2csc`|3.2.0| | | |
|`cusparseCdense2csr`| |11.1|12.0|`hipsparseCdense2csr`|3.5.0| | | | | | | | |
|`cusparseCdense2hyb`| |10.2|11.0| | | | | | | | | | |
|`cusparseCgebsr2csr`| | | |`hipsparseCgebsr2csr`|4.1.0| | | |`rocsparse_cgebsr2csr`|3.10.0| | | |
Expand All @@ -661,14 +661,14 @@
|`cusparseDcsr2csc`| |10.2|11.0|`hipsparseDcsr2csc`|1.9.2| | | | | | | | |
|`cusparseDcsr2csr_compress`|8.0|12.2| |`hipsparseDcsr2csr_compress`|3.5.0| | | |`rocsparse_dcsr2csr_compress`|3.5.0| | | |
|`cusparseDcsr2csru`| |12.2| |`hipsparseDcsr2csru`|4.2.0| | | | | | | | |
|`cusparseDcsr2dense`| |11.1|12.0|`hipsparseDcsr2dense`|3.5.0| | | | | | | | |
|`cusparseDcsr2dense`| |11.1|12.0|`hipsparseDcsr2dense`|3.5.0| | | |`rocsparse_dcsr2dense`|3.5.0| | | |
|`cusparseDcsr2gebsr`| | | |`hipsparseDcsr2gebsr`|4.1.0| | | |`rocsparse_dcsr2gebsr`|4.1.0| | | |
|`cusparseDcsr2gebsr_bufferSize`| | | |`hipsparseDcsr2gebsr_bufferSize`|4.1.0| | | |`rocsparse_dcsr2gebsr_buffer_size`|4.1.0| | | |
|`cusparseDcsr2gebsr_bufferSizeExt`| | | | | | | | | | | | | |
|`cusparseDcsr2hyb`| |10.2|11.0|`hipsparseDcsr2hyb`|1.9.2| | | |`rocsparse_dcsr2hyb`|1.9.0| | | |
|`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| | | | | | | | |
|`cusparseDdense2csc`| |11.1|12.0|`hipsparseDdense2csc`|3.5.0| | | |`rocsparse_ddense2csc`|3.2.0| | | |
|`cusparseDdense2csr`| |11.1|12.0|`hipsparseDdense2csr`|3.5.0| | | | | | | | |
|`cusparseDdense2hyb`| |10.2|11.0| | | | | | | | | | |
|`cusparseDestroyCsru2csrInfo`| |12.2| |`hipsparseDestroyCsru2csrInfo`|4.2.0| | | | | | | | |
Expand Down Expand Up @@ -715,14 +715,14 @@
|`cusparseScsr2csc`| |10.2|11.0|`hipsparseScsr2csc`|1.9.2| | | | | | | | |
|`cusparseScsr2csr_compress`|8.0|12.2| |`hipsparseScsr2csr_compress`|3.5.0| | | |`rocsparse_scsr2csr_compress`|3.5.0| | | |
|`cusparseScsr2csru`| |12.2| |`hipsparseScsr2csru`|4.2.0| | | | | | | | |
|`cusparseScsr2dense`| |11.1|12.0|`hipsparseScsr2dense`|3.5.0| | | | | | | | |
|`cusparseScsr2dense`| |11.1|12.0|`hipsparseScsr2dense`|3.5.0| | | |`rocsparse_scsr2dense`|3.5.0| | | |
|`cusparseScsr2gebsr`| | | |`hipsparseScsr2gebsr`|4.1.0| | | |`rocsparse_scsr2gebsr`|4.1.0| | | |
|`cusparseScsr2gebsr_bufferSize`| | | |`hipsparseScsr2gebsr_bufferSize`|4.1.0| | | |`rocsparse_scsr2gebsr_buffer_size`|4.1.0| | | |
|`cusparseScsr2gebsr_bufferSizeExt`| | | | | | | | | | | | | |
|`cusparseScsr2hyb`| |10.2|11.0|`hipsparseScsr2hyb`|1.9.2| | | |`rocsparse_scsr2hyb`|1.9.0| | | |
|`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| | | | | | | | |
|`cusparseSdense2csc`| |11.1|12.0|`hipsparseSdense2csc`|3.5.0| | | |`rocsparse_sdense2csc`|3.2.0| | | |
|`cusparseSdense2csr`| |11.1|12.0|`hipsparseSdense2csr`|3.5.0| | | | | | | | |
|`cusparseSdense2hyb`| |10.2|11.0| | | | | | | | | | |
|`cusparseSgebsr2csr`| | | |`hipsparseSgebsr2csr`|4.1.0| | | |`rocsparse_sgebsr2csr`|3.10.0| | | |
Expand Down Expand Up @@ -769,14 +769,14 @@
|`cusparseZcsr2csc`| |10.2|11.0|`hipsparseZcsr2csc`|3.1.0| | | | | | | | |
|`cusparseZcsr2csr_compress`|8.0|12.2| |`hipsparseZcsr2csr_compress`|3.5.0| | | |`rocsparse_zcsr2csr_compress`|3.5.0| | | |
|`cusparseZcsr2csru`| |12.2| |`hipsparseZcsr2csru`|4.2.0| | | | | | | | |
|`cusparseZcsr2dense`| |11.1|12.0|`hipsparseZcsr2dense`|3.5.0| | | | | | | | |
|`cusparseZcsr2dense`| |11.1|12.0|`hipsparseZcsr2dense`|3.5.0| | | |`rocsparse_zcsr2dense`|3.5.0| | | |
|`cusparseZcsr2gebsr`| | | |`hipsparseZcsr2gebsr`|4.1.0| | | |`rocsparse_zcsr2gebsr`|4.1.0| | | |
|`cusparseZcsr2gebsr_bufferSize`| | | |`hipsparseZcsr2gebsr_bufferSize`|4.1.0| | | |`rocsparse_zcsr2gebsr_buffer_size`|4.1.0| | | |
|`cusparseZcsr2gebsr_bufferSizeExt`| | | | | | | | | | | | | |
|`cusparseZcsr2hyb`| |10.2|11.0|`hipsparseZcsr2hyb`|3.1.0| | | |`rocsparse_zcsr2hyb`|2.10.0| | | |
|`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| | | | | | | | |
|`cusparseZdense2csc`| |11.1|12.0|`hipsparseZdense2csc`|3.5.0| | | |`rocsparse_zdense2csc`|3.2.0| | | |
|`cusparseZdense2csr`| |11.1|12.0|`hipsparseZdense2csr`|3.5.0| | | | | | | | |
|`cusparseZdense2hyb`| |10.2|11.0| | | | | | | | | | |
|`cusparseZgebsr2csr`| | | |`hipsparseZgebsr2csr`|4.1.0| | | |`rocsparse_zgebsr2csr`|3.10.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 @@ -627,14 +627,14 @@
|`cusparseCcsr2csc`| |10.2|11.0| | | | | |
|`cusparseCcsr2csr_compress`|8.0|12.2| |`rocsparse_ccsr2csr_compress`|3.5.0| | | |
|`cusparseCcsr2csru`| |12.2| | | | | | |
|`cusparseCcsr2dense`| |11.1|12.0| | | | | |
|`cusparseCcsr2dense`| |11.1|12.0|`rocsparse_ccsr2dense`|3.5.0| | | |
|`cusparseCcsr2gebsr`| | | |`rocsparse_ccsr2gebsr`|4.1.0| | | |
|`cusparseCcsr2gebsr_bufferSize`| | | |`rocsparse_ccsr2gebsr_buffer_size`|4.1.0| | | |
|`cusparseCcsr2gebsr_bufferSizeExt`| | | | | | | | |
|`cusparseCcsr2hyb`| |10.2|11.0|`rocsparse_ccsr2hyb`|2.10.0| | | |
|`cusparseCcsru2csr`| |12.2| | | | | | |
|`cusparseCcsru2csr_bufferSizeExt`| |12.2| | | | | | |
|`cusparseCdense2csc`| |11.1|12.0| | | | | |
|`cusparseCdense2csc`| |11.1|12.0|`rocsparse_cdense2csc`|3.2.0| | | |
|`cusparseCdense2csr`| |11.1|12.0| | | | | |
|`cusparseCdense2hyb`| |10.2|11.0| | | | | |
|`cusparseCgebsr2csr`| | | |`rocsparse_cgebsr2csr`|3.10.0| | | |
Expand All @@ -661,14 +661,14 @@
|`cusparseDcsr2csc`| |10.2|11.0| | | | | |
|`cusparseDcsr2csr_compress`|8.0|12.2| |`rocsparse_dcsr2csr_compress`|3.5.0| | | |
|`cusparseDcsr2csru`| |12.2| | | | | | |
|`cusparseDcsr2dense`| |11.1|12.0| | | | | |
|`cusparseDcsr2dense`| |11.1|12.0|`rocsparse_dcsr2dense`|3.5.0| | | |
|`cusparseDcsr2gebsr`| | | |`rocsparse_dcsr2gebsr`|4.1.0| | | |
|`cusparseDcsr2gebsr_bufferSize`| | | |`rocsparse_dcsr2gebsr_buffer_size`|4.1.0| | | |
|`cusparseDcsr2gebsr_bufferSizeExt`| | | | | | | | |
|`cusparseDcsr2hyb`| |10.2|11.0|`rocsparse_dcsr2hyb`|1.9.0| | | |
|`cusparseDcsru2csr`| |12.2| | | | | | |
|`cusparseDcsru2csr_bufferSizeExt`| |12.2| | | | | | |
|`cusparseDdense2csc`| |11.1|12.0| | | | | |
|`cusparseDdense2csc`| |11.1|12.0|`rocsparse_ddense2csc`|3.2.0| | | |
|`cusparseDdense2csr`| |11.1|12.0| | | | | |
|`cusparseDdense2hyb`| |10.2|11.0| | | | | |
|`cusparseDestroyCsru2csrInfo`| |12.2| | | | | | |
Expand Down Expand Up @@ -715,14 +715,14 @@
|`cusparseScsr2csc`| |10.2|11.0| | | | | |
|`cusparseScsr2csr_compress`|8.0|12.2| |`rocsparse_scsr2csr_compress`|3.5.0| | | |
|`cusparseScsr2csru`| |12.2| | | | | | |
|`cusparseScsr2dense`| |11.1|12.0| | | | | |
|`cusparseScsr2dense`| |11.1|12.0|`rocsparse_scsr2dense`|3.5.0| | | |
|`cusparseScsr2gebsr`| | | |`rocsparse_scsr2gebsr`|4.1.0| | | |
|`cusparseScsr2gebsr_bufferSize`| | | |`rocsparse_scsr2gebsr_buffer_size`|4.1.0| | | |
|`cusparseScsr2gebsr_bufferSizeExt`| | | | | | | | |
|`cusparseScsr2hyb`| |10.2|11.0|`rocsparse_scsr2hyb`|1.9.0| | | |
|`cusparseScsru2csr`| |12.2| | | | | | |
|`cusparseScsru2csr_bufferSizeExt`| |12.2| | | | | | |
|`cusparseSdense2csc`| |11.1|12.0| | | | | |
|`cusparseSdense2csc`| |11.1|12.0|`rocsparse_sdense2csc`|3.2.0| | | |
|`cusparseSdense2csr`| |11.1|12.0| | | | | |
|`cusparseSdense2hyb`| |10.2|11.0| | | | | |
|`cusparseSgebsr2csr`| | | |`rocsparse_sgebsr2csr`|3.10.0| | | |
Expand Down Expand Up @@ -769,14 +769,14 @@
|`cusparseZcsr2csc`| |10.2|11.0| | | | | |
|`cusparseZcsr2csr_compress`|8.0|12.2| |`rocsparse_zcsr2csr_compress`|3.5.0| | | |
|`cusparseZcsr2csru`| |12.2| | | | | | |
|`cusparseZcsr2dense`| |11.1|12.0| | | | | |
|`cusparseZcsr2dense`| |11.1|12.0|`rocsparse_zcsr2dense`|3.5.0| | | |
|`cusparseZcsr2gebsr`| | | |`rocsparse_zcsr2gebsr`|4.1.0| | | |
|`cusparseZcsr2gebsr_bufferSize`| | | |`rocsparse_zcsr2gebsr_buffer_size`|4.1.0| | | |
|`cusparseZcsr2gebsr_bufferSizeExt`| | | | | | | | |
|`cusparseZcsr2hyb`| |10.2|11.0|`rocsparse_zcsr2hyb`|2.10.0| | | |
|`cusparseZcsru2csr`| |12.2| | | | | | |
|`cusparseZcsru2csr_bufferSizeExt`| |12.2| | | | | | |
|`cusparseZdense2csc`| |11.1|12.0| | | | | |
|`cusparseZdense2csc`| |11.1|12.0|`rocsparse_zdense2csc`|3.2.0| | | |
|`cusparseZdense2csr`| |11.1|12.0| | | | | |
|`cusparseZdense2hyb`| |10.2|11.0| | | | | |
|`cusparseZgebsr2csr`| | | |`rocsparse_zgebsr2csr`|3.10.0| | | |
Expand Down
Loading

0 comments on commit 885e296

Please sign in to comment.