def find_max_alignment(number: int, dtype: str) -> int:
    """
    Return the first alignment value that meets the alignment requirement
    for accessing the `number` of elements. This is dtype dependent.
    """
    alignments = get_alignments(dtype)
    for alignment in alignments:
        if number % alignment == 0:
            return alignment
    return 1

    Return the first alignment value that meets the alignment requirement
    for accessing the `number` of elements. This is dtype dependent.
    
python/aitemplate/utils/alignment.py