Skip to content

Commit

Permalink
Merge pull request ROCm#1315 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 1
  • Loading branch information
emankov authored Jan 31, 2024
2 parents ffbf0b0 + c5dd8c2 commit d555594
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 38 deletions.
20 changes: 10 additions & 10 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -2885,7 +2885,6 @@ sub rocSubstitutions {
subst("CUBLAS_STATUS_NOT_INITIALIZED", "rocblas_status_invalid_handle", "numeric_literal");
subst("CUBLAS_STATUS_NOT_SUPPORTED", "rocblas_status_perf_degraded", "numeric_literal");
subst("CUBLAS_STATUS_SUCCESS", "rocblas_status_success", "numeric_literal");
subst("CUBLAS_TF32_TENSOR_OP_MATH", "rocblas_xf32_xdl_math_op", "numeric_literal");
subst("CUDA_C_16BF", "rocblas_datatype_bf16_c", "numeric_literal");
subst("CUDA_C_16F", "rocblas_datatype_f16_c", "numeric_literal");
subst("CUDA_C_32F", "rocblas_datatype_f32_c", "numeric_literal");
Expand Down Expand Up @@ -3883,6 +3882,7 @@ sub simpleSubstitutions {
subst("cublasGemmEx", "hipblasGemmEx_v2", "library");
subst("cublasGemmStridedBatchedEx", "hipblasGemmStridedBatchedEx_v2", "library");
subst("cublasGetAtomicsMode", "hipblasGetAtomicsMode", "library");
subst("cublasGetMathMode", "hipblasGetMathMode", "library");
subst("cublasGetMatrix", "hipblasGetMatrix", "library");
subst("cublasGetMatrixAsync", "hipblasGetMatrixAsync", "library");
subst("cublasGetPointerMode", "hipblasGetPointerMode", "library");
Expand Down Expand Up @@ -3927,6 +3927,7 @@ sub simpleSubstitutions {
subst("cublasSdot", "hipblasSdot", "library");
subst("cublasSdot_v2", "hipblasSdot", "library");
subst("cublasSetAtomicsMode", "hipblasSetAtomicsMode", "library");
subst("cublasSetMathMode", "hipblasSetMathMode", "library");
subst("cublasSetMatrix", "hipblasSetMatrix", "library");
subst("cublasSetMatrixAsync", "hipblasSetMatrixAsync", "library");
subst("cublasSetPointerMode", "hipblasSetPointerMode", "library");
Expand Down Expand Up @@ -5156,6 +5157,7 @@ sub simpleSubstitutions {
subst("cublasFillMode_t", "hipblasFillMode_t", "type");
subst("cublasGemmAlgo_t", "hipblasGemmAlgo_t", "type");
subst("cublasHandle_t", "hipblasHandle_t", "type");
subst("cublasMath_t", "hipblasMath_t", "type");
subst("cublasOperation_t", "hipblasOperation_t", "type");
subst("cublasPointerMode_t", "hipblasPointerMode_t", "type");
subst("cublasSideMode_t", "hipblasSideMode_t", "type");
Expand Down Expand Up @@ -5415,17 +5417,20 @@ sub simpleSubstitutions {
subst("CUBLAS_COMPUTE_32I_PEDANTIC", "HIPBLAS_COMPUTE_32I_PEDANTIC", "numeric_literal");
subst("CUBLAS_COMPUTE_64F", "HIPBLAS_COMPUTE_64F", "numeric_literal");
subst("CUBLAS_COMPUTE_64F_PEDANTIC", "HIPBLAS_COMPUTE_64F_PEDANTIC", "numeric_literal");
subst("CUBLAS_DEFAULT_MATH", "HIPBLAS_DEFAULT_MATH", "numeric_literal");
subst("CUBLAS_DIAG_NON_UNIT", "HIPBLAS_DIAG_NON_UNIT", "numeric_literal");
subst("CUBLAS_DIAG_UNIT", "HIPBLAS_DIAG_UNIT", "numeric_literal");
subst("CUBLAS_FILL_MODE_FULL", "HIPBLAS_FILL_MODE_FULL", "numeric_literal");
subst("CUBLAS_FILL_MODE_LOWER", "HIPBLAS_FILL_MODE_LOWER", "numeric_literal");
subst("CUBLAS_FILL_MODE_UPPER", "HIPBLAS_FILL_MODE_UPPER", "numeric_literal");
subst("CUBLAS_GEMM_DEFAULT", "HIPBLAS_GEMM_DEFAULT", "numeric_literal");
subst("CUBLAS_GEMM_DFALT", "HIPBLAS_GEMM_DEFAULT", "numeric_literal");
subst("CUBLAS_MATH_DISALLOW_REDUCED_PRECISION_REDUCTION", "HIPBLAS_MATH_DISALLOW_REDUCED_PRECISION_REDUCTION", "numeric_literal");
subst("CUBLAS_OP_C", "HIPBLAS_OP_C", "numeric_literal");
subst("CUBLAS_OP_HERMITAN", "HIPBLAS_OP_C", "numeric_literal");
subst("CUBLAS_OP_N", "HIPBLAS_OP_N", "numeric_literal");
subst("CUBLAS_OP_T", "HIPBLAS_OP_T", "numeric_literal");
subst("CUBLAS_PEDANTIC_MATH", "HIPBLAS_PEDANTIC_MATH", "numeric_literal");
subst("CUBLAS_POINTER_MODE_DEVICE", "HIPBLAS_POINTER_MODE_DEVICE", "numeric_literal");
subst("CUBLAS_POINTER_MODE_HOST", "HIPBLAS_POINTER_MODE_HOST", "numeric_literal");
subst("CUBLAS_SIDE_LEFT", "HIPBLAS_SIDE_LEFT", "numeric_literal");
Expand All @@ -5440,6 +5445,8 @@ sub simpleSubstitutions {
subst("CUBLAS_STATUS_NOT_INITIALIZED", "HIPBLAS_STATUS_NOT_INITIALIZED", "numeric_literal");
subst("CUBLAS_STATUS_NOT_SUPPORTED", "HIPBLAS_STATUS_NOT_SUPPORTED", "numeric_literal");
subst("CUBLAS_STATUS_SUCCESS", "HIPBLAS_STATUS_SUCCESS", "numeric_literal");
subst("CUBLAS_TENSOR_OP_MATH", "HIPBLAS_TENSOR_OP_MATH", "numeric_literal");
subst("CUBLAS_TF32_TENSOR_OP_MATH", "HIPBLAS_TF32_TENSOR_OP_MATH", "numeric_literal");
subst("CUDA_C_16BF", "HIP_C_16BF", "numeric_literal");
subst("CUDA_C_16F", "HIP_C_16F", "numeric_literal");
subst("CUDA_C_32F", "HIP_C_32F", "numeric_literal");
Expand Down Expand Up @@ -10819,7 +10826,6 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasSetSmCountTarget",
"cublasSetMatrix_64",
"cublasSetMatrixAsync_64",
"cublasSetMathMode",
"cublasSetLoggerCallback",
"cublasSetKernelStream",
"cublasSdot_v2_64",
Expand All @@ -10843,7 +10849,6 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasRotEx_64",
"cublasNrm2Ex_64",
"cublasMigrateComputeType",
"cublasMath_t",
"cublasLoggerConfigure",
"cublasLogCallback",
"cublasIzamin_v2_64",
Expand Down Expand Up @@ -10888,7 +10893,6 @@ sub warnHipOnlyUnsupportedFunctions {
"cublasGetProperty",
"cublasGetMatrix_64",
"cublasGetMatrixAsync_64",
"cublasGetMathMode",
"cublasGetLoggerCallback",
"cublasGetError",
"cublasGetCudartVersion",
Expand Down Expand Up @@ -11104,11 +11108,7 @@ sub warnHipOnlyUnsupportedFunctions {
"CUDA_C_4I",
"CUDA_C_16U",
"CUDA_C_16I",
"CUBLAS_TF32_TENSOR_OP_MATH",
"CUBLAS_TENSOR_OP_MATH",
"CUBLAS_PEDANTIC_MATH",
"CUBLAS_OP_CONJG",
"CUBLAS_MATH_DISALLOW_REDUCED_PRECISION_REDUCTION",
"CUBLAS_GEMM_DFALT_TENSOR_OP",
"CUBLAS_GEMM_DEFAULT_TENSOR_OP",
"CUBLAS_GEMM_ALGO9_TENSOR_OP",
Expand Down Expand Up @@ -11150,8 +11150,7 @@ sub warnHipOnlyUnsupportedFunctions {
"CUBLAS_GEMM_ALGO10",
"CUBLAS_GEMM_ALGO1",
"CUBLAS_GEMM_ALGO0_TENSOR_OP",
"CUBLAS_GEMM_ALGO0",
"CUBLAS_DEFAULT_MATH"
"CUBLAS_GEMM_ALGO0"
)
{
my $mt = m/($func)/g;
Expand Down Expand Up @@ -11634,6 +11633,7 @@ sub warnRocOnlyUnsupportedFunctions {
"CUDA_C_4I",
"CUDA_C_16U",
"CUDA_C_16I",
"CUBLAS_TF32_TENSOR_OP_MATH",
"CUBLAS_TENSOR_OP_MATH",
"CUBLAS_STATUS_LICENSE_ERROR",
"CUBLAS_PEDANTIC_MATH",
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 @@ -17,7 +17,7 @@
|`CUBLAS_COMPUTE_32I_PEDANTIC`|11.0| | | |`HIPBLAS_COMPUTE_32I_PEDANTIC`|6.0.0| | | | |
|`CUBLAS_COMPUTE_64F`|11.0| | | |`HIPBLAS_COMPUTE_64F`|6.0.0| | | | |
|`CUBLAS_COMPUTE_64F_PEDANTIC`|11.0| | | |`HIPBLAS_COMPUTE_64F_PEDANTIC`|6.0.0| | | | |
|`CUBLAS_DEFAULT_MATH`|9.0| | | | | | | | | |
|`CUBLAS_DEFAULT_MATH`|9.0| | | |`HIPBLAS_DEFAULT_MATH`|6.1.0| | | | |
|`CUBLAS_DIAG_NON_UNIT`| | | | |`HIPBLAS_DIAG_NON_UNIT`|1.8.2| | | | |
|`CUBLAS_DIAG_UNIT`| | | | |`HIPBLAS_DIAG_UNIT`|1.8.2| | | | |
|`CUBLAS_FILL_MODE_FULL`|10.1| | | |`HIPBLAS_FILL_MODE_FULL`|1.8.2| | | | |
Expand Down Expand Up @@ -67,13 +67,13 @@
|`CUBLAS_GEMM_DEFAULT_TENSOR_OP`|9.0| | | | | | | | | |
|`CUBLAS_GEMM_DFALT`|8.0| | | |`HIPBLAS_GEMM_DEFAULT`|1.8.2| | | | |
|`CUBLAS_GEMM_DFALT_TENSOR_OP`|9.0| | | | | | | | | |
|`CUBLAS_MATH_DISALLOW_REDUCED_PRECISION_REDUCTION`|11.0| | | | | | | | | |
|`CUBLAS_MATH_DISALLOW_REDUCED_PRECISION_REDUCTION`|11.0| | | |`HIPBLAS_MATH_DISALLOW_REDUCED_PRECISION_REDUCTION`|6.1.0| | | | |
|`CUBLAS_OP_C`| | | | |`HIPBLAS_OP_C`|1.8.2| | | | |
|`CUBLAS_OP_CONJG`|10.1| | | | | | | | | |
|`CUBLAS_OP_HERMITAN`|10.1| | | |`HIPBLAS_OP_C`|1.8.2| | | | |
|`CUBLAS_OP_N`| | | | |`HIPBLAS_OP_N`|1.8.2| | | | |
|`CUBLAS_OP_T`| | | | |`HIPBLAS_OP_T`|1.8.2| | | | |
|`CUBLAS_PEDANTIC_MATH`|11.0| | | | | | | | | |
|`CUBLAS_PEDANTIC_MATH`|11.0| | | |`HIPBLAS_PEDANTIC_MATH`|6.1.0| | | | |
|`CUBLAS_POINTER_MODE_DEVICE`| | | | |`HIPBLAS_POINTER_MODE_DEVICE`|1.8.2| | | | |
|`CUBLAS_POINTER_MODE_HOST`| | | | |`HIPBLAS_POINTER_MODE_HOST`|1.8.2| | | | |
|`CUBLAS_SIDE_LEFT`| | | | |`HIPBLAS_SIDE_LEFT`|1.8.2| | | | |
Expand All @@ -88,16 +88,16 @@
|`CUBLAS_STATUS_NOT_INITIALIZED`| | | | |`HIPBLAS_STATUS_NOT_INITIALIZED`|1.8.2| | | | |
|`CUBLAS_STATUS_NOT_SUPPORTED`| | | | |`HIPBLAS_STATUS_NOT_SUPPORTED`|1.8.2| | | | |
|`CUBLAS_STATUS_SUCCESS`| | | | |`HIPBLAS_STATUS_SUCCESS`|1.8.2| | | | |
|`CUBLAS_TENSOR_OP_MATH`|9.0|11.0| | | | | | | | |
|`CUBLAS_TF32_TENSOR_OP_MATH`|11.0| | | | | | | | | |
|`CUBLAS_TENSOR_OP_MATH`|9.0|11.0| | |`HIPBLAS_TENSOR_OP_MATH`|6.1.0| | | | |
|`CUBLAS_TF32_TENSOR_OP_MATH`|11.0| | | |`HIPBLAS_TF32_TENSOR_OP_MATH`|6.1.0| | | | |
|`cublasAtomicsMode_t`| | | | |`hipblasAtomicsMode_t`|3.10.0| | | | |
|`cublasComputeType_t`|11.0| | | |`hipblasComputeType_t`|6.0.0| | | | |
|`cublasContext`| | | | | | | | | | |
|`cublasDiagType_t`| | | | |`hipblasDiagType_t`|1.8.2| | | | |
|`cublasFillMode_t`| | | | |`hipblasFillMode_t`|1.8.2| | | | |
|`cublasGemmAlgo_t`|8.0| | | |`hipblasGemmAlgo_t`|1.8.2| | | | |
|`cublasHandle_t`| | | | |`hipblasHandle_t`|3.0.0| | | | |
|`cublasMath_t`|9.0| | | | | | | | | |
|`cublasMath_t`|9.0| | | |`hipblasMath_t`|6.1.0| | | | |
|`cublasOperation_t`| | | | |`hipblasOperation_t`|1.8.2| | | | |
|`cublasPointerMode_t`| | | | |`hipblasPointerMode_t`|1.8.2| | | | |
|`cublasSideMode_t`| | | | |`hipblasSideMode_t`|1.8.2| | | | |
Expand Down Expand Up @@ -156,7 +156,7 @@
|`cublasGetCudartVersion`|10.1| | | | | | | | | |
|`cublasGetError`| | | | | | | | | | |
|`cublasGetLoggerCallback`|9.2| | | | | | | | | |
|`cublasGetMathMode`|9.0| | | | | | | | | |
|`cublasGetMathMode`|9.0| | | |`hipblasGetMathMode`|6.1.0| | | | |
|`cublasGetMatrix`| | | | |`hipblasGetMatrix`|1.8.2| | | | |
|`cublasGetMatrixAsync`| | | | |`hipblasGetMatrixAsync`|3.7.0| | | | |
|`cublasGetMatrixAsync_64`|12.0| | | | | | | | | |
Expand All @@ -182,7 +182,7 @@
|`cublasSetAtomicsMode`| | | | |`hipblasSetAtomicsMode`|3.10.0| | | | |
|`cublasSetKernelStream`| | | | | | | | | | |
|`cublasSetLoggerCallback`|9.2| | | | | | | | | |
|`cublasSetMathMode`|9.0| | | | | | | | | |
|`cublasSetMathMode`|9.0| | | |`hipblasSetMathMode`|6.1.0| | | | |
|`cublasSetMatrix`| | | | |`hipblasSetMatrix`|1.8.2| | | | |
|`cublasSetMatrixAsync`| | | | |`hipblasSetMatrixAsync`|3.7.0| | | | |
|`cublasSetMatrixAsync_64`|12.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 @@ -17,7 +17,7 @@
|`CUBLAS_COMPUTE_32I_PEDANTIC`|11.0| | | |`HIPBLAS_COMPUTE_32I_PEDANTIC`|6.0.0| | | | | | | | | | |
|`CUBLAS_COMPUTE_64F`|11.0| | | |`HIPBLAS_COMPUTE_64F`|6.0.0| | | | | | | | | | |
|`CUBLAS_COMPUTE_64F_PEDANTIC`|11.0| | | |`HIPBLAS_COMPUTE_64F_PEDANTIC`|6.0.0| | | | | | | | | | |
|`CUBLAS_DEFAULT_MATH`|9.0| | | | | | | | | |`rocblas_default_math`|5.7.0| | | | |
|`CUBLAS_DEFAULT_MATH`|9.0| | | |`HIPBLAS_DEFAULT_MATH`|6.1.0| | | | |`rocblas_default_math`|5.7.0| | | | |
|`CUBLAS_DIAG_NON_UNIT`| | | | |`HIPBLAS_DIAG_NON_UNIT`|1.8.2| | | | |`rocblas_diagonal_non_unit`|1.5.0| | | | |
|`CUBLAS_DIAG_UNIT`| | | | |`HIPBLAS_DIAG_UNIT`|1.8.2| | | | |`rocblas_diagonal_unit`|1.5.0| | | | |
|`CUBLAS_FILL_MODE_FULL`|10.1| | | |`HIPBLAS_FILL_MODE_FULL`|1.8.2| | | | |`rocblas_fill_full`|1.5.0| | | | |
Expand Down Expand Up @@ -67,13 +67,13 @@
|`CUBLAS_GEMM_DEFAULT_TENSOR_OP`|9.0| | | | | | | | | | | | | | | |
|`CUBLAS_GEMM_DFALT`|8.0| | | |`HIPBLAS_GEMM_DEFAULT`|1.8.2| | | | |`rocblas_gemm_algo_standard`|1.8.2| | | | |
|`CUBLAS_GEMM_DFALT_TENSOR_OP`|9.0| | | | | | | | | | | | | | | |
|`CUBLAS_MATH_DISALLOW_REDUCED_PRECISION_REDUCTION`|11.0| | | | | | | | | | | | | | | |
|`CUBLAS_MATH_DISALLOW_REDUCED_PRECISION_REDUCTION`|11.0| | | |`HIPBLAS_MATH_DISALLOW_REDUCED_PRECISION_REDUCTION`|6.1.0| | | | | | | | | | |
|`CUBLAS_OP_C`| | | | |`HIPBLAS_OP_C`|1.8.2| | | | |`rocblas_operation_conjugate_transpose`|1.5.0| | | | |
|`CUBLAS_OP_CONJG`|10.1| | | | | | | | | | | | | | | |
|`CUBLAS_OP_HERMITAN`|10.1| | | |`HIPBLAS_OP_C`|1.8.2| | | | |`rocblas_operation_conjugate_transpose`|1.5.0| | | | |
|`CUBLAS_OP_N`| | | | |`HIPBLAS_OP_N`|1.8.2| | | | |`rocblas_operation_none`|1.5.0| | | | |
|`CUBLAS_OP_T`| | | | |`HIPBLAS_OP_T`|1.8.2| | | | |`rocblas_operation_transpose`|1.5.0| | | | |
|`CUBLAS_PEDANTIC_MATH`|11.0| | | | | | | | | | | | | | | |
|`CUBLAS_PEDANTIC_MATH`|11.0| | | |`HIPBLAS_PEDANTIC_MATH`|6.1.0| | | | | | | | | | |
|`CUBLAS_POINTER_MODE_DEVICE`| | | | |`HIPBLAS_POINTER_MODE_DEVICE`|1.8.2| | | | |`rocblas_pointer_mode_device`|1.6.0| | | | |
|`CUBLAS_POINTER_MODE_HOST`| | | | |`HIPBLAS_POINTER_MODE_HOST`|1.8.2| | | | |`rocblas_pointer_mode_host`|1.6.0| | | | |
|`CUBLAS_SIDE_LEFT`| | | | |`HIPBLAS_SIDE_LEFT`|1.8.2| | | | |`rocblas_side_left`|1.5.0| | | | |
Expand All @@ -88,16 +88,16 @@
|`CUBLAS_STATUS_NOT_INITIALIZED`| | | | |`HIPBLAS_STATUS_NOT_INITIALIZED`|1.8.2| | | | |`rocblas_status_invalid_handle`|1.5.0| | | | |
|`CUBLAS_STATUS_NOT_SUPPORTED`| | | | |`HIPBLAS_STATUS_NOT_SUPPORTED`|1.8.2| | | | |`rocblas_status_perf_degraded`|3.5.0| | | | |
|`CUBLAS_STATUS_SUCCESS`| | | | |`HIPBLAS_STATUS_SUCCESS`|1.8.2| | | | |`rocblas_status_success`|1.5.0| | | | |
|`CUBLAS_TENSOR_OP_MATH`|9.0|11.0| | | | | | | | | | | | | | |
|`CUBLAS_TF32_TENSOR_OP_MATH`|11.0| | | | | | | | | |`rocblas_xf32_xdl_math_op`|5.7.0| | | | |
|`CUBLAS_TENSOR_OP_MATH`|9.0|11.0| | |`HIPBLAS_TENSOR_OP_MATH`|6.1.0| | | | | | | | | | |
|`CUBLAS_TF32_TENSOR_OP_MATH`|11.0| | | |`HIPBLAS_TF32_TENSOR_OP_MATH`|6.1.0| | | | | | | | | | |
|`cublasAtomicsMode_t`| | | | |`hipblasAtomicsMode_t`|3.10.0| | | | |`rocblas_atomics_mode`|3.8.0| | | | |
|`cublasComputeType_t`|11.0| | | |`hipblasComputeType_t`|6.0.0| | | | |`rocblas_computetype`|5.7.0| | | | |
|`cublasContext`| | | | | | | | | | |`_rocblas_handle`|1.5.0| | | | |
|`cublasDiagType_t`| | | | |`hipblasDiagType_t`|1.8.2| | | | |`rocblas_diagonal`|1.5.0| | | | |
|`cublasFillMode_t`| | | | |`hipblasFillMode_t`|1.8.2| | | | |`rocblas_fill`|1.5.0| | | | |
|`cublasGemmAlgo_t`|8.0| | | |`hipblasGemmAlgo_t`|1.8.2| | | | |`rocblas_gemm_algo`|1.8.2| | | | |
|`cublasHandle_t`| | | | |`hipblasHandle_t`|3.0.0| | | | |`rocblas_handle`|1.5.0| | | | |
|`cublasMath_t`|9.0| | | | | | | | | |`rocblas_math_mode`|5.7.0| | | | |
|`cublasMath_t`|9.0| | | |`hipblasMath_t`|6.1.0| | | | |`rocblas_math_mode`|5.7.0| | | | |
|`cublasOperation_t`| | | | |`hipblasOperation_t`|1.8.2| | | | |`rocblas_operation`|1.5.0| | | | |
|`cublasPointerMode_t`| | | | |`hipblasPointerMode_t`|1.8.2| | | | |`rocblas_pointer_mode`|1.6.0| | | | |
|`cublasSideMode_t`| | | | |`hipblasSideMode_t`|1.8.2| | | | |`rocblas_side`|1.5.0| | | | |
Expand Down Expand Up @@ -156,7 +156,7 @@
|`cublasGetCudartVersion`|10.1| | | | | | | | | | | | | | | |
|`cublasGetError`| | | | | | | | | | | | | | | | |
|`cublasGetLoggerCallback`|9.2| | | | | | | | | | | | | | | |
|`cublasGetMathMode`|9.0| | | | | | | | | |`rocblas_get_math_mode`|5.7.0| | | | |
|`cublasGetMathMode`|9.0| | | |`hipblasGetMathMode`|6.1.0| | | | |`rocblas_get_math_mode`|5.7.0| | | | |
|`cublasGetMatrix`| | | | |`hipblasGetMatrix`|1.8.2| | | | |`rocblas_get_matrix`|1.6.0| | | | |
|`cublasGetMatrixAsync`| | | | |`hipblasGetMatrixAsync`|3.7.0| | | | |`rocblas_get_matrix_async`|3.5.0| | | | |
|`cublasGetMatrixAsync_64`|12.0| | | | | | | | | | | | | | | |
Expand All @@ -182,7 +182,7 @@
|`cublasSetAtomicsMode`| | | | |`hipblasSetAtomicsMode`|3.10.0| | | | |`rocblas_set_atomics_mode`|3.8.0| | | | |
|`cublasSetKernelStream`| | | | | | | | | | | | | | | | |
|`cublasSetLoggerCallback`|9.2| | | | | | | | | | | | | | | |
|`cublasSetMathMode`|9.0| | | | | | | | | |`rocblas_set_math_mode`|5.7.0| | | | |
|`cublasSetMathMode`|9.0| | | |`hipblasSetMathMode`|6.1.0| | | | |`rocblas_set_math_mode`|5.7.0| | | | |
|`cublasSetMatrix`| | | | |`hipblasSetMatrix`|1.8.2| | | | |`rocblas_set_matrix`|1.6.0| | | | |
|`cublasSetMatrixAsync`| | | | |`hipblasSetMatrixAsync`|3.7.0| | | | |`rocblas_set_matrix_async`|3.5.0| | | | |
|`cublasSetMatrixAsync_64`|12.0| | | | | | | | | | | | | | | |
Expand Down
2 changes: 1 addition & 1 deletion docs/tables/CUBLAS_API_supported_by_ROC.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
|`CUBLAS_STATUS_NOT_SUPPORTED`| | | | |`rocblas_status_perf_degraded`|3.5.0| | | | |
|`CUBLAS_STATUS_SUCCESS`| | | | |`rocblas_status_success`|1.5.0| | | | |
|`CUBLAS_TENSOR_OP_MATH`|9.0|11.0| | | | | | | | |
|`CUBLAS_TF32_TENSOR_OP_MATH`|11.0| | | |`rocblas_xf32_xdl_math_op`|5.7.0| | | | |
|`CUBLAS_TF32_TENSOR_OP_MATH`|11.0| | | | | | | | | |
|`cublasAtomicsMode_t`| | | | |`rocblas_atomics_mode`|3.8.0| | | | |
|`cublasComputeType_t`|11.0| | | |`rocblas_computetype`|5.7.0| | | | |
|`cublasContext`| | | | |`_rocblas_handle`|1.5.0| | | | |
Expand Down
7 changes: 5 additions & 2 deletions src/CUDA2HIP_BLAS_API_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ const std::map<llvm::StringRef, hipCounter> CUDA_BLAS_FUNCTION_MAP {
{"cublasSetKernelStream", {"hipblasSetKernelStream", "", CONV_LIB_FUNC, API_BLAS, 4, UNSUPPORTED}},
{"cublasGetAtomicsMode", {"hipblasGetAtomicsMode", "rocblas_get_atomics_mode", CONV_LIB_FUNC, API_BLAS, 4}},
{"cublasSetAtomicsMode", {"hipblasSetAtomicsMode", "rocblas_set_atomics_mode", CONV_LIB_FUNC, API_BLAS, 4}},
{"cublasGetMathMode", {"hipblasGetMathMode", "rocblas_get_math_mode", CONV_LIB_FUNC, API_BLAS, 4, HIP_UNSUPPORTED}},
{"cublasSetMathMode", {"hipblasSetMathMode", "rocblas_set_math_mode", CONV_LIB_FUNC, API_BLAS, 4, HIP_UNSUPPORTED}},
{"cublasGetMathMode", {"hipblasGetMathMode", "rocblas_get_math_mode", CONV_LIB_FUNC, API_BLAS, 4}},
{"cublasSetMathMode", {"hipblasSetMathMode", "rocblas_set_math_mode", CONV_LIB_FUNC, API_BLAS, 4}},
{"cublasMigrateComputeType", {"hipblasMigrateComputeType", "", CONV_LIB_FUNC, API_BLAS, 4, UNSUPPORTED}},
{"cublasGetSmCountTarget", {"hipblasGetSmCountTarget", "", CONV_LIB_FUNC, API_BLAS, 4, UNSUPPORTED}},
{"cublasSetSmCountTarget", {"hipblasSetSmCountTarget", "", CONV_LIB_FUNC, API_BLAS, 4, UNSUPPORTED}},
Expand Down Expand Up @@ -1869,6 +1869,9 @@ const std::map<llvm::StringRef, hipAPIversions> HIP_BLAS_FUNCTION_VER_MAP {
{"hipblasNrm2Ex_v2", {HIP_6000, HIP_0, HIP_0, }},
{"hipblasRotEx_v2", {HIP_6000, HIP_0, HIP_0, }},
{"hipblasScalEx_v2", {HIP_6000, HIP_0, HIP_0, }},
{"hipblasSetMathMode", {HIP_6010, HIP_0, HIP_0, }},
{"hipblasGetMathMode", {HIP_6010, HIP_0, HIP_0, }},

{"rocblas_status_to_string", {HIP_3050, HIP_0, HIP_0 }},
{"rocblas_sscal", {HIP_1050, HIP_0, HIP_0 }},
{"rocblas_dscal", {HIP_1050, HIP_0, HIP_0 }},
Expand Down
Loading

0 comments on commit d555594

Please sign in to comment.