Skip to content

Commit

Permalink
[HIPIFY][BLAS][6.2.0] cuBLAS support - Step 5 - 64-bit functions
Browse files Browse the repository at this point in the history
+ Updated synthetic tests, the regenerated `hipify-perl`, and `BLAS` `CUDA2HIP` documentation
  • Loading branch information
emankov committed Jun 27, 2024
1 parent 5f0ef24 commit bd4b75c
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 56 deletions.
24 changes: 12 additions & 12 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -3813,9 +3813,13 @@ sub simpleSubstitutions {
subst("cublasCgemv_v2", "hipblasCgemv_v2", "library");
subst("cublasCgeqrfBatched", "hipblasCgeqrfBatched_v2", "library");
subst("cublasCgerc", "hipblasCgerc_v2", "library");
subst("cublasCgerc_64", "hipblasCgerc_v2_64", "library");
subst("cublasCgerc_v2", "hipblasCgerc_v2", "library");
subst("cublasCgerc_v2_64", "hipblasCgerc_v2_64", "library");
subst("cublasCgeru", "hipblasCgeru_v2", "library");
subst("cublasCgeru_64", "hipblasCgeru_v2_64", "library");
subst("cublasCgeru_v2", "hipblasCgeru_v2", "library");
subst("cublasCgeru_v2_64", "hipblasCgeru_v2_64", "library");
subst("cublasCgetrfBatched", "hipblasCgetrfBatched_v2", "library");
subst("cublasCgetriBatched", "hipblasCgetriBatched_v2", "library");
subst("cublasCgetrsBatched", "hipblasCgetrsBatched_v2", "library");
Expand Down Expand Up @@ -3928,7 +3932,9 @@ sub simpleSubstitutions {
subst("cublasDgemv_v2", "hipblasDgemv", "library");
subst("cublasDgeqrfBatched", "hipblasDgeqrfBatched", "library");
subst("cublasDger", "hipblasDger", "library");
subst("cublasDger_64", "hipblasDger_64", "library");
subst("cublasDger_v2", "hipblasDger", "library");
subst("cublasDger_v2_64", "hipblasDger_64", "library");
subst("cublasDgetrfBatched", "hipblasDgetrfBatched", "library");
subst("cublasDgetriBatched", "hipblasDgetriBatched", "library");
subst("cublasDgetrsBatched", "hipblasDgetrsBatched", "library");
Expand Down Expand Up @@ -4126,7 +4132,9 @@ sub simpleSubstitutions {
subst("cublasSgemv_v2", "hipblasSgemv", "library");
subst("cublasSgeqrfBatched", "hipblasSgeqrfBatched", "library");
subst("cublasSger", "hipblasSger", "library");
subst("cublasSger_64", "hipblasSger_64", "library");
subst("cublasSger_v2", "hipblasSger", "library");
subst("cublasSger_v2_64", "hipblasSger_64", "library");
subst("cublasSgetrfBatched", "hipblasSgetrfBatched", "library");
subst("cublasSgetriBatched", "hipblasSgetriBatched", "library");
subst("cublasSgetrsBatched", "hipblasSgetrsBatched", "library");
Expand Down Expand Up @@ -4232,9 +4240,13 @@ sub simpleSubstitutions {
subst("cublasZgemv_v2", "hipblasZgemv_v2", "library");
subst("cublasZgeqrfBatched", "hipblasZgeqrfBatched_v2", "library");
subst("cublasZgerc", "hipblasZgerc_v2", "library");
subst("cublasZgerc_64", "hipblasZgerc_v2_64", "library");
subst("cublasZgerc_v2", "hipblasZgerc_v2", "library");
subst("cublasZgerc_v2_64", "hipblasZgerc_v2_64", "library");
subst("cublasZgeru", "hipblasZgeru_v2", "library");
subst("cublasZgeru_64", "hipblasZgeru_v2_64", "library");
subst("cublasZgeru_v2", "hipblasZgeru_v2", "library");
subst("cublasZgeru_v2_64", "hipblasZgeru_v2_64", "library");
subst("cublasZgetrfBatched", "hipblasZgetrfBatched_v2", "library");
subst("cublasZgetriBatched", "hipblasZgetriBatched_v2", "library");
subst("cublasZgetrsBatched", "hipblasZgetrsBatched_v2", "library");
Expand Down Expand Up @@ -11397,10 +11409,6 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasZhemm_64",
"cublasZhbmv_v2_64",
"cublasZhbmv_64",
"cublasZgeru_v2_64",
"cublasZgeru_64",
"cublasZgerc_v2_64",
"cublasZgerc_64",
"cublasZgemm_v2_64",
"cublasZgemm_64",
"cublasZgemmStridedBatched_64",
Expand Down Expand Up @@ -11463,8 +11471,6 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasSsbmv_64",
"cublasSmatinvBatched",
"cublasShutdown",
"cublasSger_v2_64",
"cublasSger_64",
"cublasSgemm_v2_64",
"cublasSgemm_64",
"cublasSgemmStridedBatched_64",
Expand Down Expand Up @@ -11606,8 +11612,6 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasDotcEx_64",
"cublasDotEx_64",
"cublasDmatinvBatched",
"cublasDger_v2_64",
"cublasDger_64",
"cublasDgemm_v2_64",
"cublasDgemm_64",
"cublasDgemmStridedBatched_64",
Expand Down Expand Up @@ -11681,10 +11685,6 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasChemm_64",
"cublasChbmv_v2_64",
"cublasChbmv_64",
"cublasCgeru_v2_64",
"cublasCgeru_64",
"cublasCgerc_v2_64",
"cublasCgerc_64",
"cublasCgemm_v2_64",
"cublasCgemm_64",
"cublasCgemmStridedBatched_64",
Expand Down
24 changes: 12 additions & 12 deletions docs/tables/CUBLAS_API_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -731,13 +731,13 @@
|`cublasCgemv_v2`| | | | |`hipblasCgemv_v2`|6.0.0| | | | |
|`cublasCgemv_v2_64`|12.0| | | |`hipblasCgemv_v2_64`|6.2.0| | | |6.2.0|
|`cublasCgerc`| | | | |`hipblasCgerc_v2`|6.0.0| | | | |
|`cublasCgerc_64`|12.0| | | | | | | | | |
|`cublasCgerc_64`|12.0| | | |`hipblasCgerc_v2_64`|6.2.0| | | |6.2.0|
|`cublasCgerc_v2`| | | | |`hipblasCgerc_v2`|6.0.0| | | | |
|`cublasCgerc_v2_64`|12.0| | | | | | | | | |
|`cublasCgerc_v2_64`|12.0| | | |`hipblasCgerc_v2_64`|6.2.0| | | |6.2.0|
|`cublasCgeru`| | | | |`hipblasCgeru_v2`|6.0.0| | | | |
|`cublasCgeru_64`|12.0| | | | | | | | | |
|`cublasCgeru_64`|12.0| | | |`hipblasCgeru_v2_64`|6.2.0| | | |6.2.0|
|`cublasCgeru_v2`| | | | |`hipblasCgeru_v2`|6.0.0| | | | |
|`cublasCgeru_v2_64`|12.0| | | | | | | | | |
|`cublasCgeru_v2_64`|12.0| | | |`hipblasCgeru_v2_64`|6.2.0| | | |6.2.0|
|`cublasChbmv`| | | | |`hipblasChbmv_v2`|6.0.0| | | | |
|`cublasChbmv_64`|12.0| | | | | | | | | |
|`cublasChbmv_v2`| | | | |`hipblasChbmv_v2`|6.0.0| | | | |
Expand Down Expand Up @@ -811,9 +811,9 @@
|`cublasDgemv_v2`| | | | |`hipblasDgemv`|1.8.2| | | | |
|`cublasDgemv_v2_64`|12.0| | | |`hipblasDgemv_64`|6.2.0| | | |6.2.0|
|`cublasDger`| | | | |`hipblasDger`|1.8.2| | | | |
|`cublasDger_64`|12.0| | | | | | | | | |
|`cublasDger_64`|12.0| | | |`hipblasDger_64`|6.2.0| | | |6.2.0|
|`cublasDger_v2`| | | | |`hipblasDger`|1.8.2| | | | |
|`cublasDger_v2_64`|12.0| | | | | | | | | |
|`cublasDger_v2_64`|12.0| | | |`hipblasDger_64`|6.2.0| | | |6.2.0|
|`cublasDsbmv`| | | | |`hipblasDsbmv`|3.5.0| | | | |
|`cublasDsbmv_64`|12.0| | | | | | | | | |
|`cublasDsbmv_v2`| | | | |`hipblasDsbmv`|3.5.0| | | | |
Expand Down Expand Up @@ -875,9 +875,9 @@
|`cublasSgemv_v2`| | | | |`hipblasSgemv`|1.8.2| | | | |
|`cublasSgemv_v2_64`|12.0| | | |`hipblasSgemv_64`|6.2.0| | | |6.2.0|
|`cublasSger`| | | | |`hipblasSger`|1.8.2| | | | |
|`cublasSger_64`|12.0| | | | | | | | | |
|`cublasSger_64`|12.0| | | |`hipblasSger_64`|6.2.0| | | |6.2.0|
|`cublasSger_v2`| | | | |`hipblasSger`|1.8.2| | | | |
|`cublasSger_v2_64`|12.0| | | | | | | | | |
|`cublasSger_v2_64`|12.0| | | |`hipblasSger_64`|6.2.0| | | |6.2.0|
|`cublasSsbmv`| | | | |`hipblasSsbmv`|3.5.0| | | | |
|`cublasSsbmv_64`|12.0| | | | | | | | | |
|`cublasSsbmv_v2`| | | | |`hipblasSsbmv`|3.5.0| | | | |
Expand Down Expand Up @@ -939,13 +939,13 @@
|`cublasZgemv_v2`| | | | |`hipblasZgemv_v2`|6.0.0| | | | |
|`cublasZgemv_v2_64`|12.0| | | |`hipblasZgemv_v2_64`|6.2.0| | | |6.2.0|
|`cublasZgerc`| | | | |`hipblasZgerc_v2`|6.0.0| | | | |
|`cublasZgerc_64`|12.0| | | | | | | | | |
|`cublasZgerc_64`|12.0| | | |`hipblasZgerc_v2_64`|6.2.0| | | |6.2.0|
|`cublasZgerc_v2`| | | | |`hipblasZgerc_v2`|6.0.0| | | | |
|`cublasZgerc_v2_64`|12.0| | | | | | | | | |
|`cublasZgerc_v2_64`|12.0| | | |`hipblasZgerc_v2_64`|6.2.0| | | |6.2.0|
|`cublasZgeru`| | | | |`hipblasZgeru_v2`|6.0.0| | | | |
|`cublasZgeru_64`|12.0| | | | | | | | | |
|`cublasZgeru_64`|12.0| | | |`hipblasZgeru_v2_64`|6.2.0| | | |6.2.0|
|`cublasZgeru_v2`| | | | |`hipblasZgeru_v2`|6.0.0| | | | |
|`cublasZgeru_v2_64`|12.0| | | | | | | | | |
|`cublasZgeru_v2_64`|12.0| | | |`hipblasZgeru_v2_64`|6.2.0| | | |6.2.0|
|`cublasZhbmv`| | | | |`hipblasZhbmv_v2`|6.0.0| | | | |
|`cublasZhbmv_64`|12.0| | | | | | | | | |
|`cublasZhbmv_v2`| | | | |`hipblasZhbmv_v2`|6.0.0| | | | |
Expand Down
24 changes: 12 additions & 12 deletions docs/tables/CUBLAS_API_supported_by_HIP_and_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -731,13 +731,13 @@
|`cublasCgemv_v2`| | | | |`hipblasCgemv_v2`|6.0.0| | | | |`rocblas_cgemv`|1.5.0| | | | |
|`cublasCgemv_v2_64`|12.0| | | |`hipblasCgemv_v2_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasCgerc`| | | | |`hipblasCgerc_v2`|6.0.0| | | | |`rocblas_cgerc`|3.5.0| | | | |
|`cublasCgerc_64`|12.0| | | | | | | | | | | | | | | |
|`cublasCgerc_64`|12.0| | | |`hipblasCgerc_v2_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasCgerc_v2`| | | | |`hipblasCgerc_v2`|6.0.0| | | | |`rocblas_cgerc`|3.5.0| | | | |
|`cublasCgerc_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasCgerc_v2_64`|12.0| | | |`hipblasCgerc_v2_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasCgeru`| | | | |`hipblasCgeru_v2`|6.0.0| | | | |`rocblas_cgeru`|3.5.0| | | | |
|`cublasCgeru_64`|12.0| | | | | | | | | | | | | | | |
|`cublasCgeru_64`|12.0| | | |`hipblasCgeru_v2_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasCgeru_v2`| | | | |`hipblasCgeru_v2`|6.0.0| | | | |`rocblas_cgeru`|3.5.0| | | | |
|`cublasCgeru_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasCgeru_v2_64`|12.0| | | |`hipblasCgeru_v2_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasChbmv`| | | | |`hipblasChbmv_v2`|6.0.0| | | | |`rocblas_chbmv`|3.5.0| | | | |
|`cublasChbmv_64`|12.0| | | | | | | | | | | | | | | |
|`cublasChbmv_v2`| | | | |`hipblasChbmv_v2`|6.0.0| | | | |`rocblas_chbmv`|3.5.0| | | | |
Expand Down Expand Up @@ -811,9 +811,9 @@
|`cublasDgemv_v2`| | | | |`hipblasDgemv`|1.8.2| | | | |`rocblas_dgemv`|1.5.0| | | | |
|`cublasDgemv_v2_64`|12.0| | | |`hipblasDgemv_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasDger`| | | | |`hipblasDger`|1.8.2| | | | |`rocblas_dger`|1.5.0| | | | |
|`cublasDger_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDger_64`|12.0| | | |`hipblasDger_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasDger_v2`| | | | |`hipblasDger`|1.8.2| | | | |`rocblas_dger`|1.5.0| | | | |
|`cublasDger_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDger_v2_64`|12.0| | | |`hipblasDger_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasDsbmv`| | | | |`hipblasDsbmv`|3.5.0| | | | |`rocblas_dsbmv`|3.5.0| | | | |
|`cublasDsbmv_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDsbmv_v2`| | | | |`hipblasDsbmv`|3.5.0| | | | |`rocblas_dsbmv`|3.5.0| | | | |
Expand Down Expand Up @@ -875,9 +875,9 @@
|`cublasSgemv_v2`| | | | |`hipblasSgemv`|1.8.2| | | | |`rocblas_sgemv`|1.5.0| | | | |
|`cublasSgemv_v2_64`|12.0| | | |`hipblasSgemv_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasSger`| | | | |`hipblasSger`|1.8.2| | | | |`rocblas_sger`|1.5.0| | | | |
|`cublasSger_64`|12.0| | | | | | | | | | | | | | | |
|`cublasSger_64`|12.0| | | |`hipblasSger_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasSger_v2`| | | | |`hipblasSger`|1.8.2| | | | |`rocblas_sger`|1.5.0| | | | |
|`cublasSger_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasSger_v2_64`|12.0| | | |`hipblasSger_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasSsbmv`| | | | |`hipblasSsbmv`|3.5.0| | | | |`rocblas_ssbmv`|3.5.0| | | | |
|`cublasSsbmv_64`|12.0| | | | | | | | | | | | | | | |
|`cublasSsbmv_v2`| | | | |`hipblasSsbmv`|3.5.0| | | | |`rocblas_ssbmv`|3.5.0| | | | |
Expand Down Expand Up @@ -939,13 +939,13 @@
|`cublasZgemv_v2`| | | | |`hipblasZgemv_v2`|6.0.0| | | | |`rocblas_zgemv`|1.5.0| | | | |
|`cublasZgemv_v2_64`|12.0| | | |`hipblasZgemv_v2_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasZgerc`| | | | |`hipblasZgerc_v2`|6.0.0| | | | |`rocblas_zgerc`|3.5.0| | | | |
|`cublasZgerc_64`|12.0| | | | | | | | | | | | | | | |
|`cublasZgerc_64`|12.0| | | |`hipblasZgerc_v2_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasZgerc_v2`| | | | |`hipblasZgerc_v2`|6.0.0| | | | |`rocblas_zgerc`|3.5.0| | | | |
|`cublasZgerc_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasZgerc_v2_64`|12.0| | | |`hipblasZgerc_v2_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasZgeru`| | | | |`hipblasZgeru_v2`|6.0.0| | | | |`rocblas_zgeru`|3.5.0| | | | |
|`cublasZgeru_64`|12.0| | | | | | | | | | | | | | | |
|`cublasZgeru_64`|12.0| | | |`hipblasZgeru_v2_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasZgeru_v2`| | | | |`hipblasZgeru_v2`|6.0.0| | | | |`rocblas_zgeru`|3.5.0| | | | |
|`cublasZgeru_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasZgeru_v2_64`|12.0| | | |`hipblasZgeru_v2_64`|6.2.0| | | |6.2.0| | | | | | |
|`cublasZhbmv`| | | | |`hipblasZhbmv_v2`|6.0.0| | | | |`rocblas_zhbmv`|3.5.0| | | | |
|`cublasZhbmv_64`|12.0| | | | | | | | | | | | | | | |
|`cublasZhbmv_v2`| | | | |`hipblasZhbmv_v2`|6.0.0| | | | |`rocblas_zhbmv`|3.5.0| | | | |
Expand Down
Loading

0 comments on commit bd4b75c

Please sign in to comment.