Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HIPIFY][#584][#1624][MIOpen] Support for backend graphAPI direct translation from cuDNN to MIOpen - Part 7 #1644

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions bin/hipify-perl
Original file line number Diff line number Diff line change
Expand Up @@ -3388,6 +3388,10 @@ sub rocSubstitutions {
subst("CUDNN_ATTR_OPERATION_BN_FINALIZE_UPDATED_RUNNING_VAR_DESC", "MIOPEN_ATTR_OPERATION_BN_FINALIZE_UPDATED_RUNNING_VAR_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_BN_FINALIZE_Y_SQ_SUM_DESC", "MIOPEN_ATTR_OPERATION_BN_FINALIZE_Y_SQ_SUM_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_BN_FINALIZE_Y_SUM_DESC", "MIOPEN_ATTR_OPERATION_BN_FINALIZE_Y_SUM_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_CONCAT_AXIS", "MIOPEN_ATTR_OPERATION_CONCAT_AXIS", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_CONCAT_INPLACE_INDEX", "MIOPEN_ATTR_OPERATION_CONCAT_INPLACE_INDEX", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_CONCAT_INPUT_DESCS", "MIOPEN_ATTR_OPERATION_CONCAT_INPUT_DESCS", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_CONCAT_OUTPUT_DESC", "MIOPEN_ATTR_OPERATION_CONCAT_OUTPUT_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_ALPHA", "MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_ALPHA", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_BETA", "MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_BETA", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_CONV_DESC", "MIOPEN_ATTR_OPERATION_CONVOLUTION_BWD_DATA_CONV_DESC", "numeric_literal");
Expand Down Expand Up @@ -3419,6 +3423,32 @@ sub rocSubstitutions {
subst("CUDNN_ATTR_OPERATION_MATMUL_GEMM_M_OVERRIDE_DESC", "MIOPEN_ATTR_OPERATION_MATMUL_GEMM_M_OVERRIDE_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_MATMUL_GEMM_N_OVERRIDE_DESC", "MIOPEN_ATTR_OPERATION_MATMUL_GEMM_N_OVERRIDE_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_MATMUL_IRREGULARLY_STRIDED_BATCH_COUNT", "MIOPEN_ATTR_OPERATION_MATMUL_IRREGULARLY_STRIDED_BATCH_COUNT", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_DBIAS_DESC", "MIOPEN_ATTR_OPERATION_NORM_BWD_DBIAS_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_DSCALE_DESC", "MIOPEN_ATTR_OPERATION_NORM_BWD_DSCALE_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_DXDESC", "MIOPEN_ATTR_OPERATION_NORM_BWD_DXDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_DYDESC", "MIOPEN_ATTR_OPERATION_NORM_BWD_DYDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_EPSILON_DESC", "MIOPEN_ATTR_OPERATION_NORM_BWD_EPSILON_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_INV_VARIANCE_DESC", "MIOPEN_ATTR_OPERATION_NORM_BWD_INV_VARIANCE_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_MEAN_DESC", "MIOPEN_ATTR_OPERATION_NORM_BWD_MEAN_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_MODE", "MIOPEN_ATTR_OPERATION_NORM_BWD_MODE", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_PEER_STAT_DESCS", "MIOPEN_ATTR_OPERATION_NORM_BWD_PEER_STAT_DESCS", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_SCALE_DESC", "MIOPEN_ATTR_OPERATION_NORM_BWD_SCALE_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_BWD_XDESC", "MIOPEN_ATTR_OPERATION_NORM_BWD_XDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_BIAS_DESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_BIAS_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_EPSILON_DESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_EPSILON_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_EXP_AVG_FACTOR_DESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_EXP_AVG_FACTOR_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_INPUT_RUNNING_MEAN_DESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_INPUT_RUNNING_MEAN_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_INPUT_RUNNING_VAR_DESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_INPUT_RUNNING_VAR_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_INV_VARIANCE_DESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_INV_VARIANCE_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_MEAN_DESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_MEAN_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_MODE", "MIOPEN_ATTR_OPERATION_NORM_FWD_MODE", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_OUTPUT_RUNNING_MEAN_DESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_OUTPUT_RUNNING_MEAN_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_OUTPUT_RUNNING_VAR_DESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_OUTPUT_RUNNING_VAR_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_PEER_STAT_DESCS", "MIOPEN_ATTR_OPERATION_NORM_FWD_PEER_STAT_DESCS", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_PHASE", "MIOPEN_ATTR_OPERATION_NORM_FWD_PHASE", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_SCALE_DESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_SCALE_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_XDESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_XDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_NORM_FWD_YDESC", "MIOPEN_ATTR_OPERATION_NORM_FWD_YDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_POINTWISE_ALPHA1", "MIOPEN_ATTR_OPERATION_POINTWISE_ALPHA1", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_POINTWISE_ALPHA2", "MIOPEN_ATTR_OPERATION_POINTWISE_ALPHA2", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_POINTWISE_BDESC", "MIOPEN_ATTR_OPERATION_POINTWISE_BDESC", "numeric_literal");
Expand All @@ -3431,6 +3461,31 @@ sub rocSubstitutions {
subst("CUDNN_ATTR_OPERATION_REDUCTION_DESC", "MIOPEN_ATTR_OPERATION_REDUCTION_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_REDUCTION_XDESC", "MIOPEN_ATTR_OPERATION_REDUCTION_XDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_REDUCTION_YDESC", "MIOPEN_ATTR_OPERATION_REDUCTION_YDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_BWD_ALPHA", "MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_ALPHA", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_BWD_BETA", "MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_BETA", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_BWD_DESC", "MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_BWD_DXDESC", "MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_DXDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_BWD_DYDESC", "MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_DYDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_BWD_IDXDESC", "MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_IDXDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_BWD_XDESC", "MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_XDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_BWD_YDESC", "MIOPEN_ATTR_OPERATION_RESAMPLE_BWD_YDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_FWD_ALPHA", "MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_ALPHA", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_FWD_BETA", "MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_BETA", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_FWD_DESC", "MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_FWD_IDXDESC", "MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_IDXDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_FWD_XDESC", "MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_XDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESAMPLE_FWD_YDESC", "MIOPEN_ATTR_OPERATION_RESAMPLE_FWD_YDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESHAPE_XDESC", "MIOPEN_ATTR_OPERATION_RESHAPE_XDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RESHAPE_YDESC", "MIOPEN_ATTR_OPERATION_RESHAPE_YDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RNG_DESC", "MIOPEN_ATTR_OPERATION_RNG_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RNG_OFFSET_DESC", "MIOPEN_ATTR_OPERATION_RNG_OFFSET_DESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RNG_SEED", "MIOPEN_ATTR_OPERATION_RNG_SEED", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_RNG_YDESC", "MIOPEN_ATTR_OPERATION_RNG_YDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_SIGNAL_FLAGDESC", "MIOPEN_ATTR_OPERATION_SIGNAL_FLAGDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_SIGNAL_MODE", "MIOPEN_ATTR_OPERATION_SIGNAL_MODE", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_SIGNAL_VALUE", "MIOPEN_ATTR_OPERATION_SIGNAL_VALUE", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_SIGNAL_XDESC", "MIOPEN_ATTR_OPERATION_SIGNAL_XDESC", "numeric_literal");
subst("CUDNN_ATTR_OPERATION_SIGNAL_YDESC", "MIOPEN_ATTR_OPERATION_SIGNAL_YDESC", "numeric_literal");
subst("CUDNN_ATTR_POINTWISE_AXIS", "MIOPEN_ATTR_POINTWISE_AXIS", "numeric_literal");
subst("CUDNN_ATTR_POINTWISE_ELU_ALPHA", "MIOPEN_ATTR_POINTWISE_ELU_ALPHA", "numeric_literal");
subst("CUDNN_ATTR_POINTWISE_MATH_PREC", "MIOPEN_ATTR_POINTWISE_MATH_PREC", "numeric_literal");
Expand All @@ -3452,6 +3507,12 @@ sub rocSubstitutions {
subst("CUDNN_ATTR_RESAMPLE_SPATIAL_DIMS", "MIOPEN_ATTR_RESAMPLE_SPATIAL_DIMS", "numeric_literal");
subst("CUDNN_ATTR_RESAMPLE_STRIDES", "MIOPEN_ATTR_RESAMPLE_STRIDES", "numeric_literal");
subst("CUDNN_ATTR_RESAMPLE_WINDOW_DIMS", "MIOPEN_ATTR_RESAMPLE_WINDOW_DIMS", "numeric_literal");
subst("CUDNN_ATTR_RNG_BERNOULLI_DIST_PROBABILITY", "MIOPEN_ATTR_RNG_BERNOULLI_DIST_PROBABILITY", "numeric_literal");
subst("CUDNN_ATTR_RNG_DISTRIBUTION", "MIOPEN_ATTR_RNG_DISTRIBUTION", "numeric_literal");
subst("CUDNN_ATTR_RNG_NORMAL_DIST_MEAN", "MIOPEN_ATTR_RNG_NORMAL_DIST_MEAN", "numeric_literal");
subst("CUDNN_ATTR_RNG_NORMAL_DIST_STANDARD_DEVIATION", "MIOPEN_ATTR_RNG_NORMAL_DIST_STANDARD_DEVIATION", "numeric_literal");
subst("CUDNN_ATTR_RNG_UNIFORM_DIST_MAXIMUM", "MIOPEN_ATTR_RNG_UNIFORM_DIST_MAXIMUM", "numeric_literal");
subst("CUDNN_ATTR_RNG_UNIFORM_DIST_MINIMUM", "MIOPEN_ATTR_RNG_UNIFORM_DIST_MINIMUM", "numeric_literal");
subst("CUDNN_ATTR_TENSOR_BYTE_ALIGNMENT", "MIOPEN_ATTR_TENSOR_BYTE_ALIGNMENT", "numeric_literal");
subst("CUDNN_ATTR_TENSOR_DATA_TYPE", "MIOPEN_ATTR_TENSOR_DATA_TYPE", "numeric_literal");
subst("CUDNN_ATTR_TENSOR_DIMENSIONS", "MIOPEN_ATTR_TENSOR_DIMENSIONS", "numeric_literal");
Expand Down
Loading