From db6d9426e660a1b3b980d6298f3cd5a703e4f211 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Wed, 9 Aug 2023 15:22:06 +0200 Subject: [PATCH] [HIPIFY][SPARSE] Sync with CUDA 12.2.1 - Part 2 - cuSPARSE API - functions + Marked deprecated data types + Updated the regenerated hipify-perl and docs accordingly --- bin/hipify-perl | 18 ++++++ docs/tables/CUSPARSE_API_supported_by_HIP.md | 36 ++++++------ .../CUSPARSE_API_supported_by_HIP_and_ROC.md | 36 ++++++------ docs/tables/CUSPARSE_API_supported_by_ROC.md | 36 ++++++------ src/CUDA2HIP_SPARSE_API_functions.cpp | 56 ++++++++++++------- src/CUDA2HIP_SPARSE_API_types.cpp | 44 +++++++-------- 6 files changed, 130 insertions(+), 96 deletions(-) diff --git a/bin/hipify-perl b/bin/hipify-perl index ceacbb6b..fb869935 100755 --- a/bin/hipify-perl +++ b/bin/hipify-perl @@ -210,10 +210,19 @@ my %deprecated_funcs = ( "cusparseDgthr" => "11.0", "cusparseDgemmi" => "11.0", "cusparseDestroySolveAnalysisInfo" => "10.2", + "cusparseDestroyPruneInfo" => "12.2", "cusparseDestroyHybMat" => "10.2", + "cusparseDestroyCsru2csrInfo" => "12.2", "cusparseDestroyCsrsv2Info" => "11.3", "cusparseDestroyCsrsm2Info" => "11.3", + "cusparseDestroyCsrilu02Info" => "12.2", + "cusparseDestroyCsric02Info" => "12.2", "cusparseDestroyCsrgemm2Info" => "11.0", + "cusparseDestroyColorInfo" => "12.2", + "cusparseDestroyBsrsv2Info" => "12.2", + "cusparseDestroyBsrsm2Info" => "12.2", + "cusparseDestroyBsrilu02Info" => "12.2", + "cusparseDestroyBsric02Info" => "12.2", "cusparseDdoti" => "10.2", "cusparseDdense2hyb" => "10.2", "cusparseDdense2csr" => "11.1", @@ -253,11 +262,20 @@ my %deprecated_funcs = ( "cusparseCsr2cscEx" => "10.2", "cusparseCsctr" => "11.0", "cusparseCreateSolveAnalysisInfo" => "10.2", + "cusparseCreatePruneInfo" => "12.2", "cusparseCreateHybMat" => "10.2", + "cusparseCreateCsru2csrInfo" => "12.2", "cusparseCreateCsrsv2Info" => "11.3", "cusparseCreateCsrsm2Info" => "11.3", + "cusparseCreateCsrilu02Info" => "12.2", + "cusparseCreateCsric02Info" => "12.2", "cusparseCreateCsrgemm2Info" => "11.0", "cusparseCreateCooAoS" => "11.2", + "cusparseCreateColorInfo" => "12.2", + "cusparseCreateBsrsv2Info" => "12.2", + "cusparseCreateBsrsm2Info" => "12.2", + "cusparseCreateBsrilu02Info" => "12.2", + "cusparseCreateBsric02Info" => "12.2", "cusparseCooAoSGet" => "11.2", "cusparseConstrainedGeMM_bufferSize" => "11.2", "cusparseConstrainedGeMM" => "11.2", diff --git a/docs/tables/CUSPARSE_API_supported_by_HIP.md b/docs/tables/CUSPARSE_API_supported_by_HIP.md index 69cf7f2f..e10086ea 100644 --- a/docs/tables/CUSPARSE_API_supported_by_HIP.md +++ b/docs/tables/CUSPARSE_API_supported_by_HIP.md @@ -219,33 +219,33 @@ |**CUDA**|**A**|**D**|**R**|**HIP**|**A**|**D**|**R**|**E**| |:--|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:| |`cusparseCopyMatDescr`|8.0| |12.0|`hipsparseCopyMatDescr`|1.9.2| | | | -|`cusparseCreateBsric02Info`| | | |`hipsparseCreateBsric02Info`|3.8.0| | | | -|`cusparseCreateBsrilu02Info`| | | |`hipsparseCreateBsrilu02Info`|3.9.0| | | | -|`cusparseCreateBsrsm2Info`| | | |`hipsparseCreateBsrsm2Info`|4.5.0| | | | -|`cusparseCreateBsrsv2Info`| | | |`hipsparseCreateBsrsv2Info`|3.6.0| | | | -|`cusparseCreateColorInfo`| | | |`hipsparseCreateColorInfo`|4.5.0| | | | +|`cusparseCreateBsric02Info`| |12.2| |`hipsparseCreateBsric02Info`|3.8.0| | | | +|`cusparseCreateBsrilu02Info`| |12.2| |`hipsparseCreateBsrilu02Info`|3.9.0| | | | +|`cusparseCreateBsrsm2Info`| |12.2| |`hipsparseCreateBsrsm2Info`|4.5.0| | | | +|`cusparseCreateBsrsv2Info`| |12.2| |`hipsparseCreateBsrsv2Info`|3.6.0| | | | +|`cusparseCreateColorInfo`| |12.2| |`hipsparseCreateColorInfo`|4.5.0| | | | |`cusparseCreateCsrgemm2Info`| |11.0|12.0|`hipsparseCreateCsrgemm2Info`|2.8.0| | | | -|`cusparseCreateCsric02Info`| | | |`hipsparseCreateCsric02Info`|3.1.0| | | | -|`cusparseCreateCsrilu02Info`| | | |`hipsparseCreateCsrilu02Info`|1.9.2| | | | +|`cusparseCreateCsric02Info`| |12.2| |`hipsparseCreateCsric02Info`|3.1.0| | | | +|`cusparseCreateCsrilu02Info`| |12.2| |`hipsparseCreateCsrilu02Info`|1.9.2| | | | |`cusparseCreateCsrsm2Info`|10.0|11.3|12.0|`hipsparseCreateCsrsm2Info`|3.1.0| | | | |`cusparseCreateCsrsv2Info`| |11.3|12.0|`hipsparseCreateCsrsv2Info`|1.9.2| | | | |`cusparseCreateHybMat`| |10.2|11.0|`hipsparseCreateHybMat`|1.9.2| | | | |`cusparseCreateMatDescr`| | | |`hipsparseCreateMatDescr`|1.9.2| | | | -|`cusparseCreatePruneInfo`|9.0| | |`hipsparseCreatePruneInfo`|3.9.0| | | | +|`cusparseCreatePruneInfo`|9.0|12.2| |`hipsparseCreatePruneInfo`|3.9.0| | | | |`cusparseCreateSolveAnalysisInfo`| |10.2|11.0| | | | | | -|`cusparseDestroyBsric02Info`| | | |`hipsparseDestroyBsric02Info`|3.8.0| | | | -|`cusparseDestroyBsrilu02Info`| | | |`hipsparseDestroyBsrilu02Info`|3.9.0| | | | -|`cusparseDestroyBsrsm2Info`| | | |`hipsparseDestroyBsrsm2Info`|4.5.0| | | | -|`cusparseDestroyBsrsv2Info`| | | |`hipsparseDestroyBsrsv2Info`|3.6.0| | | | -|`cusparseDestroyColorInfo`| | | |`hipsparseDestroyColorInfo`|4.5.0| | | | +|`cusparseDestroyBsric02Info`| |12.2| |`hipsparseDestroyBsric02Info`|3.8.0| | | | +|`cusparseDestroyBsrilu02Info`| |12.2| |`hipsparseDestroyBsrilu02Info`|3.9.0| | | | +|`cusparseDestroyBsrsm2Info`| |12.2| |`hipsparseDestroyBsrsm2Info`|4.5.0| | | | +|`cusparseDestroyBsrsv2Info`| |12.2| |`hipsparseDestroyBsrsv2Info`|3.6.0| | | | +|`cusparseDestroyColorInfo`| |12.2| |`hipsparseDestroyColorInfo`|4.5.0| | | | |`cusparseDestroyCsrgemm2Info`| |11.0|12.0|`hipsparseDestroyCsrgemm2Info`|2.8.0| | | | -|`cusparseDestroyCsric02Info`| | | |`hipsparseDestroyCsric02Info`|3.1.0| | | | -|`cusparseDestroyCsrilu02Info`| | | |`hipsparseDestroyCsrilu02Info`|1.9.2| | | | +|`cusparseDestroyCsric02Info`| |12.2| |`hipsparseDestroyCsric02Info`|3.1.0| | | | +|`cusparseDestroyCsrilu02Info`| |12.2| |`hipsparseDestroyCsrilu02Info`|1.9.2| | | | |`cusparseDestroyCsrsm2Info`|10.0|11.3|12.0|`hipsparseDestroyCsrsm2Info`|3.1.0| | | | |`cusparseDestroyCsrsv2Info`| |11.3|12.0|`hipsparseDestroyCsrsv2Info`|1.9.2| | | | |`cusparseDestroyHybMat`| |10.2|11.0|`hipsparseDestroyHybMat`|1.9.2| | | | |`cusparseDestroyMatDescr`| | | |`hipsparseDestroyMatDescr`|1.9.2| | | | -|`cusparseDestroyPruneInfo`|9.0| | |`hipsparseDestroyPruneInfo`|3.9.0| | | | +|`cusparseDestroyPruneInfo`|9.0|12.2| |`hipsparseDestroyPruneInfo`|3.9.0| | | | |`cusparseDestroySolveAnalysisInfo`| |10.2|11.0| | | | | | |`cusparseGetLevelInfo`| | |11.0| | | | | | |`cusparseGetMatDiagType`| | | |`hipsparseGetMatDiagType`|1.9.2| | | | @@ -649,7 +649,7 @@ |`cusparseChyb2dense`| |10.2|11.0| | | | | | |`cusparseCnnz`| | | |`hipsparseCnnz`|3.2.0| | | | |`cusparseCnnz_compress`|8.0| | |`hipsparseCnnz_compress`|3.5.0| | | | -|`cusparseCreateCsru2csrInfo`| | | |`hipsparseCreateCsru2csrInfo`|4.2.0| | | | +|`cusparseCreateCsru2csrInfo`| |12.2| |`hipsparseCreateCsru2csrInfo`|4.2.0| | | | |`cusparseCreateIdentityPermutation`| | | |`hipsparseCreateIdentityPermutation`|1.9.2| | | | |`cusparseCsr2cscEx`|8.0|10.2|11.0| | | | | | |`cusparseCsr2cscEx2`|10.1| | |`hipsparseCsr2cscEx2`|5.4.0| | | | @@ -671,7 +671,7 @@ |`cusparseDdense2csc`| |11.1|12.0|`hipsparseDdense2csc`|3.5.0| | | | |`cusparseDdense2csr`| |11.1|12.0|`hipsparseDdense2csr`|3.5.0| | | | |`cusparseDdense2hyb`| |10.2|11.0| | | | | | -|`cusparseDestroyCsru2csrInfo`| | | |`hipsparseDestroyCsru2csrInfo`|4.2.0| | | | +|`cusparseDestroyCsru2csrInfo`| |12.2| |`hipsparseDestroyCsru2csrInfo`|4.2.0| | | | |`cusparseDgebsr2csr`| | | |`hipsparseDgebsr2csr`|4.1.0| | | | |`cusparseDgebsr2gebsc`| | | |`hipsparseDgebsr2gebsc`|4.1.0| | | | |`cusparseDgebsr2gebsc_bufferSize`| | | |`hipsparseDgebsr2gebsc_bufferSize`|4.1.0| | | | diff --git a/docs/tables/CUSPARSE_API_supported_by_HIP_and_ROC.md b/docs/tables/CUSPARSE_API_supported_by_HIP_and_ROC.md index dd222e11..f0009ec5 100644 --- a/docs/tables/CUSPARSE_API_supported_by_HIP_and_ROC.md +++ b/docs/tables/CUSPARSE_API_supported_by_HIP_and_ROC.md @@ -219,33 +219,33 @@ |**CUDA**|**A**|**D**|**R**|**HIP**|**A**|**D**|**R**|**E**|**ROC**|**A**|**D**|**R**|**E**| |:--|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:| |`cusparseCopyMatDescr`|8.0| |12.0|`hipsparseCopyMatDescr`|1.9.2| | | |`rocsparse_copy_mat_descr`|1.9.0| | | | -|`cusparseCreateBsric02Info`| | | |`hipsparseCreateBsric02Info`|3.8.0| | | | | | | | | -|`cusparseCreateBsrilu02Info`| | | |`hipsparseCreateBsrilu02Info`|3.9.0| | | | | | | | | -|`cusparseCreateBsrsm2Info`| | | |`hipsparseCreateBsrsm2Info`|4.5.0| | | | | | | | | -|`cusparseCreateBsrsv2Info`| | | |`hipsparseCreateBsrsv2Info`|3.6.0| | | | | | | | | -|`cusparseCreateColorInfo`| | | |`hipsparseCreateColorInfo`|4.5.0| | | |`rocsparse_create_color_info`|4.5.0| | | | +|`cusparseCreateBsric02Info`| |12.2| |`hipsparseCreateBsric02Info`|3.8.0| | | | | | | | | +|`cusparseCreateBsrilu02Info`| |12.2| |`hipsparseCreateBsrilu02Info`|3.9.0| | | | | | | | | +|`cusparseCreateBsrsm2Info`| |12.2| |`hipsparseCreateBsrsm2Info`|4.5.0| | | | | | | | | +|`cusparseCreateBsrsv2Info`| |12.2| |`hipsparseCreateBsrsv2Info`|3.6.0| | | | | | | | | +|`cusparseCreateColorInfo`| |12.2| |`hipsparseCreateColorInfo`|4.5.0| | | |`rocsparse_create_color_info`|4.5.0| | | | |`cusparseCreateCsrgemm2Info`| |11.0|12.0|`hipsparseCreateCsrgemm2Info`|2.8.0| | | | | | | | | -|`cusparseCreateCsric02Info`| | | |`hipsparseCreateCsric02Info`|3.1.0| | | | | | | | | -|`cusparseCreateCsrilu02Info`| | | |`hipsparseCreateCsrilu02Info`|1.9.2| | | | | | | | | +|`cusparseCreateCsric02Info`| |12.2| |`hipsparseCreateCsric02Info`|3.1.0| | | | | | | | | +|`cusparseCreateCsrilu02Info`| |12.2| |`hipsparseCreateCsrilu02Info`|1.9.2| | | | | | | | | |`cusparseCreateCsrsm2Info`|10.0|11.3|12.0|`hipsparseCreateCsrsm2Info`|3.1.0| | | | | | | | | |`cusparseCreateCsrsv2Info`| |11.3|12.0|`hipsparseCreateCsrsv2Info`|1.9.2| | | | | | | | | |`cusparseCreateHybMat`| |10.2|11.0|`hipsparseCreateHybMat`|1.9.2| | | |`rocsparse_create_hyb_mat`|1.9.0| | | | |`cusparseCreateMatDescr`| | | |`hipsparseCreateMatDescr`|1.9.2| | | |`rocsparse_create_mat_descr`|1.9.0| | | | -|`cusparseCreatePruneInfo`|9.0| | |`hipsparseCreatePruneInfo`|3.9.0| | | | | | | | | +|`cusparseCreatePruneInfo`|9.0|12.2| |`hipsparseCreatePruneInfo`|3.9.0| | | | | | | | | |`cusparseCreateSolveAnalysisInfo`| |10.2|11.0| | | | | | | | | | | -|`cusparseDestroyBsric02Info`| | | |`hipsparseDestroyBsric02Info`|3.8.0| | | | | | | | | -|`cusparseDestroyBsrilu02Info`| | | |`hipsparseDestroyBsrilu02Info`|3.9.0| | | | | | | | | -|`cusparseDestroyBsrsm2Info`| | | |`hipsparseDestroyBsrsm2Info`|4.5.0| | | | | | | | | -|`cusparseDestroyBsrsv2Info`| | | |`hipsparseDestroyBsrsv2Info`|3.6.0| | | | | | | | | -|`cusparseDestroyColorInfo`| | | |`hipsparseDestroyColorInfo`|4.5.0| | | |`rocsparse_destroy_color_info`|4.5.0| | | | +|`cusparseDestroyBsric02Info`| |12.2| |`hipsparseDestroyBsric02Info`|3.8.0| | | | | | | | | +|`cusparseDestroyBsrilu02Info`| |12.2| |`hipsparseDestroyBsrilu02Info`|3.9.0| | | | | | | | | +|`cusparseDestroyBsrsm2Info`| |12.2| |`hipsparseDestroyBsrsm2Info`|4.5.0| | | | | | | | | +|`cusparseDestroyBsrsv2Info`| |12.2| |`hipsparseDestroyBsrsv2Info`|3.6.0| | | | | | | | | +|`cusparseDestroyColorInfo`| |12.2| |`hipsparseDestroyColorInfo`|4.5.0| | | |`rocsparse_destroy_color_info`|4.5.0| | | | |`cusparseDestroyCsrgemm2Info`| |11.0|12.0|`hipsparseDestroyCsrgemm2Info`|2.8.0| | | | | | | | | -|`cusparseDestroyCsric02Info`| | | |`hipsparseDestroyCsric02Info`|3.1.0| | | | | | | | | -|`cusparseDestroyCsrilu02Info`| | | |`hipsparseDestroyCsrilu02Info`|1.9.2| | | | | | | | | +|`cusparseDestroyCsric02Info`| |12.2| |`hipsparseDestroyCsric02Info`|3.1.0| | | | | | | | | +|`cusparseDestroyCsrilu02Info`| |12.2| |`hipsparseDestroyCsrilu02Info`|1.9.2| | | | | | | | | |`cusparseDestroyCsrsm2Info`|10.0|11.3|12.0|`hipsparseDestroyCsrsm2Info`|3.1.0| | | | | | | | | |`cusparseDestroyCsrsv2Info`| |11.3|12.0|`hipsparseDestroyCsrsv2Info`|1.9.2| | | | | | | | | |`cusparseDestroyHybMat`| |10.2|11.0|`hipsparseDestroyHybMat`|1.9.2| | | |`rocsparse_destroy_hyb_mat`|1.9.0| | | | |`cusparseDestroyMatDescr`| | | |`hipsparseDestroyMatDescr`|1.9.2| | | |`rocsparse_destroy_mat_descr`|1.9.0| | | | -|`cusparseDestroyPruneInfo`|9.0| | |`hipsparseDestroyPruneInfo`|3.9.0| | | | | | | | | +|`cusparseDestroyPruneInfo`|9.0|12.2| |`hipsparseDestroyPruneInfo`|3.9.0| | | | | | | | | |`cusparseDestroySolveAnalysisInfo`| |10.2|11.0| | | | | | | | | | | |`cusparseGetLevelInfo`| | |11.0| | | | | | | | | | | |`cusparseGetMatDiagType`| | | |`hipsparseGetMatDiagType`|1.9.2| | | |`rocsparse_get_mat_diag_type`|1.9.0| | | | @@ -649,7 +649,7 @@ |`cusparseChyb2dense`| |10.2|11.0| | | | | | | | | | | |`cusparseCnnz`| | | |`hipsparseCnnz`|3.2.0| | | | | | | | | |`cusparseCnnz_compress`|8.0| | |`hipsparseCnnz_compress`|3.5.0| | | | | | | | | -|`cusparseCreateCsru2csrInfo`| | | |`hipsparseCreateCsru2csrInfo`|4.2.0| | | | | | | | | +|`cusparseCreateCsru2csrInfo`| |12.2| |`hipsparseCreateCsru2csrInfo`|4.2.0| | | | | | | | | |`cusparseCreateIdentityPermutation`| | | |`hipsparseCreateIdentityPermutation`|1.9.2| | | |`rocsparse_create_identity_permutation`|1.9.0| | | | |`cusparseCsr2cscEx`|8.0|10.2|11.0| | | | | | | | | | | |`cusparseCsr2cscEx2`|10.1| | |`hipsparseCsr2cscEx2`|5.4.0| | | | | | | | | @@ -671,7 +671,7 @@ |`cusparseDdense2csc`| |11.1|12.0|`hipsparseDdense2csc`|3.5.0| | | | | | | | | |`cusparseDdense2csr`| |11.1|12.0|`hipsparseDdense2csr`|3.5.0| | | | | | | | | |`cusparseDdense2hyb`| |10.2|11.0| | | | | | | | | | | -|`cusparseDestroyCsru2csrInfo`| | | |`hipsparseDestroyCsru2csrInfo`|4.2.0| | | | | | | | | +|`cusparseDestroyCsru2csrInfo`| |12.2| |`hipsparseDestroyCsru2csrInfo`|4.2.0| | | | | | | | | |`cusparseDgebsr2csr`| | | |`hipsparseDgebsr2csr`|4.1.0| | | |`rocsparse_dgebsr2csr`|3.10.0| | | | |`cusparseDgebsr2gebsc`| | | |`hipsparseDgebsr2gebsc`|4.1.0| | | |`rocsparse_dgebsr2gebsc`|4.1.0| | | | |`cusparseDgebsr2gebsc_bufferSize`| | | |`hipsparseDgebsr2gebsc_bufferSize`|4.1.0| | | | | | | | | diff --git a/docs/tables/CUSPARSE_API_supported_by_ROC.md b/docs/tables/CUSPARSE_API_supported_by_ROC.md index 80fac29a..fdbfaa50 100644 --- a/docs/tables/CUSPARSE_API_supported_by_ROC.md +++ b/docs/tables/CUSPARSE_API_supported_by_ROC.md @@ -219,33 +219,33 @@ |**CUDA**|**A**|**D**|**R**|**ROC**|**A**|**D**|**R**|**E**| |:--|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:| |`cusparseCopyMatDescr`|8.0| |12.0|`rocsparse_copy_mat_descr`|1.9.0| | | | -|`cusparseCreateBsric02Info`| | | | | | | | | -|`cusparseCreateBsrilu02Info`| | | | | | | | | -|`cusparseCreateBsrsm2Info`| | | | | | | | | -|`cusparseCreateBsrsv2Info`| | | | | | | | | -|`cusparseCreateColorInfo`| | | |`rocsparse_create_color_info`|4.5.0| | | | +|`cusparseCreateBsric02Info`| |12.2| | | | | | | +|`cusparseCreateBsrilu02Info`| |12.2| | | | | | | +|`cusparseCreateBsrsm2Info`| |12.2| | | | | | | +|`cusparseCreateBsrsv2Info`| |12.2| | | | | | | +|`cusparseCreateColorInfo`| |12.2| |`rocsparse_create_color_info`|4.5.0| | | | |`cusparseCreateCsrgemm2Info`| |11.0|12.0| | | | | | -|`cusparseCreateCsric02Info`| | | | | | | | | -|`cusparseCreateCsrilu02Info`| | | | | | | | | +|`cusparseCreateCsric02Info`| |12.2| | | | | | | +|`cusparseCreateCsrilu02Info`| |12.2| | | | | | | |`cusparseCreateCsrsm2Info`|10.0|11.3|12.0| | | | | | |`cusparseCreateCsrsv2Info`| |11.3|12.0| | | | | | |`cusparseCreateHybMat`| |10.2|11.0|`rocsparse_create_hyb_mat`|1.9.0| | | | |`cusparseCreateMatDescr`| | | |`rocsparse_create_mat_descr`|1.9.0| | | | -|`cusparseCreatePruneInfo`|9.0| | | | | | | | +|`cusparseCreatePruneInfo`|9.0|12.2| | | | | | | |`cusparseCreateSolveAnalysisInfo`| |10.2|11.0| | | | | | -|`cusparseDestroyBsric02Info`| | | | | | | | | -|`cusparseDestroyBsrilu02Info`| | | | | | | | | -|`cusparseDestroyBsrsm2Info`| | | | | | | | | -|`cusparseDestroyBsrsv2Info`| | | | | | | | | -|`cusparseDestroyColorInfo`| | | |`rocsparse_destroy_color_info`|4.5.0| | | | +|`cusparseDestroyBsric02Info`| |12.2| | | | | | | +|`cusparseDestroyBsrilu02Info`| |12.2| | | | | | | +|`cusparseDestroyBsrsm2Info`| |12.2| | | | | | | +|`cusparseDestroyBsrsv2Info`| |12.2| | | | | | | +|`cusparseDestroyColorInfo`| |12.2| |`rocsparse_destroy_color_info`|4.5.0| | | | |`cusparseDestroyCsrgemm2Info`| |11.0|12.0| | | | | | -|`cusparseDestroyCsric02Info`| | | | | | | | | -|`cusparseDestroyCsrilu02Info`| | | | | | | | | +|`cusparseDestroyCsric02Info`| |12.2| | | | | | | +|`cusparseDestroyCsrilu02Info`| |12.2| | | | | | | |`cusparseDestroyCsrsm2Info`|10.0|11.3|12.0| | | | | | |`cusparseDestroyCsrsv2Info`| |11.3|12.0| | | | | | |`cusparseDestroyHybMat`| |10.2|11.0|`rocsparse_destroy_hyb_mat`|1.9.0| | | | |`cusparseDestroyMatDescr`| | | |`rocsparse_destroy_mat_descr`|1.9.0| | | | -|`cusparseDestroyPruneInfo`|9.0| | | | | | | | +|`cusparseDestroyPruneInfo`|9.0|12.2| | | | | | | |`cusparseDestroySolveAnalysisInfo`| |10.2|11.0| | | | | | |`cusparseGetLevelInfo`| | |11.0| | | | | | |`cusparseGetMatDiagType`| | | |`rocsparse_get_mat_diag_type`|1.9.0| | | | @@ -649,7 +649,7 @@ |`cusparseChyb2dense`| |10.2|11.0| | | | | | |`cusparseCnnz`| | | | | | | | | |`cusparseCnnz_compress`|8.0| | | | | | | | -|`cusparseCreateCsru2csrInfo`| | | | | | | | | +|`cusparseCreateCsru2csrInfo`| |12.2| | | | | | | |`cusparseCreateIdentityPermutation`| | | |`rocsparse_create_identity_permutation`|1.9.0| | | | |`cusparseCsr2cscEx`|8.0|10.2|11.0| | | | | | |`cusparseCsr2cscEx2`|10.1| | | | | | | | @@ -671,7 +671,7 @@ |`cusparseDdense2csc`| |11.1|12.0| | | | | | |`cusparseDdense2csr`| |11.1|12.0| | | | | | |`cusparseDdense2hyb`| |10.2|11.0| | | | | | -|`cusparseDestroyCsru2csrInfo`| | | | | | | | | +|`cusparseDestroyCsru2csrInfo`| |12.2| | | | | | | |`cusparseDgebsr2csr`| | | |`rocsparse_dgebsr2csr`|3.10.0| | | | |`cusparseDgebsr2gebsc`| | | |`rocsparse_dgebsr2gebsc`|4.1.0| | | | |`cusparseDgebsr2gebsc_bufferSize`| | | | | | | | | diff --git a/src/CUDA2HIP_SPARSE_API_functions.cpp b/src/CUDA2HIP_SPARSE_API_functions.cpp index 9193a73d..7cef2ee2 100644 --- a/src/CUDA2HIP_SPARSE_API_functions.cpp +++ b/src/CUDA2HIP_SPARSE_API_functions.cpp @@ -62,24 +62,24 @@ const std::map CUDA_SPARSE_FUNCTION_MAP { {"cusparseDestroyCsrsv2Info", {"hipsparseDestroyCsrsv2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}}, {"cusparseCreateCsrsm2Info", {"hipsparseCreateCsrsm2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}}, {"cusparseDestroyCsrsm2Info", {"hipsparseDestroyCsrsm2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}}, - {"cusparseCreateCsric02Info", {"hipsparseCreateCsric02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseDestroyCsric02Info", {"hipsparseDestroyCsric02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseCreateCsrilu02Info", {"hipsparseCreateCsrilu02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseDestroyCsrilu02Info", {"hipsparseDestroyCsrilu02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseCreateBsrsv2Info", {"hipsparseCreateBsrsv2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseDestroyBsrsv2Info", {"hipsparseDestroyBsrsv2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseCreateBsrsm2Info", {"hipsparseCreateBsrsm2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseDestroyBsrsm2Info", {"hipsparseDestroyBsrsm2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseCreateBsric02Info", {"hipsparseCreateBsric02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseDestroyBsric02Info", {"hipsparseDestroyBsric02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseCreateBsrilu02Info", {"hipsparseCreateBsrilu02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseDestroyBsrilu02Info", {"hipsparseDestroyBsrilu02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, + {"cusparseCreateCsric02Info", {"hipsparseCreateCsric02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseDestroyCsric02Info", {"hipsparseDestroyCsric02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseCreateCsrilu02Info", {"hipsparseCreateCsrilu02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseDestroyCsrilu02Info", {"hipsparseDestroyCsrilu02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseCreateBsrsv2Info", {"hipsparseCreateBsrsv2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseDestroyBsrsv2Info", {"hipsparseDestroyBsrsv2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseCreateBsrsm2Info", {"hipsparseCreateBsrsm2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseDestroyBsrsm2Info", {"hipsparseDestroyBsrsm2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseCreateBsric02Info", {"hipsparseCreateBsric02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseDestroyBsric02Info", {"hipsparseDestroyBsric02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseCreateBsrilu02Info", {"hipsparseCreateBsrilu02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseDestroyBsrilu02Info", {"hipsparseDestroyBsrilu02Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, {"cusparseCreateCsrgemm2Info", {"hipsparseCreateCsrgemm2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}}, {"cusparseDestroyCsrgemm2Info", {"hipsparseDestroyCsrgemm2Info", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}}, - {"cusparseCreatePruneInfo", {"hipsparseCreatePruneInfo", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseDestroyPruneInfo", {"hipsparseDestroyPruneInfo", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED}}, - {"cusparseCreateColorInfo", {"hipsparseCreateColorInfo", "rocsparse_create_color_info", CONV_LIB_FUNC, API_SPARSE, 7}}, - {"cusparseDestroyColorInfo", {"hipsparseDestroyColorInfo", "rocsparse_destroy_color_info", CONV_LIB_FUNC, API_SPARSE, 7}}, + {"cusparseCreatePruneInfo", {"hipsparseCreatePruneInfo", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseDestroyPruneInfo", {"hipsparseDestroyPruneInfo", "", CONV_LIB_FUNC, API_SPARSE, 7, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseCreateColorInfo", {"hipsparseCreateColorInfo", "rocsparse_create_color_info", CONV_LIB_FUNC, API_SPARSE, 7, CUDA_DEPRECATED}}, + {"cusparseDestroyColorInfo", {"hipsparseDestroyColorInfo", "rocsparse_destroy_color_info", CONV_LIB_FUNC, API_SPARSE, 7, CUDA_DEPRECATED}}, // 8. cuSPARSE Level 1 Function Reference {"cusparseSaxpyi", {"hipsparseSaxpyi", "", CONV_LIB_FUNC, API_SPARSE, 8, ROC_UNSUPPORTED | CUDA_DEPRECATED | CUDA_REMOVED}}, @@ -646,8 +646,8 @@ const std::map CUDA_SPARSE_FUNCTION_MAP { {"cusparseXcscsort_bufferSizeExt", {"hipsparseXcscsort_bufferSizeExt", "rocsparse_cscsort_buffer_size", CONV_LIB_FUNC, API_SPARSE, 14}}, {"cusparseXcscsort", {"hipsparseXcscsort", "rocsparse_cscsort", CONV_LIB_FUNC, API_SPARSE, 14}}, - {"cusparseCreateCsru2csrInfo", {"hipsparseCreateCsru2csrInfo", "", CONV_LIB_FUNC, API_SPARSE, 14, ROC_UNSUPPORTED}}, - {"cusparseDestroyCsru2csrInfo", {"hipsparseDestroyCsru2csrInfo", "", CONV_LIB_FUNC, API_SPARSE, 14, ROC_UNSUPPORTED}}, + {"cusparseCreateCsru2csrInfo", {"hipsparseCreateCsru2csrInfo", "", CONV_LIB_FUNC, API_SPARSE, 14, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, + {"cusparseDestroyCsru2csrInfo", {"hipsparseDestroyCsru2csrInfo", "", CONV_LIB_FUNC, API_SPARSE, 14, ROC_UNSUPPORTED | CUDA_DEPRECATED}}, {"cusparseScsru2csr", {"hipsparseScsru2csr", "", CONV_LIB_FUNC, API_SPARSE, 14, ROC_UNSUPPORTED}}, {"cusparseDcsru2csr", {"hipsparseDcsru2csr", "", CONV_LIB_FUNC, API_SPARSE, 14, ROC_UNSUPPORTED}}, @@ -866,12 +866,12 @@ const std::map CUDA_SPARSE_FUNCTION_VER_MAP { {"cusparseCreateCsrgemm2Info", {CUDA_0, CUDA_110, CUDA_120}}, {"cusparseCreateCsrsm2Info", {CUDA_100, CUDA_113, CUDA_120}}, {"cusparseCreateHybMat", {CUDA_0, CUDA_102, CUDA_110}}, - {"cusparseCreatePruneInfo", {CUDA_90, CUDA_0, CUDA_0 }}, + {"cusparseCreatePruneInfo", {CUDA_90, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 {"cusparseCreateSolveAnalysisInfo", {CUDA_0, CUDA_102, CUDA_110}}, {"cusparseDestroyCsrgemm2Info", {CUDA_0, CUDA_110, CUDA_120}}, {"cusparseDestroyCsrsm2Info", {CUDA_100, CUDA_113, CUDA_120}}, {"cusparseDestroyHybMat", {CUDA_0, CUDA_102, CUDA_110}}, - {"cusparseDestroyPruneInfo", {CUDA_90, CUDA_0, CUDA_0 }}, + {"cusparseDestroyPruneInfo", {CUDA_90, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 {"cusparseDestroySolveAnalysisInfo", {CUDA_0, CUDA_102, CUDA_110}}, {"cusparseGetLevelInfo", {CUDA_0, CUDA_0, CUDA_110}}, {"cusparseSdoti", {CUDA_0, CUDA_102, CUDA_110}}, @@ -1290,6 +1290,22 @@ const std::map CUDA_SPARSE_FUNCTION_VER_MAP { {"cusparseCreateSlicedEll", {CUDA_121, CUDA_0, CUDA_0 }}, // CUSPARSE_VERSION 12100 {"cusparseCreateConstSlicedEll", {CUDA_121, CUDA_0, CUDA_0 }}, // CUSPARSE_VERSION 12100 {"cusparseSpSV_updateMatrix", {CUDA_121, CUDA_0, CUDA_0 }}, // CUSPARSE_VERSION 12100 + {"cusparseCreateCsric02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseDestroyCsric02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseCreateBsric02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseDestroyBsric02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseCreateCsrilu02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseDestroyCsrilu02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseCreateBsrilu02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseDestroyBsrilu02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseCreateBsrsv2Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseDestroyBsrsv2Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseCreateBsrsm2Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseDestroyBsrsm2Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseCreateCsru2csrInfo", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseDestroyCsru2csrInfo", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseCreateColorInfo", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseDestroyColorInfo", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 }; const std::map HIP_SPARSE_FUNCTION_VER_MAP { diff --git a/src/CUDA2HIP_SPARSE_API_types.cpp b/src/CUDA2HIP_SPARSE_API_types.cpp index ff1c9c59..3650d3b1 100644 --- a/src/CUDA2HIP_SPARSE_API_types.cpp +++ b/src/CUDA2HIP_SPARSE_API_types.cpp @@ -395,28 +395,28 @@ const std::map CUDA_SPARSE_TYPE_NAME_VER_MAP { {"cusparseSpSVUpdate_t", {CUDA_121, CUDA_0, CUDA_0 }}, // CUSPARSE_VERSION 12100 {"CUSPARSE_SPSV_UPDATE_GENERAL", {CUDA_121, CUDA_0, CUDA_0 }}, // CUSPARSE_VERSION 12100 {"CUSPARSE_SPSV_UPDATE_DIAGONAL", {CUDA_121, CUDA_0, CUDA_0 }}, // CUSPARSE_VERSION 12100 - {"bsrsv2Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"bsrsv2Info_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"bsrsm2Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"bsrsm2Info_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"csric02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"csric02Info_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"csrilu02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"csrilu02Info_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"bsrilu02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"bsrilu02Info_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"csru2csrInfo", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"csru2csrInfo_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"cusparseColorInfo", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"cusparseColorInfo_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"pruneInfo", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"pruneInfo_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"cusparseSolvePolicy_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"CUSPARSE_SOLVE_POLICY_NO_LEVEL", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"CUSPARSE_SOLVE_POLICY_USE_LEVEL", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"cusparseColorAlg_t", {CUDA_80, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"CUSPARSE_COLOR_ALG0", {CUDA_80, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 - {"CUSPARSE_COLOR_ALG1", {CUDA_80, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12200 + {"bsrsv2Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"bsrsv2Info_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"bsrsm2Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"bsrsm2Info_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"csric02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"csric02Info_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"csrilu02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"csrilu02Info_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"bsrilu02Info", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"bsrilu02Info_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"csru2csrInfo", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"csru2csrInfo_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseColorInfo", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseColorInfo_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"pruneInfo", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"pruneInfo_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseSolvePolicy_t", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"CUSPARSE_SOLVE_POLICY_NO_LEVEL", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"CUSPARSE_SOLVE_POLICY_USE_LEVEL", {CUDA_0, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"cusparseColorAlg_t", {CUDA_80, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"CUSPARSE_COLOR_ALG0", {CUDA_80, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 + {"CUSPARSE_COLOR_ALG1", {CUDA_80, CUDA_122, CUDA_0 }}, // CUSPARSE_VERSION 12120 }; const std::map HIP_SPARSE_TYPE_NAME_VER_MAP {