def METHOD_NAME(self, writer):
    kernel = writer.kernel
    dataType = kernel["ProblemType"]["DataType"]
    miM = kernel["MatrixInstM"]
    miN = kernel["MatrixInstN"]
    if dataType.isSingle() or dataType.isSingleComplex() or dataType.isHalf() or dataType.isBFloat16():
        if miM == 4 and miN == 4:
            return 2
    elif dataType.isDouble() or dataType.isDoubleComplex():
        if miM == 4 and miN == 4:
            return 4
    return 0