多核数字信号处理器并行矩阵转置算法优化  被引量:3

Optimizing parallel matrix transpose algorithm on multi-core digital signal processors

在线阅读下载全文

作  者:裴向东 王庆林[1,2] 廖林玉 李荣春 梅松竹[1,2] 刘杰 庞征斌[1] PEI Xiangdong;WANG Qinglin;LIAO Linyu;LI Rongchun;MEI Songzhu;LIU Jie;PANG Zhengbin(College of Coaputer Scienee and Technology,National Univesity of Defense Technology,Changsha 410073,Chima;Science and Technology on Parallel and Distributed Pocssing Laboratory,Nationud Uniersity of Dedese Technology,Changshu 410073,China)

机构地区:[1]国防科技大学计算机学院,湖南长沙410073 [2]国防科技大学并行与分布处理国防科技重点实验室,湖南长沙410073

出  处:《国防科技大学学报》2023年第1期57-66,共10页Journal of National University of Defense Technology

基  金:国家自然科学基金资助项目(62002365)。

摘  要:矩阵转置是矩阵运算的基本操作,广泛应用于信号处理、科学计算以及深度学习等各种领域。随着国防科技大学自主研制的飞腾异构多核数字信号处理器(digital signal processor, DSP)在各种领域中的推广应用,对高性能矩阵转置实现提出了强烈需求。针对飞腾异构多核DSP的体系结构特征与矩阵转置操作的特点,提出了一种适配不同数据位宽(8 B、4 B以及2 B)矩阵的并行矩阵转置算法ftmMT。该算法基于DSP中向量处理单元的Load/Store部件实现了向量化,同时基于矩阵分块实现了多个DSP核的并行处理,通过隐式乒乓设计实现了片上向量化转置与片外访存的重叠以及访存性能的大幅提升。实验结果表明,ftmMT能够显著加快矩阵转置操作,与CPU上的开源转置库HPTT相比,可获得高达8.99倍的性能加速。Matrix transpose is one of the common matrix operations, which is widely employed in various fields such as signal processing, scientific computing, and deep learning. With the popularization of Phytium heterogeneous multi-core DSPs(digital signal processors) developed by National University of Defense Technology, there is a strong demand for high-performance matrix transpose implementations for Phytium multi-core DSPs. Based on the architecture of multi-core DSPs and the characteristic of matrix transpose operations, a parallel matrix transpose algorithm(called ftmMT) for matrices with different element bit widths(8 B, 4 B, and 2 B) was proposed. In ftmMT, the main optimizations include vectorization based on vector Load/Store functions, core-level parallelization based on matrix blocking, and overlapping between vectorization and memory access through implicit ping-pong methods. The experimental results show that ftmMT can significantly improve the performance of matrix transpose operations, and achieve a speedup of up to 8.99 times in comparison with the open-source transpose library HPTT running on CPU.

关 键 词:多核DSP 矩阵转置 并行算法 算法优化 

分 类 号:TP391[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象