首页> 外国专利> IMPROVING DATA LOCALITY AND PARALLELISM BY CODE REPLICATION AND ARRAY CONTRACTION

IMPROVING DATA LOCALITY AND PARALLELISM BY CODE REPLICATION AND ARRAY CONTRACTION

机译:通过代码复制和数组约束改善数据局部性和并行性

摘要

Provided are a method, system, and article of manufacture improving data locality and parallelism by code replication and array contraction. Source code including an array of elements referenced using at least two indices is processed. The array is nested within multiple loops, wherein at least two of the loops perform iterations with respect to the indices of the array, wherein the index incremented in at least one innermost loop of the loops does not comprise a leftmost index in the array. The source code is transformed to object code by performing operations including fusing at least two innermost loops of the loops in object code generated by compiling the source code by replicating statements from at least one of the innermost loops into a fused innermost loop and performing loop interchange in the object code to have the fused innermost loop provide iterations with respect to the leftmost index in the array.
机译:提供一种通过代码复制和阵列收缩来改善数据局部性和并行性的方法,系统和制造品。处理包括使用至少两个索引引用的元素数组的源代码。该阵列嵌套在多个循环中,其中至少两个循环相对于该阵列的索引执行迭代,其中在循环的至少一个最内层循环中递增的索引不包括该阵列中的最左索引。通过执行以下操作将源代码转换为目标代码,这些操作包括将目标代码中的至少两个最内层循环融合在一起,这些目标代码是通过将语句从最内层循环中的至少一个复制到融合的最内层循环并执行循环交换来编译源代码而生成的在目标代码中,具有融合的最里面的循环提供相对于数组中最左边的索引的迭代。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号