def _optimize_schedule_padding(cluster, schedule, platform):
    '\n    Round up the innermost IterationInterval of the tensor temporaries IterationSpace\n    to a multiple of the SIMD vector length. This is not always possible though (it\n    depends on how much halo is safely accessible in all read Functions).\n    '
    processed = []
    for i in schedule:
        try:
            it = i.ispace.itintervals[(- 1)]
            if (ROUNDABLE in cluster.properties[it.dim]):
                vl = platform.simd_items_per_reg(cluster.dtype)
                ispace = i.ispace.add(Interval(it.dim, 0, (it.interval.size % vl)))
            else:
                ispace = i.ispace
            processed.append(ScheduledAlias(i.alias, i.writeto, ispace, i.aliaseds, i.indicess))
        except (TypeError, KeyError):
            processed.append(i)
    return Schedule(*processed, dmapper=schedule.dmapper, rmapper=schedule.rmapper)
Round up the innermost IterationInterval of the tensor temporaries IterationSpace
to a multiple of the SIMD vector length. This is not always possible though (it
depends on how much halo is safely accessible in all read Functions).
def _optimize_schedule_padding(cluster, schedule, platform):
    '\n    Round up the innermost IterationInterval of the tensor temporaries IterationSpace\n    to a multiple of the SIMD vector length. This is not always possible though (it\n    depends on how much halo is safely accessible in all read Functions).\n    '
    processed = []
    for i in schedule:
        try:
            it = i.ispace.itintervals[(- 1)]
            if (ROUNDABLE in cluster.properties[it.dim]):
                vl = platform.simd_items_per_reg(cluster.dtype)
                ispace = i.ispace.add(Interval(it.dim, 0, (it.interval.size % vl)))
            else:
                ispace = i.ispace
            processed.append(ScheduledAlias(i.alias, i.writeto, ispace, i.aliaseds, i.indicess))
        except (TypeError, KeyError):
            processed.append(i)
    return Schedule(*processed, dmapper=schedule.dmapper, rmapper=schedule.rmapper)