Skip to content

Commit

Permalink
Merge pull request ROCm#1319 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][BLAS][6.1][sync] Sync with `hipBLAS` and `rocBLAS` - Step 4 - ASUM 64bit
  • Loading branch information
emankov authored Feb 1, 2024
2 parents d0901f7 + 0461077 commit 514f53e
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 48 deletions.
32 changes: 16 additions & 16 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -1871,7 +1871,9 @@ sub rocSubstitutions {
subst("cublasCtrsv", "rocblas_ctrsv", "library");
subst("cublasCtrsv_v2", "rocblas_ctrsv", "library");
subst("cublasDasum", "rocblas_dasum", "library");
subst("cublasDasum_64", "rocblas_dasum_64", "library");
subst("cublasDasum_v2", "rocblas_dasum", "library");
subst("cublasDasum_v2_64", "rocblas_dasum_64", "library");
subst("cublasDaxpy", "rocblas_daxpy", "library");
subst("cublasDaxpy_v2", "rocblas_daxpy", "library");
subst("cublasDcopy", "rocblas_dcopy", "library");
Expand Down Expand Up @@ -1947,7 +1949,9 @@ sub rocSubstitutions {
subst("cublasDtrsv", "rocblas_dtrsv", "library");
subst("cublasDtrsv_v2", "rocblas_dtrsv", "library");
subst("cublasDzasum", "rocblas_dzasum", "library");
subst("cublasDzasum_64", "rocblas_dzasum_64", "library");
subst("cublasDzasum_v2", "rocblas_dzasum", "library");
subst("cublasDzasum_v2_64", "rocblas_dzasum_64", "library");
subst("cublasDznrm2", "rocblas_dznrm2", "library");
subst("cublasDznrm2_v2", "rocblas_dznrm2", "library");
subst("cublasGemmBatchedEx", "rocblas_gemm_batched_ex", "library");
Expand Down Expand Up @@ -2007,12 +2011,16 @@ sub rocSubstitutions {
subst("cublasNrm2Ex", "rocblas_nrm2_ex", "library");
subst("cublasRotEx", "rocblas_rot_ex", "library");
subst("cublasSasum", "rocblas_sasum", "library");
subst("cublasSasum_64", "rocblas_sasum_64", "library");
subst("cublasSasum_v2", "rocblas_sasum", "library");
subst("cublasSasum_v2_64", "rocblas_sasum_64", "library");
subst("cublasSaxpy", "rocblas_saxpy", "library");
subst("cublasSaxpy_v2", "rocblas_saxpy", "library");
subst("cublasScalEx", "rocblas_scal_ex", "library");
subst("cublasScasum", "rocblas_scasum", "library");
subst("cublasScasum_64", "rocblas_scasum_64", "library");
subst("cublasScasum_v2", "rocblas_scasum", "library");
subst("cublasScasum_v2_64", "rocblas_scasum_64", "library");
subst("cublasScnrm2", "rocblas_scnrm2", "library");
subst("cublasScnrm2_v2", "rocblas_scnrm2", "library");
subst("cublasScopy", "rocblas_scopy", "library");
Expand Down Expand Up @@ -3810,7 +3818,9 @@ sub simpleSubstitutions {
subst("cublasCtrsv", "hipblasCtrsv_v2", "library");
subst("cublasCtrsv_v2", "hipblasCtrsv_v2", "library");
subst("cublasDasum", "hipblasDasum", "library");
subst("cublasDasum_64", "hipblasDasum_64", "library");
subst("cublasDasum_v2", "hipblasDasum", "library");
subst("cublasDasum_v2_64", "hipblasDasum_64", "library");
subst("cublasDaxpy", "hipblasDaxpy", "library");
subst("cublasDaxpy_v2", "hipblasDaxpy", "library");
subst("cublasDcopy", "hipblasDcopy", "library");
Expand Down Expand Up @@ -3891,7 +3901,9 @@ sub simpleSubstitutions {
subst("cublasDtrsv", "hipblasDtrsv", "library");
subst("cublasDtrsv_v2", "hipblasDtrsv", "library");
subst("cublasDzasum", "hipblasDzasum_v2", "library");
subst("cublasDzasum_64", "hipblasDzasum_v2_64", "library");
subst("cublasDzasum_v2", "hipblasDzasum_v2", "library");
subst("cublasDzasum_v2_64", "hipblasDzasum_v2_64", "library");
subst("cublasDznrm2", "hipblasDznrm2_v2", "library");
subst("cublasDznrm2_v2", "hipblasDznrm2_v2", "library");
subst("cublasGemmBatchedEx", "hipblasGemmBatchedEx_v2", "library");
Expand Down Expand Up @@ -3945,12 +3957,16 @@ sub simpleSubstitutions {
subst("cublasNrm2Ex", "hipblasNrm2Ex_v2", "library");
subst("cublasRotEx", "hipblasRotEx_v2", "library");
subst("cublasSasum", "hipblasSasum", "library");
subst("cublasSasum_64", "hipblasSasum_64", "library");
subst("cublasSasum_v2", "hipblasSasum", "library");
subst("cublasSasum_v2_64", "hipblasSasum_64", "library");
subst("cublasSaxpy", "hipblasSaxpy", "library");
subst("cublasSaxpy_v2", "hipblasSaxpy", "library");
subst("cublasScalEx", "hipblasScalEx_v2", "library");
subst("cublasScasum", "hipblasScasum_v2", "library");
subst("cublasScasum_64", "hipblasScasum_v2_64", "library");
subst("cublasScasum_v2", "hipblasScasum_v2", "library");
subst("cublasScasum_v2_64", "hipblasScasum_v2_64", "library");
subst("cublasScnrm2", "hipblasScnrm2_v2", "library");
subst("cublasScnrm2_v2", "hipblasScnrm2_v2", "library");
subst("cublasScopy", "hipblasScopy", "library");
Expand Down Expand Up @@ -10867,13 +10883,9 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasScopy_64",
"cublasScnrm2_v2_64",
"cublasScnrm2_64",
"cublasScasum_v2_64",
"cublasScasum_64",
"cublasScalEx_64",
"cublasSaxpy_v2_64",
"cublasSaxpy_64",
"cublasSasum_v2_64",
"cublasSasum_64",
"cublasRotmgEx",
"cublasRotmEx_64",
"cublasRotmEx",
Expand Down Expand Up @@ -10918,8 +10930,6 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasFree",
"cublasDznrm2_v2_64",
"cublasDznrm2_64",
"cublasDzasum_v2_64",
"cublasDzasum_64",
"cublasDtrttp",
"cublasDtrsv_v2_64",
"cublasDtrsv_64",
Expand Down Expand Up @@ -10995,8 +11005,6 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasDcopy_64",
"cublasDaxpy_v2_64",
"cublasDaxpy_64",
"cublasDasum_v2_64",
"cublasDasum_64",
"cublasCtrttp",
"cublasCtrsv_v2_64",
"cublasCtrsv_64",
Expand Down Expand Up @@ -11373,13 +11381,9 @@ sub warnRocOnlyUnsupportedFunctions {
"cublasScopy_64",
"cublasScnrm2_v2_64",
"cublasScnrm2_64",
"cublasScasum_v2_64",
"cublasScasum_64",
"cublasScalEx_64",
"cublasSaxpy_v2_64",
"cublasSaxpy_64",
"cublasSasum_v2_64",
"cublasSasum_64",
"cublasRotmgEx",
"cublasRotmEx_64",
"cublasRotmEx",
Expand Down Expand Up @@ -11418,8 +11422,6 @@ sub warnRocOnlyUnsupportedFunctions {
"cublasFree",
"cublasDznrm2_v2_64",
"cublasDznrm2_64",
"cublasDzasum_v2_64",
"cublasDzasum_64",
"cublasDtrttp",
"cublasDtrsv_v2_64",
"cublasDtrsv_64",
Expand Down Expand Up @@ -11500,8 +11502,6 @@ sub warnRocOnlyUnsupportedFunctions {
"cublasDcopy_64",
"cublasDaxpy_v2_64",
"cublasDaxpy_64",
"cublasDasum_v2_64",
"cublasDasum_64",
"cublasCtrttp",
"cublasCtrsv_v2_64",
"cublasCtrsv_64",
Expand Down
16 changes: 8 additions & 8 deletions docs/tables/CUBLAS_API_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@
|`cublasCswap_v2`| | | | |`hipblasCswap_v2`|6.0.0| | | | |
|`cublasCswap_v2_64`|12.0| | | | | | | | | |
|`cublasDasum`| | | | |`hipblasDasum`|1.8.2| | | | |
|`cublasDasum_64`|12.0| | | | | | | | | |
|`cublasDasum_64`|12.0| | | |`hipblasDasum_64`|6.1.0| | | | |
|`cublasDasum_v2`| | | | |`hipblasDasum`|1.8.2| | | | |
|`cublasDasum_v2_64`|12.0| | | | | | | | | |
|`cublasDasum_v2_64`|12.0| | | |`hipblasDasum_64`|6.1.0| | | | |
|`cublasDaxpy`| | | | |`hipblasDaxpy`|1.8.2| | | | |
|`cublasDaxpy_64`|12.0| | | | | | | | | |
|`cublasDaxpy_v2`| | | | |`hipblasDaxpy`|1.8.2| | | | |
Expand Down Expand Up @@ -282,9 +282,9 @@
|`cublasDswap_v2`| | | | |`hipblasDswap`|3.0.0| | | | |
|`cublasDswap_v2_64`|12.0| | | | | | | | | |
|`cublasDzasum`| | | | |`hipblasDzasum_v2`|6.0.0| | | | |
|`cublasDzasum_64`|12.0| | | | | | | | | |
|`cublasDzasum_64`|12.0| | | |`hipblasDzasum_v2_64`|6.1.0| | | | |
|`cublasDzasum_v2`| | | | |`hipblasDzasum_v2`|6.0.0| | | | |
|`cublasDzasum_v2_64`|12.0| | | | | | | | | |
|`cublasDzasum_v2_64`|12.0| | | |`hipblasDzasum_v2_64`|6.1.0| | | | |
|`cublasDznrm2`| | | | |`hipblasDznrm2_v2`|6.0.0| | | | |
|`cublasDznrm2_64`|12.0| | | | | | | | | |
|`cublasDznrm2_v2`| | | | |`hipblasDznrm2_v2`|6.0.0| | | | |
Expand Down Expand Up @@ -324,17 +324,17 @@
|`cublasNrm2Ex`|8.0| | | |`hipblasNrm2Ex_v2`|6.0.0| | | | |
|`cublasNrm2Ex_64`|12.0| | | | | | | | | |
|`cublasSasum`| | | | |`hipblasSasum`|1.8.2| | | | |
|`cublasSasum_64`|12.0| | | | | | | | | |
|`cublasSasum_64`|12.0| | | |`hipblasSasum_64`|6.1.0| | | | |
|`cublasSasum_v2`| | | | |`hipblasSasum`|1.8.2| | | | |
|`cublasSasum_v2_64`|12.0| | | | | | | | | |
|`cublasSasum_v2_64`|12.0| | | |`hipblasSasum_64`|6.1.0| | | | |
|`cublasSaxpy`| | | | |`hipblasSaxpy`|1.8.2| | | | |
|`cublasSaxpy_64`|12.0| | | | | | | | | |
|`cublasSaxpy_v2`| | | | |`hipblasSaxpy`|1.8.2| | | | |
|`cublasSaxpy_v2_64`|12.0| | | | | | | | | |
|`cublasScasum`| | | | |`hipblasScasum_v2`|6.0.0| | | | |
|`cublasScasum_64`|12.0| | | | | | | | | |
|`cublasScasum_64`|12.0| | | |`hipblasScasum_v2_64`|6.1.0| | | | |
|`cublasScasum_v2`| | | | |`hipblasScasum_v2`|6.0.0| | | | |
|`cublasScasum_v2_64`|12.0| | | | | | | | | |
|`cublasScasum_v2_64`|12.0| | | |`hipblasScasum_v2_64`|6.1.0| | | | |
|`cublasScnrm2`| | | | |`hipblasScnrm2_v2`|6.0.0| | | | |
|`cublasScnrm2_64`|12.0| | | | | | | | | |
|`cublasScnrm2_v2`| | | | |`hipblasScnrm2_v2`|6.0.0| | | | |
Expand Down
16 changes: 8 additions & 8 deletions docs/tables/CUBLAS_API_supported_by_HIP_and_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@
|`cublasCswap_v2`| | | | |`hipblasCswap_v2`|6.0.0| | | | |`rocblas_cswap`|1.5.0| | | | |
|`cublasCswap_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDasum`| | | | |`hipblasDasum`|1.8.2| | | | |`rocblas_dasum`|1.5.0| | | | |
|`cublasDasum_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDasum_64`|12.0| | | |`hipblasDasum_64`|6.1.0| | | | |`rocblas_dasum_64`|6.1.0| | | | |
|`cublasDasum_v2`| | | | |`hipblasDasum`|1.8.2| | | | |`rocblas_dasum`|1.5.0| | | | |
|`cublasDasum_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDasum_v2_64`|12.0| | | |`hipblasDasum_64`|6.1.0| | | | |`rocblas_dasum_64`|6.1.0| | | | |
|`cublasDaxpy`| | | | |`hipblasDaxpy`|1.8.2| | | | |`rocblas_daxpy`|1.5.0| | | | |
|`cublasDaxpy_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDaxpy_v2`| | | | |`hipblasDaxpy`|1.8.2| | | | |`rocblas_daxpy`|1.5.0| | | | |
Expand Down Expand Up @@ -282,9 +282,9 @@
|`cublasDswap_v2`| | | | |`hipblasDswap`|3.0.0| | | | |`rocblas_dswap`|1.5.0| | | | |
|`cublasDswap_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDzasum`| | | | |`hipblasDzasum_v2`|6.0.0| | | | |`rocblas_dzasum`|1.5.0| | | | |
|`cublasDzasum_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDzasum_64`|12.0| | | |`hipblasDzasum_v2_64`|6.1.0| | | | |`rocblas_dzasum_64`|6.1.0| | | | |
|`cublasDzasum_v2`| | | | |`hipblasDzasum_v2`|6.0.0| | | | |`rocblas_dzasum`|1.5.0| | | | |
|`cublasDzasum_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDzasum_v2_64`|12.0| | | |`hipblasDzasum_v2_64`|6.1.0| | | | |`rocblas_dzasum_64`|6.1.0| | | | |
|`cublasDznrm2`| | | | |`hipblasDznrm2_v2`|6.0.0| | | | |`rocblas_dznrm2`|1.5.0| | | | |
|`cublasDznrm2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasDznrm2_v2`| | | | |`hipblasDznrm2_v2`|6.0.0| | | | |`rocblas_dznrm2`|1.5.0| | | | |
Expand Down Expand Up @@ -324,17 +324,17 @@
|`cublasNrm2Ex`|8.0| | | |`hipblasNrm2Ex_v2`|6.0.0| | | | |`rocblas_nrm2_ex`|4.1.0| | | | |
|`cublasNrm2Ex_64`|12.0| | | | | | | | | | | | | | | |
|`cublasSasum`| | | | |`hipblasSasum`|1.8.2| | | | |`rocblas_sasum`|1.5.0| | | | |
|`cublasSasum_64`|12.0| | | | | | | | | | | | | | | |
|`cublasSasum_64`|12.0| | | |`hipblasSasum_64`|6.1.0| | | | |`rocblas_sasum_64`|6.1.0| | | | |
|`cublasSasum_v2`| | | | |`hipblasSasum`|1.8.2| | | | |`rocblas_sasum`|1.5.0| | | | |
|`cublasSasum_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasSasum_v2_64`|12.0| | | |`hipblasSasum_64`|6.1.0| | | | |`rocblas_sasum_64`|6.1.0| | | | |
|`cublasSaxpy`| | | | |`hipblasSaxpy`|1.8.2| | | | |`rocblas_saxpy`|1.5.0| | | | |
|`cublasSaxpy_64`|12.0| | | | | | | | | | | | | | | |
|`cublasSaxpy_v2`| | | | |`hipblasSaxpy`|1.8.2| | | | |`rocblas_saxpy`|1.5.0| | | | |
|`cublasSaxpy_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasScasum`| | | | |`hipblasScasum_v2`|6.0.0| | | | |`rocblas_scasum`|1.5.0| | | | |
|`cublasScasum_64`|12.0| | | | | | | | | | | | | | | |
|`cublasScasum_64`|12.0| | | |`hipblasScasum_v2_64`|6.1.0| | | | |`rocblas_scasum_64`|6.1.0| | | | |
|`cublasScasum_v2`| | | | |`hipblasScasum_v2`|6.0.0| | | | |`rocblas_scasum`|1.5.0| | | | |
|`cublasScasum_v2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasScasum_v2_64`|12.0| | | |`hipblasScasum_v2_64`|6.1.0| | | | |`rocblas_scasum_64`|6.1.0| | | | |
|`cublasScnrm2`| | | | |`hipblasScnrm2_v2`|6.0.0| | | | |`rocblas_scnrm2`|1.5.0| | | | |
|`cublasScnrm2_64`|12.0| | | | | | | | | | | | | | | |
|`cublasScnrm2_v2`| | | | |`hipblasScnrm2_v2`|6.0.0| | | | |`rocblas_scnrm2`|1.5.0| | | | |
Expand Down
16 changes: 8 additions & 8 deletions docs/tables/CUBLAS_API_supported_by_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,9 @@
|`cublasCswap_v2`| | | | |`rocblas_cswap`|1.5.0| | | | |
|`cublasCswap_v2_64`|12.0| | | | | | | | | |
|`cublasDasum`| | | | |`rocblas_dasum`|1.5.0| | | | |
|`cublasDasum_64`|12.0| | | | | | | | | |
|`cublasDasum_64`|12.0| | | |`rocblas_dasum_64`|6.1.0| | | | |
|`cublasDasum_v2`| | | | |`rocblas_dasum`|1.5.0| | | | |
|`cublasDasum_v2_64`|12.0| | | | | | | | | |
|`cublasDasum_v2_64`|12.0| | | |`rocblas_dasum_64`|6.1.0| | | | |
|`cublasDaxpy`| | | | |`rocblas_daxpy`|1.5.0| | | | |
|`cublasDaxpy_64`|12.0| | | | | | | | | |
|`cublasDaxpy_v2`| | | | |`rocblas_daxpy`|1.5.0| | | | |
Expand Down Expand Up @@ -282,9 +282,9 @@
|`cublasDswap_v2`| | | | |`rocblas_dswap`|1.5.0| | | | |
|`cublasDswap_v2_64`|12.0| | | | | | | | | |
|`cublasDzasum`| | | | |`rocblas_dzasum`|1.5.0| | | | |
|`cublasDzasum_64`|12.0| | | | | | | | | |
|`cublasDzasum_64`|12.0| | | |`rocblas_dzasum_64`|6.1.0| | | | |
|`cublasDzasum_v2`| | | | |`rocblas_dzasum`|1.5.0| | | | |
|`cublasDzasum_v2_64`|12.0| | | | | | | | | |
|`cublasDzasum_v2_64`|12.0| | | |`rocblas_dzasum_64`|6.1.0| | | | |
|`cublasDznrm2`| | | | |`rocblas_dznrm2`|1.5.0| | | | |
|`cublasDznrm2_64`|12.0| | | | | | | | | |
|`cublasDznrm2_v2`| | | | |`rocblas_dznrm2`|1.5.0| | | | |
Expand Down Expand Up @@ -324,17 +324,17 @@
|`cublasNrm2Ex`|8.0| | | |`rocblas_nrm2_ex`|4.1.0| | | | |
|`cublasNrm2Ex_64`|12.0| | | | | | | | | |
|`cublasSasum`| | | | |`rocblas_sasum`|1.5.0| | | | |
|`cublasSasum_64`|12.0| | | | | | | | | |
|`cublasSasum_64`|12.0| | | |`rocblas_sasum_64`|6.1.0| | | | |
|`cublasSasum_v2`| | | | |`rocblas_sasum`|1.5.0| | | | |
|`cublasSasum_v2_64`|12.0| | | | | | | | | |
|`cublasSasum_v2_64`|12.0| | | |`rocblas_sasum_64`|6.1.0| | | | |
|`cublasSaxpy`| | | | |`rocblas_saxpy`|1.5.0| | | | |
|`cublasSaxpy_64`|12.0| | | | | | | | | |
|`cublasSaxpy_v2`| | | | |`rocblas_saxpy`|1.5.0| | | | |
|`cublasSaxpy_v2_64`|12.0| | | | | | | | | |
|`cublasScasum`| | | | |`rocblas_scasum`|1.5.0| | | | |
|`cublasScasum_64`|12.0| | | | | | | | | |
|`cublasScasum_64`|12.0| | | |`rocblas_scasum_64`|6.1.0| | | | |
|`cublasScasum_v2`| | | | |`rocblas_scasum`|1.5.0| | | | |
|`cublasScasum_v2_64`|12.0| | | | | | | | | |
|`cublasScasum_v2_64`|12.0| | | |`rocblas_scasum_64`|6.1.0| | | | |
|`cublasScnrm2`| | | | |`rocblas_scnrm2`|1.5.0| | | | |
|`cublasScnrm2_64`|12.0| | | | | | | | | |
|`cublasScnrm2_v2`| | | | |`rocblas_scnrm2`|1.5.0| | | | |
Expand Down
Loading

0 comments on commit 514f53e

Please sign in to comment.