def kernel_name(op, func_attrs):
    """Returns kernel_name given input cutlass op_instance and operator attrs."""

    from cutlass_lib import library

    threadblock = op.tile_description.procedural_name()
    extended_name = op.extended_name()
    opcode_class_name = library.OpcodeClassNames[
        op.tile_description.math_instruction.opcode_class
    ]
    layout = op.layout_name()
    align_ab = op.A.alignment
    align_c = op.C.alignment

    name = KERNEL_KEY_TEMPLATE.render(
        threadblock=threadblock,
        extended_name=extended_name,
        opcode_class_name=opcode_class_name,
        layout=layout,
        align_ab=align_ab,
        align_c=align_c,
    )
    return name.replace("\n", "")
Returns kernel_name given input cutlass op_instance and operator attrs.
python/aitemplate/backend/cuda/gemm_epilogue_vistor/common_dual_gemm.py