用其他循环组成循环携带依赖
Composing Loop-carried Dependence with Other Loops
摘要:
稀疏融合是一种编译时循环转换和运行时调度,实现为特定于域的代码生成器。稀疏融合为两个稀疏矩阵内核的组合生成高效的并行代码,其中至少一个内核具有循环承载依赖性。可用的实现优化单个稀疏内核。当单独优化时,稀疏内核的不规则依赖模式会产生同步开销和负载不平衡,并且它们的不规则存储器访问模式会导致低效的缓存使用,从而降低并行效率。稀疏融合使用一种新的检查策略与代码转换生成并行融合代码的稀疏内核组合,优化数据的局部性和负载平衡。对于各种内核组合,稀疏融合生成的代码平均性能分别优于现有实现ParSy和MKL 1.6倍和5.1倍,并且平均性能分别优于应用于融合数据依赖图的LBC和DAGP粗化策略5.1倍和7.2倍。
英文摘要:
Sparse fusion is a compile-time loop transformation and runtime scheduling implemented as a domain-specific code generator. Sparse fusion generates efficient parallel code for the combination of two sparse matrix kernels where at least one of the kernels has loop-carried dependencies. Available implementations optimize individual sparse kernels. When optimized separately, the irregular dependence patterns of sparse kernels create synchronization overheads and load imbalance, and their irregular memory access patterns result in inefficient cache usage, which reduces parallel efficiency. Sparse fusion uses a novel inspection strategy with code transformations to generate parallel fused code for sparse kernel combinations that is optimized for data locality and load balance. Code generated by Sparse fusion outperforms the existing implementations ParSy and MKL on average 1.6X and 5.1X respectively and outperforms the LBC and DAGP coarsening strategies applied to a fused data dependence graph on average 5.1X and 7.2X respectively for various kernel combinations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。