Skip to content

Commit

Permalink
Merge pull request #1082 from emankov/HIPIFY
Browse files Browse the repository at this point in the history
[HIPIFY][6.0.0][#1078][BLAS] Support for ROCm HIP 6.0.0 - Step 16 - Functions - ABI break
  • Loading branch information
emankov authored Oct 21, 2023
2 parents c08d1d2 + 388569f commit fa5e136
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 58 deletions.
16 changes: 8 additions & 8 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -1363,8 +1363,8 @@ sub rocSubstitutions {
subst("cublasCtpmv_v2", "rocblas_ctpmv", "library");
subst("cublasCtpsv", "rocblas_ctpsv", "library");
subst("cublasCtpsv_v2", "rocblas_ctpsv", "library");
subst("cublasCtrmm", "rocblas_ctrmm_outofplace", "library");
subst("cublasCtrmm_v2", "rocblas_ctrmm_outofplace", "library");
subst("cublasCtrmm", "rocblas_ctrmm", "library");
subst("cublasCtrmm_v2", "rocblas_ctrmm", "library");
subst("cublasCtrmv", "rocblas_ctrmv", "library");
subst("cublasCtrmv_v2", "rocblas_ctrmv", "library");
subst("cublasCtrsm", "rocblas_ctrsm", "library");
Expand Down Expand Up @@ -1439,8 +1439,8 @@ sub rocSubstitutions {
subst("cublasDtpmv_v2", "rocblas_dtpmv", "library");
subst("cublasDtpsv", "rocblas_dtpsv", "library");
subst("cublasDtpsv_v2", "rocblas_dtpsv", "library");
subst("cublasDtrmm", "rocblas_dtrmm_outofplace", "library");
subst("cublasDtrmm_v2", "rocblas_dtrmm_outofplace", "library");
subst("cublasDtrmm", "rocblas_dtrmm", "library");
subst("cublasDtrmm_v2", "rocblas_dtrmm", "library");
subst("cublasDtrmv", "rocblas_dtrmv", "library");
subst("cublasDtrmv_v2", "rocblas_dtrmv", "library");
subst("cublasDtrsm", "rocblas_dtrsm", "library");
Expand Down Expand Up @@ -1566,6 +1566,7 @@ sub rocSubstitutions {
subst("cublasStpmv_v2", "rocblas_stpmv", "library");
subst("cublasStpsv", "rocblas_stpsv", "library");
subst("cublasStpsv_v2", "rocblas_stpsv", "library");
subst("cublasStrmm", "rocblas_strmm", "library");
subst("cublasStrmm_v2", "rocblas_strmm", "library");
subst("cublasStrmv", "rocblas_strmv", "library");
subst("cublasStrmv_v2", "rocblas_strmv", "library");
Expand Down Expand Up @@ -1652,8 +1653,8 @@ sub rocSubstitutions {
subst("cublasZtpmv_v2", "rocblas_ztpmv", "library");
subst("cublasZtpsv", "rocblas_ztpsv", "library");
subst("cublasZtpsv_v2", "rocblas_ztpsv", "library");
subst("cublasZtrmm", "rocblas_ztrmm_outofplace", "library");
subst("cublasZtrmm_v2", "rocblas_ztrmm_outofplace", "library");
subst("cublasZtrmm", "rocblas_ztrmm", "library");
subst("cublasZtrmm_v2", "rocblas_ztrmm", "library");
subst("cublasZtrmv", "rocblas_ztrmv", "library");
subst("cublasZtrmv_v2", "rocblas_ztrmv", "library");
subst("cublasZtrsm", "rocblas_ztrsm", "library");
Expand Down Expand Up @@ -3229,6 +3230,7 @@ sub simpleSubstitutions {
subst("cublasStpmv_v2", "hipblasStpmv", "library");
subst("cublasStpsv", "hipblasStpsv", "library");
subst("cublasStpsv_v2", "hipblasStpsv", "library");
subst("cublasStrmm", "hipblasStrmm", "library");
subst("cublasStrmm_v2", "hipblasStrmm", "library");
subst("cublasStrmv", "hipblasStrmv", "library");
subst("cublasStrmv_v2", "hipblasStrmv", "library");
Expand Down Expand Up @@ -9444,7 +9446,6 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasStrmv_64",
"cublasStrmm_v2_64",
"cublasStrmm_64",
"cublasStrmm",
"cublasStpttr",
"cublasStpsv_v2_64",
"cublasStpsv_64",
Expand Down Expand Up @@ -9974,7 +9975,6 @@ sub warnRocOnlyUnsupportedFunctions {
"cublasStrmv_64",
"cublasStrmm_v2_64",
"cublasStrmm_64",
"cublasStrmm",
"cublasStpttr",
"cublasStpsv_v2_64",
"cublasStpsv_64",
Expand Down
14 changes: 7 additions & 7 deletions docs/tables/CUBLAS_API_supported_by_HIP.md
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,9 @@
|`cublasCsyrk_v2_64`|12.0| | | | | | | | |
|`cublasCsyrkx`| | | |`hipblasCsyrkx_v2`|6.0.0| | | |6.0.0|
|`cublasCsyrkx_64`|12.0| | | | | | | | |
|`cublasCtrmm`| | | |`hipblasCtrmm`|3.5.0|5.6.0| | | |
|`cublasCtrmm`| | | |`hipblasCtrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasCtrmm_64`|12.0| | | | | | | | |
|`cublasCtrmm_v2`| | | |`hipblasCtrmm`|3.5.0|5.6.0| | | |
|`cublasCtrmm_v2`| | | |`hipblasCtrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasCtrmm_v2_64`|12.0| | | | | | | | |
|`cublasCtrsm`| | | |`hipblasCtrsm`|3.5.0| | | | |
|`cublasCtrsm_64`|12.0| | | | | | | | |
Expand Down Expand Up @@ -789,9 +789,9 @@
|`cublasDsyrk_v2_64`|12.0| | | | | | | | |
|`cublasDsyrkx`| | | |`hipblasDsyrkx`|3.5.0| | | | |
|`cublasDsyrkx_64`|12.0| | | | | | | | |
|`cublasDtrmm`| | | |`hipblasDtrmm`|3.2.0|5.6.0| | | |
|`cublasDtrmm`| | | |`hipblasDtrmm`|3.2.0| |6.0.0| |6.0.0|
|`cublasDtrmm_64`|12.0| | | | | | | | |
|`cublasDtrmm_v2`| | | |`hipblasDtrmm`|3.2.0|5.6.0| | | |
|`cublasDtrmm_v2`| | | |`hipblasDtrmm`|3.2.0| |6.0.0| |6.0.0|
|`cublasDtrmm_v2_64`|12.0| | | | | | | | |
|`cublasDtrsm`| | | |`hipblasDtrsm`|1.8.2| | | | |
|`cublasDtrsm_64`|12.0| | | | | | | | |
Expand Down Expand Up @@ -837,7 +837,7 @@
|`cublasSsyrk_v2_64`|12.0| | | | | | | | |
|`cublasSsyrkx`| | | |`hipblasSsyrkx`|3.5.0| | | | |
|`cublasSsyrkx_64`|12.0| | | | | | | | |
|`cublasStrmm`| | | | | | | | | |
|`cublasStrmm`| | | |`hipblasStrmm`|3.2.0| |6.0.0| |6.0.0|
|`cublasStrmm_64`|12.0| | | | | | | | |
|`cublasStrmm_v2`| | | |`hipblasStrmm`|3.2.0| |6.0.0| |6.0.0|
|`cublasStrmm_v2_64`|12.0| | | | | | | | |
Expand Down Expand Up @@ -895,9 +895,9 @@
|`cublasZsyrk_v2_64`|12.0| | | | | | | | |
|`cublasZsyrkx`| | | |`hipblasZsyrkx_v2`|6.0.0| | | |6.0.0|
|`cublasZsyrkx_64`|12.0| | | | | | | | |
|`cublasZtrmm`| | | |`hipblasZtrmm`|3.5.0|5.6.0| | | |
|`cublasZtrmm`| | | |`hipblasZtrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasZtrmm_64`|12.0| | | | | | | | |
|`cublasZtrmm_v2`| | | |`hipblasZtrmm`|3.5.0|5.6.0| | | |
|`cublasZtrmm_v2`| | | |`hipblasZtrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasZtrmm_v2_64`|12.0| | | | | | | | |
|`cublasZtrsm`| | | |`hipblasZtrsm`|3.5.0| | | | |
|`cublasZtrsm_64`|12.0| | | | | | | | |
Expand Down
14 changes: 7 additions & 7 deletions docs/tables/CUBLAS_API_supported_by_HIP_and_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,9 @@
|`cublasCsyrk_v2_64`|12.0| | | | | | | | | | | | | | |
|`cublasCsyrkx`| | | |`hipblasCsyrkx_v2`|6.0.0| | | |6.0.0|`rocblas_csyrkx`|3.5.0| | | | |
|`cublasCsyrkx_64`|12.0| | | | | | | | | | | | | | |
|`cublasCtrmm`| | | |`hipblasCtrmm`|3.5.0|5.6.0| | | |`rocblas_ctrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasCtrmm`| | | |`hipblasCtrmm`|3.5.0| |6.0.0| |6.0.0|`rocblas_ctrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasCtrmm_64`|12.0| | | | | | | | | | | | | | |
|`cublasCtrmm_v2`| | | |`hipblasCtrmm`|3.5.0|5.6.0| | | |`rocblas_ctrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasCtrmm_v2`| | | |`hipblasCtrmm`|3.5.0| |6.0.0| |6.0.0|`rocblas_ctrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasCtrmm_v2_64`|12.0| | | | | | | | | | | | | | |
|`cublasCtrsm`| | | |`hipblasCtrsm`|3.5.0| | | | |`rocblas_ctrsm`|3.5.0| | | | |
|`cublasCtrsm_64`|12.0| | | | | | | | | | | | | | |
Expand Down Expand Up @@ -789,9 +789,9 @@
|`cublasDsyrk_v2_64`|12.0| | | | | | | | | | | | | | |
|`cublasDsyrkx`| | | |`hipblasDsyrkx`|3.5.0| | | | |`rocblas_dsyrkx`|3.5.0| | | | |
|`cublasDsyrkx_64`|12.0| | | | | | | | | | | | | | |
|`cublasDtrmm`| | | |`hipblasDtrmm`|3.2.0|5.6.0| | | |`rocblas_dtrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasDtrmm`| | | |`hipblasDtrmm`|3.2.0| |6.0.0| |6.0.0|`rocblas_dtrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasDtrmm_64`|12.0| | | | | | | | | | | | | | |
|`cublasDtrmm_v2`| | | |`hipblasDtrmm`|3.2.0|5.6.0| | | |`rocblas_dtrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasDtrmm_v2`| | | |`hipblasDtrmm`|3.2.0| |6.0.0| |6.0.0|`rocblas_dtrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasDtrmm_v2_64`|12.0| | | | | | | | | | | | | | |
|`cublasDtrsm`| | | |`hipblasDtrsm`|1.8.2| | | | |`rocblas_dtrsm`|1.5.0| | | | |
|`cublasDtrsm_64`|12.0| | | | | | | | | | | | | | |
Expand Down Expand Up @@ -837,7 +837,7 @@
|`cublasSsyrk_v2_64`|12.0| | | | | | | | | | | | | | |
|`cublasSsyrkx`| | | |`hipblasSsyrkx`|3.5.0| | | | |`rocblas_ssyrkx`|3.5.0| | | | |
|`cublasSsyrkx_64`|12.0| | | | | | | | | | | | | | |
|`cublasStrmm`| | | | | | | | | | | | | | | |
|`cublasStrmm`| | | |`hipblasStrmm`|3.2.0| |6.0.0| |6.0.0|`rocblas_strmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasStrmm_64`|12.0| | | | | | | | | | | | | | |
|`cublasStrmm_v2`| | | |`hipblasStrmm`|3.2.0| |6.0.0| |6.0.0|`rocblas_strmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasStrmm_v2_64`|12.0| | | | | | | | | | | | | | |
Expand Down Expand Up @@ -895,9 +895,9 @@
|`cublasZsyrk_v2_64`|12.0| | | | | | | | | | | | | | |
|`cublasZsyrkx`| | | |`hipblasZsyrkx_v2`|6.0.0| | | |6.0.0|`rocblas_zsyrkx`|3.5.0| | | | |
|`cublasZsyrkx_64`|12.0| | | | | | | | | | | | | | |
|`cublasZtrmm`| | | |`hipblasZtrmm`|3.5.0|5.6.0| | | |`rocblas_ztrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasZtrmm`| | | |`hipblasZtrmm`|3.5.0| |6.0.0| |6.0.0|`rocblas_ztrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasZtrmm_64`|12.0| | | | | | | | | | | | | | |
|`cublasZtrmm_v2`| | | |`hipblasZtrmm`|3.5.0|5.6.0| | | |`rocblas_ztrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasZtrmm_v2`| | | |`hipblasZtrmm`|3.5.0| |6.0.0| |6.0.0|`rocblas_ztrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasZtrmm_v2_64`|12.0| | | | | | | | | | | | | | |
|`cublasZtrsm`| | | |`hipblasZtrsm`|3.5.0| | | | |`rocblas_ztrsm`|3.5.0| | | | |
|`cublasZtrsm_64`|12.0| | | | | | | | | | | | | | |
Expand Down
14 changes: 7 additions & 7 deletions docs/tables/CUBLAS_API_supported_by_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,9 @@
|`cublasCsyrk_v2_64`|12.0| | | | | | | | |
|`cublasCsyrkx`| | | |`rocblas_csyrkx`|3.5.0| | | | |
|`cublasCsyrkx_64`|12.0| | | | | | | | |
|`cublasCtrmm`| | | |`rocblas_ctrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasCtrmm`| | | |`rocblas_ctrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasCtrmm_64`|12.0| | | | | | | | |
|`cublasCtrmm_v2`| | | |`rocblas_ctrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasCtrmm_v2`| | | |`rocblas_ctrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasCtrmm_v2_64`|12.0| | | | | | | | |
|`cublasCtrsm`| | | |`rocblas_ctrsm`|3.5.0| | | | |
|`cublasCtrsm_64`|12.0| | | | | | | | |
Expand Down Expand Up @@ -789,9 +789,9 @@
|`cublasDsyrk_v2_64`|12.0| | | | | | | | |
|`cublasDsyrkx`| | | |`rocblas_dsyrkx`|3.5.0| | | | |
|`cublasDsyrkx_64`|12.0| | | | | | | | |
|`cublasDtrmm`| | | |`rocblas_dtrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasDtrmm`| | | |`rocblas_dtrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasDtrmm_64`|12.0| | | | | | | | |
|`cublasDtrmm_v2`| | | |`rocblas_dtrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasDtrmm_v2`| | | |`rocblas_dtrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasDtrmm_v2_64`|12.0| | | | | | | | |
|`cublasDtrsm`| | | |`rocblas_dtrsm`|1.5.0| | | | |
|`cublasDtrsm_64`|12.0| | | | | | | | |
Expand Down Expand Up @@ -837,7 +837,7 @@
|`cublasSsyrk_v2_64`|12.0| | | | | | | | |
|`cublasSsyrkx`| | | |`rocblas_ssyrkx`|3.5.0| | | | |
|`cublasSsyrkx_64`|12.0| | | | | | | | |
|`cublasStrmm`| | | | | | | | | |
|`cublasStrmm`| | | |`rocblas_strmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasStrmm_64`|12.0| | | | | | | | |
|`cublasStrmm_v2`| | | |`rocblas_strmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasStrmm_v2_64`|12.0| | | | | | | | |
Expand Down Expand Up @@ -895,9 +895,9 @@
|`cublasZsyrk_v2_64`|12.0| | | | | | | | |
|`cublasZsyrkx`| | | |`rocblas_zsyrkx`|3.5.0| | | | |
|`cublasZsyrkx_64`|12.0| | | | | | | | |
|`cublasZtrmm`| | | |`rocblas_ztrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasZtrmm`| | | |`rocblas_ztrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasZtrmm_64`|12.0| | | | | | | | |
|`cublasZtrmm_v2`| | | |`rocblas_ztrmm_outofplace`|5.0.0|5.6.0| | | |
|`cublasZtrmm_v2`| | | |`rocblas_ztrmm`|3.5.0| |6.0.0| |6.0.0|
|`cublasZtrmm_v2_64`|12.0| | | | | | | | |
|`cublasZtrsm`| | | |`rocblas_ztrsm`|3.5.0| | | | |
|`cublasZtrsm_64`|12.0| | | | | | | | |
Expand Down
37 changes: 23 additions & 14 deletions src/CUDA2HIP_BLAS_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -542,13 +542,13 @@ const std::map<llvm::StringRef, hipCounter> CUDA_BLAS_FUNCTION_MAP {
{"cublasZtrsm_64", {"hipblasZtrsm_64", "", CONV_LIB_FUNC, API_BLAS, 7, UNSUPPORTED}},

// TRMM
{"cublasStrmm", {"hipblasStrmm", "rocblas_strmm_outofplace", CONV_LIB_FUNC, API_BLAS, 7, UNSUPPORTED | ROC_DEPRECATED}},
{"cublasStrmm", {"hipblasStrmm", "rocblas_strmm", CONV_LIB_FUNC, API_BLAS, 7, HIP_SUPPORTED_V2_ONLY}},
{"cublasStrmm_64", {"hipblasStrmm_64", "", CONV_LIB_FUNC, API_BLAS, 7, UNSUPPORTED}},
{"cublasDtrmm", {"hipblasDtrmm", "rocblas_dtrmm_outofplace", CONV_LIB_FUNC, API_BLAS, 7, HIP_SUPPORTED_V2_ONLY | HIP_DEPRECATED | ROC_DEPRECATED}},
{"cublasDtrmm", {"hipblasDtrmm", "rocblas_dtrmm", CONV_LIB_FUNC, API_BLAS, 7, HIP_SUPPORTED_V2_ONLY}},
{"cublasDtrmm_64", {"hipblasDtrmm_64", "", CONV_LIB_FUNC, API_BLAS, 7, UNSUPPORTED}},
{"cublasCtrmm", {"hipblasCtrmm", "rocblas_ctrmm_outofplace", CONV_LIB_FUNC, API_BLAS, 7, HIP_SUPPORTED_V2_ONLY | HIP_DEPRECATED | ROC_DEPRECATED}},
{"cublasCtrmm", {"hipblasCtrmm", "rocblas_ctrmm", CONV_LIB_FUNC, API_BLAS, 7, HIP_SUPPORTED_V2_ONLY}},
{"cublasCtrmm_64", {"hipblasCtrmm_64", "", CONV_LIB_FUNC, API_BLAS, 7, UNSUPPORTED}},
{"cublasZtrmm", {"hipblasZtrmm", "rocblas_ztrmm_outofplace", CONV_LIB_FUNC, API_BLAS, 7, HIP_SUPPORTED_V2_ONLY | HIP_DEPRECATED | ROC_DEPRECATED}},
{"cublasZtrmm", {"hipblasZtrmm", "rocblas_ztrmm", CONV_LIB_FUNC, API_BLAS, 7, HIP_SUPPORTED_V2_ONLY}},
{"cublasZtrmm_64", {"hipblasZtrmm_64", "", CONV_LIB_FUNC, API_BLAS, 7, UNSUPPORTED}},

// ------------------------ CUBLAS BLAS - like extension (cublas_api.h)
Expand Down Expand Up @@ -911,11 +911,11 @@ const std::map<llvm::StringRef, hipCounter> CUDA_BLAS_FUNCTION_MAP {
// TRMM
{"cublasStrmm_v2", {"hipblasStrmm", "rocblas_strmm", CONV_LIB_FUNC, API_BLAS, 7}},
{"cublasStrmm_v2_64", {"hipblasStrmm_64", "", CONV_LIB_FUNC, API_BLAS, 7, UNSUPPORTED}},
{"cublasDtrmm_v2", {"hipblasDtrmm", "rocblas_dtrmm_outofplace", CONV_LIB_FUNC, API_BLAS, 7, HIP_DEPRECATED | ROC_DEPRECATED}},
{"cublasDtrmm_v2", {"hipblasDtrmm", "rocblas_dtrmm", CONV_LIB_FUNC, API_BLAS, 7}},
{"cublasDtrmm_v2_64", {"hipblasDtrmm_64", "", CONV_LIB_FUNC, API_BLAS, 7, UNSUPPORTED}},
{"cublasCtrmm_v2", {"hipblasCtrmm", "rocblas_ctrmm_outofplace", CONV_LIB_FUNC, API_BLAS, 7, HIP_DEPRECATED | ROC_DEPRECATED}},
{"cublasCtrmm_v2", {"hipblasCtrmm", "rocblas_ctrmm", CONV_LIB_FUNC, API_BLAS, 7}},
{"cublasCtrmm_v2_64", {"hipblasCtrmm_64", "", CONV_LIB_FUNC, API_BLAS, 7, UNSUPPORTED}},
{"cublasZtrmm_v2", {"hipblasZtrmm", "rocblas_ztrmm_outofplace", CONV_LIB_FUNC, API_BLAS, 7, HIP_DEPRECATED | ROC_DEPRECATED}},
{"cublasZtrmm_v2", {"hipblasZtrmm", "rocblas_ztrmm", CONV_LIB_FUNC, API_BLAS, 7}},
{"cublasZtrmm_v2_64", {"hipblasZtrmm_64", "", CONV_LIB_FUNC, API_BLAS, 7, UNSUPPORTED}},

// NRM2
Expand Down Expand Up @@ -1706,9 +1706,9 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_BLAS_FUNCTION_VER_MAP {
{"hipblasCtrsm", {HIP_3050, HIP_0, HIP_0 }},
{"hipblasZtrsm", {HIP_3050, HIP_0, HIP_0 }},
{"hipblasStrmm", {HIP_3020, HIP_0, HIP_0, HIP_LATEST}},
{"hipblasDtrmm", {HIP_3020, HIP_5060, HIP_0 }},
{"hipblasCtrmm", {HIP_3050, HIP_5060, HIP_0 }},
{"hipblasZtrmm", {HIP_3050, HIP_5060, HIP_0 }},
{"hipblasDtrmm", {HIP_3020, HIP_0, HIP_0, HIP_LATEST}},
{"hipblasCtrmm", {HIP_3050, HIP_0, HIP_0, HIP_LATEST}},
{"hipblasZtrmm", {HIP_3050, HIP_0, HIP_0, HIP_LATEST}},
{"hipblasSgeam", {HIP_1082, HIP_0, HIP_0 }},
{"hipblasDgeam", {HIP_1082, HIP_0, HIP_0 }},
{"hipblasCgeam", {HIP_3060, HIP_0, HIP_0 }},
Expand Down Expand Up @@ -1994,10 +1994,10 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_BLAS_FUNCTION_VER_MAP {
{"rocblas_dsyrkx", {HIP_3050, HIP_0, HIP_0 }},
{"rocblas_csyrkx", {HIP_3050, HIP_0, HIP_0 }},
{"rocblas_zsyrkx", {HIP_3050, HIP_0, HIP_0 }},
{"rocblas_strmm_outofplace", {HIP_5000, HIP_5060, HIP_0 }},
{"rocblas_dtrmm_outofplace", {HIP_5000, HIP_5060, HIP_0 }},
{"rocblas_ctrmm_outofplace", {HIP_5000, HIP_5060, HIP_0 }},
{"rocblas_ztrmm_outofplace", {HIP_5000, HIP_5060, HIP_0 }},
{"rocblas_strmm_outofplace", {HIP_5000, HIP_5060, HIP_6000}},
{"rocblas_dtrmm_outofplace", {HIP_5000, HIP_5060, HIP_6000}},
{"rocblas_ctrmm_outofplace", {HIP_5000, HIP_5060, HIP_6000}},
{"rocblas_ztrmm_outofplace", {HIP_5000, HIP_5060, HIP_6000}},
{"rocblas_strsm", {HIP_1050, HIP_0, HIP_0 }},
{"rocblas_dtrsm", {HIP_1050, HIP_0, HIP_0 }},
{"rocblas_ctrsm", {HIP_3050, HIP_0, HIP_0 }},
Expand Down Expand Up @@ -2066,11 +2066,20 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_BLAS_FUNCTION_VER_MAP {
{"rocblas_cgemv_strided_batched", {HIP_3050, HIP_0, HIP_0 }},
{"rocblas_zgemv_strided_batched", {HIP_3050, HIP_0, HIP_0 }},
{"rocblas_strmm", {HIP_3050, HIP_0, HIP_0, HIP_LATEST}},
{"rocblas_dtrmm", {HIP_3050, HIP_0, HIP_0, HIP_LATEST}},
{"rocblas_ctrmm", {HIP_3050, HIP_0, HIP_0, HIP_LATEST}},
{"rocblas_ztrmm", {HIP_3050, HIP_0, HIP_0, HIP_LATEST}},
};

const std::map<llvm::StringRef, hipAPIChangedVersions> HIP_BLAS_FUNCTION_CHANGED_VER_MAP {
{"hipblasStrmm", {HIP_6000}},
{"hipblasDtrmm", {HIP_6000}},
{"hipblasCtrmm", {HIP_6000}},
{"hipblasZtrmm", {HIP_6000}},
{"rocblas_strmm", {HIP_6000}},
{"rocblas_dtrmm", {HIP_6000}},
{"rocblas_ctrmm", {HIP_6000}},
{"rocblas_ztrmm", {HIP_6000}},
};

const std::map<unsigned int, llvm::StringRef> CUDA_BLAS_API_SECTION_MAP {
Expand Down
Loading

0 comments on commit fa5e136

Please sign in to comment.