From 46e34494fdf9ab523d1cf7a1e1902a52d1831148 Mon Sep 17 00:00:00 2001 From: Evgeny Mankov Date: Sat, 28 Oct 2023 21:05:59 +0200 Subject: [PATCH] [HIPIFY][6.0.0][hipSPARSE][doc] Support for ROCm HIP 6.0.0 - Step 31 - hipSPARSE - `C - Changed` functions + Mark all `hipSPARSE` functions, that were changed in 6.0.0 + Updated the regenerated SPARSE docs [TODO] + Mark as `C-Changed` all the corresponding `cuSPARSE` functions --- docs/tables/CUSPARSE_API_supported_by_HIP.md | 84 +++++++++---------- .../CUSPARSE_API_supported_by_HIP_and_ROC.md | 84 +++++++++---------- src/CUDA2HIP.h | 1 + src/CUDA2HIP_Doc.cpp | 1 + src/CUDA2HIP_SPARSE_API_functions.cpp | 45 ++++++++++ 5 files changed, 131 insertions(+), 84 deletions(-) diff --git a/docs/tables/CUSPARSE_API_supported_by_HIP.md b/docs/tables/CUSPARSE_API_supported_by_HIP.md index 1a43cba9..c186b985 100644 --- a/docs/tables/CUSPARSE_API_supported_by_HIP.md +++ b/docs/tables/CUSPARSE_API_supported_by_HIP.md @@ -798,7 +798,7 @@ |**CUDA**|**A**|**D**|**R**|**HIP**|**A**|**D**|**C**|**R**|**E**| |:--|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:| -|`cusparseAxpby`|11.0| | |`hipsparseAxpby`|4.1.0| | | | | +|`cusparseAxpby`|11.0| | |`hipsparseAxpby`|4.1.0| |6.0.0| | | |`cusparseBlockedEllGet`|11.2| | |`hipsparseBlockedEllGet`|4.5.0| | | | | |`cusparseBsrSetStridedBatch`|12.1| | | | | | | | | |`cusparseConstBlockedEllGet`|12.0| | |`hipsparseConstBlockedEllGet`|6.0.0| | | |6.0.0| @@ -842,76 +842,76 @@ |`cusparseCsrGet`|10.2| | |`hipsparseCsrGet`|4.1.0| | | | | |`cusparseCsrSetPointers`|11.0| | |`hipsparseCsrSetPointers`|4.1.0| | | | | |`cusparseCsrSetStridedBatch`|11.0| | |`hipsparseCsrSetStridedBatch`|5.2.0| | | | | -|`cusparseDenseToSparse_analysis`|11.1| | |`hipsparseDenseToSparse_analysis`|4.2.0| | | | | -|`cusparseDenseToSparse_bufferSize`|11.1| | |`hipsparseDenseToSparse_bufferSize`|4.2.0| | | | | -|`cusparseDenseToSparse_convert`|11.1| | |`hipsparseDenseToSparse_convert`|4.2.0| | | | | -|`cusparseDestroyDnMat`|10.1| | |`hipsparseDestroyDnMat`|4.2.0| | | | | -|`cusparseDestroyDnVec`|10.2| | |`hipsparseDestroyDnVec`|4.1.0| | | | | -|`cusparseDestroySpMat`|10.1| | |`hipsparseDestroySpMat`|4.1.0| | | | | -|`cusparseDestroySpVec`|10.2| | |`hipsparseDestroySpVec`|4.1.0| | | | | +|`cusparseDenseToSparse_analysis`|11.1| | |`hipsparseDenseToSparse_analysis`|4.2.0| |6.0.0| | | +|`cusparseDenseToSparse_bufferSize`|11.1| | |`hipsparseDenseToSparse_bufferSize`|4.2.0| |6.0.0| | | +|`cusparseDenseToSparse_convert`|11.1| | |`hipsparseDenseToSparse_convert`|4.2.0| |6.0.0| | | +|`cusparseDestroyDnMat`|10.1| | |`hipsparseDestroyDnMat`|4.2.0| |6.0.0| | | +|`cusparseDestroyDnVec`|10.2| | |`hipsparseDestroyDnVec`|4.1.0| |6.0.0| | | +|`cusparseDestroySpMat`|10.1| | |`hipsparseDestroySpMat`|4.1.0| |6.0.0| | | +|`cusparseDestroySpVec`|10.2| | |`hipsparseDestroySpVec`|4.1.0| |6.0.0| | | |`cusparseDnMatGet`|10.1| | |`hipsparseDnMatGet`|4.2.0| | | | | -|`cusparseDnMatGetStridedBatch`|10.1| | |`hipsparseDnMatGetStridedBatch`|5.2.0| | | | | +|`cusparseDnMatGetStridedBatch`|10.1| | |`hipsparseDnMatGetStridedBatch`|5.2.0| |6.0.0| | | |`cusparseDnMatGetValues`|10.2| | |`hipsparseDnMatGetValues`|4.2.0| | | | | |`cusparseDnMatSetStridedBatch`|10.1| | |`hipsparseDnMatSetStridedBatch`|5.2.0| | | | | |`cusparseDnMatSetValues`|10.2| | |`hipsparseDnMatSetValues`|4.2.0| | | | | |`cusparseDnVecGet`|10.2| | |`hipsparseDnVecGet`|4.1.0| | | | | |`cusparseDnVecGetValues`|10.2| | |`hipsparseDnVecGetValues`|4.1.0| | | | | |`cusparseDnVecSetValues`|10.2| | |`hipsparseDnVecSetValues`|4.1.0| | | | | -|`cusparseGather`|11.0| | |`hipsparseGather`|4.1.0| | | | | +|`cusparseGather`|11.0| | |`hipsparseGather`|4.1.0| |6.0.0| | | |`cusparseRot`|11.0|12.2| |`hipsparseRot`|4.1.0| | | | | -|`cusparseSDDMM`|11.2| | |`hipsparseSDDMM`|4.3.0| | | | | -|`cusparseSDDMM_bufferSize`|11.2| | |`hipsparseSDDMM_bufferSize`|4.3.0| | | | | -|`cusparseSDDMM_preprocess`|11.2| | |`hipsparseSDDMM_preprocess`|4.3.0| | | | | -|`cusparseScatter`|11.0| | |`hipsparseScatter`|4.1.0| | | | | -|`cusparseSpGEMM_compute`|11.0| | |`hipsparseSpGEMM_compute`|4.1.0| | | | | -|`cusparseSpGEMM_copy`|11.0| | |`hipsparseSpGEMM_copy`|4.1.0| | | | | +|`cusparseSDDMM`|11.2| | |`hipsparseSDDMM`|4.3.0| |6.0.0| | | +|`cusparseSDDMM_bufferSize`|11.2| | |`hipsparseSDDMM_bufferSize`|4.3.0| |6.0.0| | | +|`cusparseSDDMM_preprocess`|11.2| | |`hipsparseSDDMM_preprocess`|4.3.0| |6.0.0| | | +|`cusparseScatter`|11.0| | |`hipsparseScatter`|4.1.0| |6.0.0| | | +|`cusparseSpGEMM_compute`|11.0| | |`hipsparseSpGEMM_compute`|4.1.0| |6.0.0| | | +|`cusparseSpGEMM_copy`|11.0| | |`hipsparseSpGEMM_copy`|4.1.0| |6.0.0| | | |`cusparseSpGEMM_createDescr`|11.0| | |`hipsparseSpGEMM_createDescr`|4.1.0| | | | | |`cusparseSpGEMM_destroyDescr`|11.0| | |`hipsparseSpGEMM_destroyDescr`|4.1.0| | | | | |`cusparseSpGEMM_estimateMemory`|12.0| | | | | | | | | |`cusparseSpGEMM_getNumProducts`|12.0| | | | | | | | | -|`cusparseSpGEMM_workEstimation`|11.0| | |`hipsparseSpGEMM_workEstimation`|4.1.0| | | | | -|`cusparseSpGEMMreuse_compute`|11.3| | |`hipsparseSpGEMMreuse_compute`|5.1.0| | | | | -|`cusparseSpGEMMreuse_copy`|11.3| | |`hipsparseSpGEMMreuse_copy`|5.1.0| | | | | -|`cusparseSpGEMMreuse_nnz`|11.3| | |`hipsparseSpGEMMreuse_nnz`|5.1.0| | | | | -|`cusparseSpGEMMreuse_workEstimation`|11.3| | |`hipsparseSpGEMMreuse_workEstimation`|5.1.0| | | | | -|`cusparseSpMM`|10.1| | |`hipsparseSpMM`|4.2.0| | | | | +|`cusparseSpGEMM_workEstimation`|11.0| | |`hipsparseSpGEMM_workEstimation`|4.1.0| |6.0.0| | | +|`cusparseSpGEMMreuse_compute`|11.3| | |`hipsparseSpGEMMreuse_compute`|5.1.0| |6.0.0| | | +|`cusparseSpGEMMreuse_copy`|11.3| | |`hipsparseSpGEMMreuse_copy`|5.1.0| |6.0.0| | | +|`cusparseSpGEMMreuse_nnz`|11.3| | |`hipsparseSpGEMMreuse_nnz`|5.1.0| |6.0.0| | | +|`cusparseSpGEMMreuse_workEstimation`|11.3| | |`hipsparseSpGEMMreuse_workEstimation`|5.1.0| |6.0.0| | | +|`cusparseSpMM`|10.1| | |`hipsparseSpMM`|4.2.0| |6.0.0| | | |`cusparseSpMMOp`|11.5| | | | | | | | | |`cusparseSpMMOp_createPlan`|11.5| | | | | | | | | |`cusparseSpMMOp_destroyPlan`|11.5| | | | | | | | | -|`cusparseSpMM_bufferSize`|10.1| | |`hipsparseSpMM_bufferSize`|4.2.0| | | | | -|`cusparseSpMM_preprocess`|11.2| | |`hipsparseSpMM_preprocess`|4.5.0| | | | | -|`cusparseSpMV`|10.2| | |`hipsparseSpMV`|4.1.0| | | | | -|`cusparseSpMV_bufferSize`|10.2| | |`hipsparseSpMV_bufferSize`|4.1.0| | | | | -|`cusparseSpMatGetAttribute`|11.3| | |`hipsparseSpMatGetAttribute`|4.5.0| | | | | -|`cusparseSpMatGetFormat`|10.1| | |`hipsparseSpMatGetFormat`|4.1.0| | | | | -|`cusparseSpMatGetIndexBase`|10.1| | |`hipsparseSpMatGetIndexBase`|4.1.0| | | | | +|`cusparseSpMM_bufferSize`|10.1| | |`hipsparseSpMM_bufferSize`|4.2.0| |6.0.0| | | +|`cusparseSpMM_preprocess`|11.2| | |`hipsparseSpMM_preprocess`|4.5.0| |6.0.0| | | +|`cusparseSpMV`|10.2| | |`hipsparseSpMV`|4.1.0| |6.0.0| | | +|`cusparseSpMV_bufferSize`|10.2| | |`hipsparseSpMV_bufferSize`|4.1.0| |6.0.0| | | +|`cusparseSpMatGetAttribute`|11.3| | |`hipsparseSpMatGetAttribute`|4.5.0| |6.0.0| | | +|`cusparseSpMatGetFormat`|10.1| | |`hipsparseSpMatGetFormat`|4.1.0| |6.0.0| | | +|`cusparseSpMatGetIndexBase`|10.1| | |`hipsparseSpMatGetIndexBase`|4.1.0| |6.0.0| | | |`cusparseSpMatGetNumBatches`|10.1| |10.2| | | | | | | -|`cusparseSpMatGetSize`|11.0| | |`hipsparseSpMatGetSize`|4.1.0| | | | | -|`cusparseSpMatGetStridedBatch`|10.2| | |`hipsparseSpMatGetStridedBatch`|5.2.0| | | | | +|`cusparseSpMatGetSize`|11.0| | |`hipsparseSpMatGetSize`|4.1.0| |6.0.0| | | +|`cusparseSpMatGetStridedBatch`|10.2| | |`hipsparseSpMatGetStridedBatch`|5.2.0| |6.0.0| | | |`cusparseSpMatGetValues`|10.2| | |`hipsparseSpMatGetValues`|4.1.0| | | | | |`cusparseSpMatSetAttribute`|11.3| | |`hipsparseSpMatSetAttribute`|4.5.0| | | | | |`cusparseSpMatSetNumBatches`|10.1| |10.2| | | | | | | |`cusparseSpMatSetStridedBatch`|10.2| |12.0|`hipsparseSpMatSetStridedBatch`|5.2.0| | | | | |`cusparseSpMatSetValues`|10.2| | |`hipsparseSpMatSetValues`|4.1.0| | | | | -|`cusparseSpSM_analysis`|11.3| | |`hipsparseSpSM_analysis`|4.5.0| | | | | -|`cusparseSpSM_bufferSize`|11.3| | |`hipsparseSpSM_bufferSize`|4.5.0| | | | | +|`cusparseSpSM_analysis`|11.3| | |`hipsparseSpSM_analysis`|4.5.0| |6.0.0| | | +|`cusparseSpSM_bufferSize`|11.3| | |`hipsparseSpSM_bufferSize`|4.5.0| |6.0.0| | | |`cusparseSpSM_createDescr`|11.3| | |`hipsparseSpSM_createDescr`|4.5.0| | | | | |`cusparseSpSM_destroyDescr`|11.3| | |`hipsparseSpSM_destroyDescr`|4.5.0| | | | | -|`cusparseSpSM_solve`|11.3| | |`hipsparseSpSM_solve`|4.5.0| | | | | -|`cusparseSpSV_analysis`|11.3| | |`hipsparseSpSV_analysis`|4.5.0| | | | | -|`cusparseSpSV_bufferSize`|11.3| | |`hipsparseSpSV_bufferSize`|4.5.0| | | | | +|`cusparseSpSM_solve`|11.3| | |`hipsparseSpSM_solve`|4.5.0| |6.0.0| | | +|`cusparseSpSV_analysis`|11.3| | |`hipsparseSpSV_analysis`|4.5.0| |6.0.0| | | +|`cusparseSpSV_bufferSize`|11.3| | |`hipsparseSpSV_bufferSize`|4.5.0| |6.0.0| | | |`cusparseSpSV_createDescr`|11.3| | |`hipsparseSpSV_createDescr`|4.5.0| | | | | |`cusparseSpSV_destroyDescr`|11.3| | |`hipsparseSpSV_destroyDescr`|4.5.0| | | | | -|`cusparseSpSV_solve`|11.3| | |`hipsparseSpSV_solve`|4.5.0| | | | | +|`cusparseSpSV_solve`|11.3| | |`hipsparseSpSV_solve`|4.5.0| |6.0.0| | | |`cusparseSpSV_updateMatrix`|12.1| | | | | | | | | -|`cusparseSpVV`|10.2| | |`hipsparseSpVV`|4.1.0| | | | | -|`cusparseSpVV_bufferSize`|10.2| | |`hipsparseSpVV_bufferSize`|4.1.0| | | | | +|`cusparseSpVV`|10.2| | |`hipsparseSpVV`|4.1.0| |6.0.0| | | +|`cusparseSpVV_bufferSize`|10.2| | |`hipsparseSpVV_bufferSize`|4.1.0| |6.0.0| | | |`cusparseSpVecGet`|10.2| | |`hipsparseSpVecGet`|4.1.0| | | | | -|`cusparseSpVecGetIndexBase`|10.2| | |`hipsparseSpVecGetIndexBase`|4.1.0| | | | | +|`cusparseSpVecGetIndexBase`|10.2| | |`hipsparseSpVecGetIndexBase`|4.1.0| |6.0.0| | | |`cusparseSpVecGetValues`|10.2| | |`hipsparseSpVecGetValues`|4.1.0| | | | | |`cusparseSpVecSetValues`|10.2| | |`hipsparseSpVecSetValues`|4.1.0| | | | | -|`cusparseSparseToDense`|11.1| | |`hipsparseSparseToDense`|4.2.0| | | | | -|`cusparseSparseToDense_bufferSize`|11.1| | |`hipsparseSparseToDense_bufferSize`|4.2.0| | | | | +|`cusparseSparseToDense`|11.1| | |`hipsparseSparseToDense`|4.2.0| |6.0.0| | | +|`cusparseSparseToDense_bufferSize`|11.1| | |`hipsparseSparseToDense_bufferSize`|4.2.0| |6.0.0| | | \*A - Added; D - Deprecated; C - Changed; R - Removed; E - Experimental \ No newline at end of file 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 9f000d2f..1e1a05e6 100644 --- a/docs/tables/CUSPARSE_API_supported_by_HIP_and_ROC.md +++ b/docs/tables/CUSPARSE_API_supported_by_HIP_and_ROC.md @@ -798,7 +798,7 @@ |**CUDA**|**A**|**D**|**R**|**HIP**|**A**|**D**|**C**|**R**|**E**|**ROC**|**A**|**D**|**C**|**R**|**E**| |:--|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|:--|:-:|:-:|:-:|:-:|:-:| -|`cusparseAxpby`|11.0| | |`hipsparseAxpby`|4.1.0| | | | |`rocsparse_axpby`|4.1.0| | | | | +|`cusparseAxpby`|11.0| | |`hipsparseAxpby`|4.1.0| |6.0.0| | |`rocsparse_axpby`|4.1.0| | | | | |`cusparseBlockedEllGet`|11.2| | |`hipsparseBlockedEllGet`|4.5.0| | | | |`rocsparse_bell_get`|4.1.0| | | | | |`cusparseBsrSetStridedBatch`|12.1| | | | | | | | | | | | | | | |`cusparseConstBlockedEllGet`|12.0| | |`hipsparseConstBlockedEllGet`|6.0.0| | | |6.0.0| | | | | | | @@ -842,76 +842,76 @@ |`cusparseCsrGet`|10.2| | |`hipsparseCsrGet`|4.1.0| | | | |`rocsparse_csr_get`|4.1.0| | | | | |`cusparseCsrSetPointers`|11.0| | |`hipsparseCsrSetPointers`|4.1.0| | | | |`rocsparse_csr_set_pointers`|4.1.0| | | | | |`cusparseCsrSetStridedBatch`|11.0| | |`hipsparseCsrSetStridedBatch`|5.2.0| | | | |`rocsparse_csr_set_strided_batch`|5.2.0| | | | | -|`cusparseDenseToSparse_analysis`|11.1| | |`hipsparseDenseToSparse_analysis`|4.2.0| | | | | | | | | | | -|`cusparseDenseToSparse_bufferSize`|11.1| | |`hipsparseDenseToSparse_bufferSize`|4.2.0| | | | | | | | | | | -|`cusparseDenseToSparse_convert`|11.1| | |`hipsparseDenseToSparse_convert`|4.2.0| | | | | | | | | | | -|`cusparseDestroyDnMat`|10.1| | |`hipsparseDestroyDnMat`|4.2.0| | | | |`rocsparse_destroy_dnmat_descr`|4.1.0| | | | | -|`cusparseDestroyDnVec`|10.2| | |`hipsparseDestroyDnVec`|4.1.0| | | | |`rocsparse_destroy_dnvec_descr`|4.1.0| | | | | -|`cusparseDestroySpMat`|10.1| | |`hipsparseDestroySpMat`|4.1.0| | | | |`rocsparse_destroy_spmat_descr`|4.1.0| | | | | -|`cusparseDestroySpVec`|10.2| | |`hipsparseDestroySpVec`|4.1.0| | | | |`rocsparse_destroy_spvec_descr`|4.1.0| | | | | +|`cusparseDenseToSparse_analysis`|11.1| | |`hipsparseDenseToSparse_analysis`|4.2.0| |6.0.0| | | | | | | | | +|`cusparseDenseToSparse_bufferSize`|11.1| | |`hipsparseDenseToSparse_bufferSize`|4.2.0| |6.0.0| | | | | | | | | +|`cusparseDenseToSparse_convert`|11.1| | |`hipsparseDenseToSparse_convert`|4.2.0| |6.0.0| | | | | | | | | +|`cusparseDestroyDnMat`|10.1| | |`hipsparseDestroyDnMat`|4.2.0| |6.0.0| | |`rocsparse_destroy_dnmat_descr`|4.1.0| | | | | +|`cusparseDestroyDnVec`|10.2| | |`hipsparseDestroyDnVec`|4.1.0| |6.0.0| | |`rocsparse_destroy_dnvec_descr`|4.1.0| | | | | +|`cusparseDestroySpMat`|10.1| | |`hipsparseDestroySpMat`|4.1.0| |6.0.0| | |`rocsparse_destroy_spmat_descr`|4.1.0| | | | | +|`cusparseDestroySpVec`|10.2| | |`hipsparseDestroySpVec`|4.1.0| |6.0.0| | |`rocsparse_destroy_spvec_descr`|4.1.0| | | | | |`cusparseDnMatGet`|10.1| | |`hipsparseDnMatGet`|4.2.0| | | | |`rocsparse_dnmat_get`|4.1.0| | | | | -|`cusparseDnMatGetStridedBatch`|10.1| | |`hipsparseDnMatGetStridedBatch`|5.2.0| | | | |`rocsparse_dnmat_get_strided_batch`|5.2.0| | | | | +|`cusparseDnMatGetStridedBatch`|10.1| | |`hipsparseDnMatGetStridedBatch`|5.2.0| |6.0.0| | |`rocsparse_dnmat_get_strided_batch`|5.2.0| | | | | |`cusparseDnMatGetValues`|10.2| | |`hipsparseDnMatGetValues`|4.2.0| | | | |`rocsparse_dnmat_get_values`|4.1.0| | | | | |`cusparseDnMatSetStridedBatch`|10.1| | |`hipsparseDnMatSetStridedBatch`|5.2.0| | | | |`rocsparse_dnmat_set_strided_batch`|5.2.0| | | | | |`cusparseDnMatSetValues`|10.2| | |`hipsparseDnMatSetValues`|4.2.0| | | | |`rocsparse_dnmat_set_values`|4.1.0| | | | | |`cusparseDnVecGet`|10.2| | |`hipsparseDnVecGet`|4.1.0| | | | |`rocsparse_dnvec_get`|4.1.0| | | | | |`cusparseDnVecGetValues`|10.2| | |`hipsparseDnVecGetValues`|4.1.0| | | | |`rocsparse_dnvec_get_values`|4.1.0| | | | | |`cusparseDnVecSetValues`|10.2| | |`hipsparseDnVecSetValues`|4.1.0| | | | |`rocsparse_dnvec_set_values`|4.1.0| | | | | -|`cusparseGather`|11.0| | |`hipsparseGather`|4.1.0| | | | |`rocsparse_gather`|4.1.0| | | | | +|`cusparseGather`|11.0| | |`hipsparseGather`|4.1.0| |6.0.0| | |`rocsparse_gather`|4.1.0| | | | | |`cusparseRot`|11.0|12.2| |`hipsparseRot`|4.1.0| | | | |`rocsparse_rot`|4.1.0| | | | | -|`cusparseSDDMM`|11.2| | |`hipsparseSDDMM`|4.3.0| | | | |`rocsparse_sddmm`|4.3.0| | | | | -|`cusparseSDDMM_bufferSize`|11.2| | |`hipsparseSDDMM_bufferSize`|4.3.0| | | | |`rocsparse_sddmm_buffer_size`|4.3.0| | | | | -|`cusparseSDDMM_preprocess`|11.2| | |`hipsparseSDDMM_preprocess`|4.3.0| | | | |`rocsparse_sddmm_preprocess`|4.3.0| | | | | -|`cusparseScatter`|11.0| | |`hipsparseScatter`|4.1.0| | | | |`rocsparse_scatter`|4.1.0| | | | | -|`cusparseSpGEMM_compute`|11.0| | |`hipsparseSpGEMM_compute`|4.1.0| | | | | | | | | | | -|`cusparseSpGEMM_copy`|11.0| | |`hipsparseSpGEMM_copy`|4.1.0| | | | | | | | | | | +|`cusparseSDDMM`|11.2| | |`hipsparseSDDMM`|4.3.0| |6.0.0| | |`rocsparse_sddmm`|4.3.0| | | | | +|`cusparseSDDMM_bufferSize`|11.2| | |`hipsparseSDDMM_bufferSize`|4.3.0| |6.0.0| | |`rocsparse_sddmm_buffer_size`|4.3.0| | | | | +|`cusparseSDDMM_preprocess`|11.2| | |`hipsparseSDDMM_preprocess`|4.3.0| |6.0.0| | |`rocsparse_sddmm_preprocess`|4.3.0| | | | | +|`cusparseScatter`|11.0| | |`hipsparseScatter`|4.1.0| |6.0.0| | |`rocsparse_scatter`|4.1.0| | | | | +|`cusparseSpGEMM_compute`|11.0| | |`hipsparseSpGEMM_compute`|4.1.0| |6.0.0| | | | | | | | | +|`cusparseSpGEMM_copy`|11.0| | |`hipsparseSpGEMM_copy`|4.1.0| |6.0.0| | | | | | | | | |`cusparseSpGEMM_createDescr`|11.0| | |`hipsparseSpGEMM_createDescr`|4.1.0| | | | | | | | | | | |`cusparseSpGEMM_destroyDescr`|11.0| | |`hipsparseSpGEMM_destroyDescr`|4.1.0| | | | | | | | | | | |`cusparseSpGEMM_estimateMemory`|12.0| | | | | | | | | | | | | | | |`cusparseSpGEMM_getNumProducts`|12.0| | | | | | | | | | | | | | | -|`cusparseSpGEMM_workEstimation`|11.0| | |`hipsparseSpGEMM_workEstimation`|4.1.0| | | | | | | | | | | -|`cusparseSpGEMMreuse_compute`|11.3| | |`hipsparseSpGEMMreuse_compute`|5.1.0| | | | | | | | | | | -|`cusparseSpGEMMreuse_copy`|11.3| | |`hipsparseSpGEMMreuse_copy`|5.1.0| | | | | | | | | | | -|`cusparseSpGEMMreuse_nnz`|11.3| | |`hipsparseSpGEMMreuse_nnz`|5.1.0| | | | | | | | | | | -|`cusparseSpGEMMreuse_workEstimation`|11.3| | |`hipsparseSpGEMMreuse_workEstimation`|5.1.0| | | | | | | | | | | -|`cusparseSpMM`|10.1| | |`hipsparseSpMM`|4.2.0| | | | | | | | | | | +|`cusparseSpGEMM_workEstimation`|11.0| | |`hipsparseSpGEMM_workEstimation`|4.1.0| |6.0.0| | | | | | | | | +|`cusparseSpGEMMreuse_compute`|11.3| | |`hipsparseSpGEMMreuse_compute`|5.1.0| |6.0.0| | | | | | | | | +|`cusparseSpGEMMreuse_copy`|11.3| | |`hipsparseSpGEMMreuse_copy`|5.1.0| |6.0.0| | | | | | | | | +|`cusparseSpGEMMreuse_nnz`|11.3| | |`hipsparseSpGEMMreuse_nnz`|5.1.0| |6.0.0| | | | | | | | | +|`cusparseSpGEMMreuse_workEstimation`|11.3| | |`hipsparseSpGEMMreuse_workEstimation`|5.1.0| |6.0.0| | | | | | | | | +|`cusparseSpMM`|10.1| | |`hipsparseSpMM`|4.2.0| |6.0.0| | | | | | | | | |`cusparseSpMMOp`|11.5| | | | | | | | | | | | | | | |`cusparseSpMMOp_createPlan`|11.5| | | | | | | | | | | | | | | |`cusparseSpMMOp_destroyPlan`|11.5| | | | | | | | | | | | | | | -|`cusparseSpMM_bufferSize`|10.1| | |`hipsparseSpMM_bufferSize`|4.2.0| | | | | | | | | | | -|`cusparseSpMM_preprocess`|11.2| | |`hipsparseSpMM_preprocess`|4.5.0| | | | | | | | | | | -|`cusparseSpMV`|10.2| | |`hipsparseSpMV`|4.1.0| | | | |`rocsparse_spmv`|4.1.0| | | | | -|`cusparseSpMV_bufferSize`|10.2| | |`hipsparseSpMV_bufferSize`|4.1.0| | | | | | | | | | | -|`cusparseSpMatGetAttribute`|11.3| | |`hipsparseSpMatGetAttribute`|4.5.0| | | | |`rocsparse_spmat_get_attribute`|4.5.0| | | | | -|`cusparseSpMatGetFormat`|10.1| | |`hipsparseSpMatGetFormat`|4.1.0| | | | |`rocsparse_spmat_get_format`|4.1.0| | | | | -|`cusparseSpMatGetIndexBase`|10.1| | |`hipsparseSpMatGetIndexBase`|4.1.0| | | | |`rocsparse_spmat_get_index_base`|4.1.0| | | | | +|`cusparseSpMM_bufferSize`|10.1| | |`hipsparseSpMM_bufferSize`|4.2.0| |6.0.0| | | | | | | | | +|`cusparseSpMM_preprocess`|11.2| | |`hipsparseSpMM_preprocess`|4.5.0| |6.0.0| | | | | | | | | +|`cusparseSpMV`|10.2| | |`hipsparseSpMV`|4.1.0| |6.0.0| | |`rocsparse_spmv`|4.1.0| | | | | +|`cusparseSpMV_bufferSize`|10.2| | |`hipsparseSpMV_bufferSize`|4.1.0| |6.0.0| | | | | | | | | +|`cusparseSpMatGetAttribute`|11.3| | |`hipsparseSpMatGetAttribute`|4.5.0| |6.0.0| | |`rocsparse_spmat_get_attribute`|4.5.0| | | | | +|`cusparseSpMatGetFormat`|10.1| | |`hipsparseSpMatGetFormat`|4.1.0| |6.0.0| | |`rocsparse_spmat_get_format`|4.1.0| | | | | +|`cusparseSpMatGetIndexBase`|10.1| | |`hipsparseSpMatGetIndexBase`|4.1.0| |6.0.0| | |`rocsparse_spmat_get_index_base`|4.1.0| | | | | |`cusparseSpMatGetNumBatches`|10.1| |10.2| | | | | | | | | | | | | -|`cusparseSpMatGetSize`|11.0| | |`hipsparseSpMatGetSize`|4.1.0| | | | |`rocsparse_spmat_get_size`|4.1.0| | | | | -|`cusparseSpMatGetStridedBatch`|10.2| | |`hipsparseSpMatGetStridedBatch`|5.2.0| | | | |`rocsparse_spmat_get_strided_batch`|5.2.0| | | | | +|`cusparseSpMatGetSize`|11.0| | |`hipsparseSpMatGetSize`|4.1.0| |6.0.0| | |`rocsparse_spmat_get_size`|4.1.0| | | | | +|`cusparseSpMatGetStridedBatch`|10.2| | |`hipsparseSpMatGetStridedBatch`|5.2.0| |6.0.0| | |`rocsparse_spmat_get_strided_batch`|5.2.0| | | | | |`cusparseSpMatGetValues`|10.2| | |`hipsparseSpMatGetValues`|4.1.0| | | | |`rocsparse_spmat_get_values`|4.1.0| | | | | |`cusparseSpMatSetAttribute`|11.3| | |`hipsparseSpMatSetAttribute`|4.5.0| | | | |`rocsparse_spmat_set_attribute`|4.5.0| | | | | |`cusparseSpMatSetNumBatches`|10.1| |10.2| | | | | | | | | | | | | |`cusparseSpMatSetStridedBatch`|10.2| |12.0|`hipsparseSpMatSetStridedBatch`|5.2.0| | | | |`rocsparse_spmat_set_strided_batch`|5.2.0| | | | | |`cusparseSpMatSetValues`|10.2| | |`hipsparseSpMatSetValues`|4.1.0| | | | |`rocsparse_spmat_set_values`|4.1.0| | | | | -|`cusparseSpSM_analysis`|11.3| | |`hipsparseSpSM_analysis`|4.5.0| | | | | | | | | | | -|`cusparseSpSM_bufferSize`|11.3| | |`hipsparseSpSM_bufferSize`|4.5.0| | | | | | | | | | | +|`cusparseSpSM_analysis`|11.3| | |`hipsparseSpSM_analysis`|4.5.0| |6.0.0| | | | | | | | | +|`cusparseSpSM_bufferSize`|11.3| | |`hipsparseSpSM_bufferSize`|4.5.0| |6.0.0| | | | | | | | | |`cusparseSpSM_createDescr`|11.3| | |`hipsparseSpSM_createDescr`|4.5.0| | | | | | | | | | | |`cusparseSpSM_destroyDescr`|11.3| | |`hipsparseSpSM_destroyDescr`|4.5.0| | | | | | | | | | | -|`cusparseSpSM_solve`|11.3| | |`hipsparseSpSM_solve`|4.5.0| | | | | | | | | | | -|`cusparseSpSV_analysis`|11.3| | |`hipsparseSpSV_analysis`|4.5.0| | | | | | | | | | | -|`cusparseSpSV_bufferSize`|11.3| | |`hipsparseSpSV_bufferSize`|4.5.0| | | | | | | | | | | +|`cusparseSpSM_solve`|11.3| | |`hipsparseSpSM_solve`|4.5.0| |6.0.0| | | | | | | | | +|`cusparseSpSV_analysis`|11.3| | |`hipsparseSpSV_analysis`|4.5.0| |6.0.0| | | | | | | | | +|`cusparseSpSV_bufferSize`|11.3| | |`hipsparseSpSV_bufferSize`|4.5.0| |6.0.0| | | | | | | | | |`cusparseSpSV_createDescr`|11.3| | |`hipsparseSpSV_createDescr`|4.5.0| | | | | | | | | | | |`cusparseSpSV_destroyDescr`|11.3| | |`hipsparseSpSV_destroyDescr`|4.5.0| | | | | | | | | | | -|`cusparseSpSV_solve`|11.3| | |`hipsparseSpSV_solve`|4.5.0| | | | | | | | | | | +|`cusparseSpSV_solve`|11.3| | |`hipsparseSpSV_solve`|4.5.0| |6.0.0| | | | | | | | | |`cusparseSpSV_updateMatrix`|12.1| | | | | | | | | | | | | | | -|`cusparseSpVV`|10.2| | |`hipsparseSpVV`|4.1.0| | | | | | | | | | | -|`cusparseSpVV_bufferSize`|10.2| | |`hipsparseSpVV_bufferSize`|4.1.0| | | | | | | | | | | +|`cusparseSpVV`|10.2| | |`hipsparseSpVV`|4.1.0| |6.0.0| | | | | | | | | +|`cusparseSpVV_bufferSize`|10.2| | |`hipsparseSpVV_bufferSize`|4.1.0| |6.0.0| | | | | | | | | |`cusparseSpVecGet`|10.2| | |`hipsparseSpVecGet`|4.1.0| | | | |`rocsparse_spvec_get`|4.1.0| | | | | -|`cusparseSpVecGetIndexBase`|10.2| | |`hipsparseSpVecGetIndexBase`|4.1.0| | | | |`rocsparse_spvec_get_index_base`|4.1.0| | | | | +|`cusparseSpVecGetIndexBase`|10.2| | |`hipsparseSpVecGetIndexBase`|4.1.0| |6.0.0| | |`rocsparse_spvec_get_index_base`|4.1.0| | | | | |`cusparseSpVecGetValues`|10.2| | |`hipsparseSpVecGetValues`|4.1.0| | | | |`rocsparse_spvec_get_values`|4.1.0| | | | | |`cusparseSpVecSetValues`|10.2| | |`hipsparseSpVecSetValues`|4.1.0| | | | |`rocsparse_spvec_set_values`|4.1.0| | | | | -|`cusparseSparseToDense`|11.1| | |`hipsparseSparseToDense`|4.2.0| | | | | | | | | | | -|`cusparseSparseToDense_bufferSize`|11.1| | |`hipsparseSparseToDense_bufferSize`|4.2.0| | | | | | | | | | | +|`cusparseSparseToDense`|11.1| | |`hipsparseSparseToDense`|4.2.0| |6.0.0| | | | | | | | | +|`cusparseSparseToDense_bufferSize`|11.1| | |`hipsparseSparseToDense_bufferSize`|4.2.0| |6.0.0| | | | | | | | | \*A - Added; D - Deprecated; C - Changed; R - Removed; E - Experimental \ No newline at end of file diff --git a/src/CUDA2HIP.h b/src/CUDA2HIP.h index 24361fbd..d034818c 100644 --- a/src/CUDA2HIP.h +++ b/src/CUDA2HIP.h @@ -140,6 +140,7 @@ extern const std::map HIP_FFT_TYPE_NAME_VER_MAP extern const std::map HIP_FFT_FUNCTION_VER_MAP; extern const std::map HIP_SPARSE_TYPE_NAME_VER_MAP; extern const std::map HIP_SPARSE_FUNCTION_VER_MAP; +extern const std::map HIP_SPARSE_FUNCTION_CHANGED_VER_MAP; extern const std::map HIP_CAFFE2_TYPE_NAME_VER_MAP; extern const std::map HIP_CAFFE2_FUNCTION_VER_MAP; extern const std::map HIP_DEVICE_TYPE_NAME_VER_MAP; diff --git a/src/CUDA2HIP_Doc.cpp b/src/CUDA2HIP_Doc.cpp index cacb1524..25ff3a3a 100644 --- a/src/CUDA2HIP_Doc.cpp +++ b/src/CUDA2HIP_Doc.cpp @@ -663,6 +663,7 @@ namespace doc { const typeMap &getTypes() const override { return CUDA_SPARSE_TYPE_NAME_MAP; } const versionMap &getFunctionVersions() const override { return CUDA_SPARSE_FUNCTION_VER_MAP; } const hipVersionMap &getHipFunctionVersions() const override { return HIP_SPARSE_FUNCTION_VER_MAP; } + const hipChangedVersionMap& getHipChangedFunctionVersions() const override { return HIP_SPARSE_FUNCTION_CHANGED_VER_MAP; } const versionMap &getTypeVersions() const override { return CUDA_SPARSE_TYPE_NAME_VER_MAP; } const hipVersionMap &getHipTypeVersions() const override { return HIP_SPARSE_TYPE_NAME_VER_MAP; } const string &getName() const override { return sCUSPARSE; } diff --git a/src/CUDA2HIP_SPARSE_API_functions.cpp b/src/CUDA2HIP_SPARSE_API_functions.cpp index 038cfc0a..65bcf4a5 100644 --- a/src/CUDA2HIP_SPARSE_API_functions.cpp +++ b/src/CUDA2HIP_SPARSE_API_functions.cpp @@ -2275,6 +2275,51 @@ const std::map HIP_SPARSE_FUNCTION_VER_MAP { {"rocsparse_scsrgeam", {HIP_3050, HIP_0, HIP_0 }}, }; +const std::map HIP_SPARSE_FUNCTION_CHANGED_VER_MAP { + {"hipsparseSpVecGetIndexBase", {HIP_6000}}, + {"hipsparseDestroySpVec", {HIP_6000}}, + {"hipsparseDestroyDnVec", {HIP_6000}}, + {"hipsparseSpMatGetAttribute", {HIP_6000}}, + {"hipsparseSpMatGetFormat", {HIP_6000}}, + {"hipsparseSpMatGetSize", {HIP_6000}}, + {"hipsparseSpMatGetIndexBase", {HIP_6000}}, + {"hipsparseSpMatGetStridedBatch", {HIP_6000}}, + {"hipsparseDestroySpMat", {HIP_6000}}, + {"hipsparseSpGEMM_compute", {HIP_6000}}, + {"hipsparseSpGEMM_copy", {HIP_6000}}, + {"hipsparseSpGEMM_workEstimation", {HIP_6000}}, + {"hipsparseSpGEMMreuse_compute", {HIP_6000}}, + {"hipsparseSpGEMMreuse_copy", {HIP_6000}}, + {"hipsparseSpGEMMreuse_nnz", {HIP_6000}}, + {"hipsparseSpGEMMreuse_workEstimation", {HIP_6000}}, + {"hipsparseDnMatGetStridedBatch", {HIP_6000}}, + {"hipsparseDestroyDnMat", {HIP_6000}}, + {"hipsparseSpMM", {HIP_6000}}, + {"hipsparseSpMM_bufferSize", {HIP_6000}}, + {"hipsparseSpMM_preprocess", {HIP_6000}}, + {"hipsparseSpMV", {HIP_6000}}, + {"hipsparseSpMV_bufferSize", {HIP_6000}}, + {"hipsparseSpSM_analysis", {HIP_6000}}, + {"hipsparseSpSM_bufferSize", {HIP_6000}}, + {"hipsparseSpSM_solve", {HIP_6000}}, + {"hipsparseSpSV_analysis", {HIP_6000}}, + {"hipsparseSpSV_bufferSize", {HIP_6000}}, + {"hipsparseSpSV_solve", {HIP_6000}}, + {"hipsparseSpVV", {HIP_6000}}, + {"hipsparseSpVV_bufferSize", {HIP_6000}}, + {"hipsparseSDDMM", {HIP_6000}}, + {"hipsparseSDDMM_bufferSize", {HIP_6000}}, + {"hipsparseSDDMM_preprocess", {HIP_6000}}, + {"hipsparseAxpby", {HIP_6000}}, + {"hipsparseGather", {HIP_6000}}, + {"hipsparseScatter", {HIP_6000}}, + {"hipsparseSparseToDense", {HIP_6000}}, + {"hipsparseSparseToDense_bufferSize", {HIP_6000}}, + {"hipsparseDenseToSparse_analysis", {HIP_6000}}, + {"hipsparseDenseToSparse_bufferSize", {HIP_6000}}, + {"hipsparseDenseToSparse_convert", {HIP_6000}}, +}; + const std::map CUDA_SPARSE_API_SECTION_MAP { {4, "CUSPARSE Types References"}, {5, "CUSPARSE Management Function Reference"},