首页> 外文期刊>Computer languages >On minimizing register usage of linearly scheduled algorithms with uniform dependencies
【24h】

On minimizing register usage of linearly scheduled algorithms with uniform dependencies

机译:关于最小化具有一致依赖性的线性调度算法的寄存器使用率

获取原文
获取原文并翻译 | 示例
       

摘要

Efficient register usage is crucial to avoid the bottlenecks associated with accessing memory. This problem becomes magnified in loop nests since the number of variable accesses accumulated increases in each iteration. Although cache memory helps alleviate the speed penalties associated with memory access, having a register file with sufficient capacity to avoid spilling registers is needed to extract the maximum performance of a system.rnIn this paper, we discuss an approach to minimize register pressure of loop nests with regular dependencies through the use of linear schedules in conjunction with loop unrolling. Linear scheduling is a method of partitioning the indexes of loop nests into a series of hyperplanes defined by a vector parameter ∏. Once a suitable linear schedule has been discovered, the loop nest will be unrolled in a way that satisfies ∏. For each linear schedule, we determine the minimum number of registers needed by the loop nest to avoid spilling (i.e. each variable is loaded into a register exactly once during a loop nest). In the case where the loop nests contains variables with at most one dependence we present a method to estimate the number of registers used. Otherwise we employ a more general method to determine the exact register requirements. Our experimental results indicate that an optimal linear schedule uses 36% fewer register than a schedule that uses the most registers on average.
机译:高效使用寄存器对于避免与访问内存相关的瓶颈至关重要。由于每次迭代中累积的变量访问数量增加,因此在循环嵌套中此问题变得更加严重。尽管高速缓存有助于减轻与内存访问相关的速度损失,但是需要具有足够容量的寄存器文件以避免溢出寄存器,以提取系统的最大性能。在本文中,我们讨论了一种使循环嵌套的寄存器压力最小化的方法。通过使用线性计划与循环展开相结合,从而具有常规依赖性。线性调度是将循环嵌套的索引划分为由向量参数defined定义的一系列超平面的方法。一旦找到合适的线性时间表,循环嵌套将以满足way的方式展开。对于每个线性调度,我们确定循环嵌套所需的最少寄存器数量,以避免溢出(即,每个变量在循环嵌套期间仅一次加载到寄存器中)。在循环嵌套包含最多具有一个相关性的变量的情况下,我们提出一种估计使用的寄存器数量的方法。否则,我们将采用更通用的方法来确定确切的寄存器要求。我们的实验结果表明,最佳的线性计划所使用的寄存器比平均使用最多寄存器的计划少36%。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号