首页 | 本学科首页   官方微博 | 高级检索  
     

基于PPR模型的稀疏矩阵向量乘及卷积性能优化研究
引用本文:谢震,谭光明,孙凝晖.基于PPR模型的稀疏矩阵向量乘及卷积性能优化研究[J].计算机研究与发展,2021,58(3):445-457.
作者姓名:谢震  谭光明  孙凝晖
作者单位:计算机体系结构国家重点实验室(中国科学院计算技术研究所) 北京100190;中国科学院计算技术研究所 北京100190;中国科学院大学计算机与控制学院 北京100049;计算机体系结构国家重点实验室(中国科学院计算技术研究所) 北京100190;中国科学院计算技术研究所 北京100190
基金项目:国家自然科学基金项目;国家重点研发项目;中国科学院战略性先导科技专项(C类)
摘    要:稀疏矩阵向量乘和卷积作为高性能计算的两大计算核心,是非规则和规则访存的典型代表.目前已经做了许多针对性的优化工作,但是对于大量运行着不同指令集和拥有不同计算和访存性能的机器,仍然无法判定在特定的体系结构下导致性能效率无法被完全释放的主要原因及性能瓶颈,同时也很难准确预测出程序在特定机器上可达到的最佳性能.通过使用性能模...

关 键 词:性能模型  反馈优化  稀疏矩阵向量乘  卷积  cache模拟器

Research on Optimal Performance of Sparse Matrix-Vector Multiplication and Convoulution Using the Probability-Process-Ram Model
Xie Zhen,Tan Guangming,Sun Ninghui.Research on Optimal Performance of Sparse Matrix-Vector Multiplication and Convoulution Using the Probability-Process-Ram Model[J].Journal of Computer Research and Development,2021,58(3):445-457.
Authors:Xie Zhen  Tan Guangming  Sun Ninghui
Affiliation:(State Key Laboratory of Computer Architecture(Institute of Computing Technology,Chinese Academy of Sciences),Beijing 100190;Institute of Computing Technology,Chinese Academy of Sciences,Beijing 100190;School of Computer and Control Engineering,University of Chinese Academy of Sciences,Beijing 100049)
Abstract:Performance models provide insightful perspectives to allow us to predict performance and propose optimization guidance.Although there has been much research,pinpointing bottlenecks of various memory access patterns and reaching high performance of both regular and irregular programs on various hardware configurations are still not trivial.In this work,we propose a novel model called probability-process-ram(PPR)to quantify the amount of compute and data transfer time on general-purpose multicore processors.The PPR model predicts the number of instruction for single-core and probability of memory access between each memory hierarchy through a newly designed cache simulator.By using the automatically extracted best optimization method and expectation,we use PPR model for analyzing and optimizing sparse matrix-vector multiplication and 1D convolution as case study for typical irregular and regular computational kernels.Then we obtain best block sizes for sparse matrices with various sparsity structures,as well as optimal optimization guidance for 1D convolution with different instruction sets support and data sizes.Comparison with Roofline model and ECM model,the proposed PPR model greatly improves prediction accuracy by the newly designed cache simulator and achieves comprehensive feedback ability.
Keywords:performance model  feedback optimization  sparse matrix-vector multiplication  convolu-tion  cache simulator
本文献已被 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号