计算机工程与应用 ›› 2013, Vol. 49 ›› Issue (16): 221-224.

• 工程与应用 • 上一篇    下一篇

基于CUDA的快速大整数乘法

许  亮1,王  震2   

  1. 1.湖南第一师范学院 信息科学与工程系,长沙 410205
    2.湖南大学 嵌入式与网络计算湖南省重点实验室,长沙 410082
  • 出版日期:2013-08-15 发布日期:2013-08-15

Fast large integer multiplication based on CUDA

XU Liang1, WANG Zhen2   

  1. 1.Department of Information Science & Engineering, Hunan First Normal University, Changsha 410205, China
    2.Key Laboratory for Embedded and Network Computing of Hunan Province, Hunan University, Changsha 410082, China
  • Online:2013-08-15 Published:2013-08-15

摘要: 针对快速傅里叶变换下的快速大整数乘法,给出了一种基于CUDA架构的GPU并行化加速的实现方法。通过分析整数快速乘法中的每一步骤,分别给出各步骤的并行化实现方法,并采用数据压缩等策略,对算法进行优化。实验表明该方法有效地提高了算法效率,随着数据规模的增长,可获得18倍以上的加速比。

关键词: 图形处理单元, 统一计算设备架构, 大整数乘法, 快速傅里叶变换

Abstract: Concerning the fast large integer multiplication based on fast Fourier transform, a GPU parallel method based on CUDA architecture is proposed. By each steps in the fast large integer multiplication, parallel implementation is given respectively. Then the algorithm is optimized through data compression. Experiments result show that the method improves the efficiency of the algorithm, and can reach more than 18 times speedup ratio with the increase of data scale.

Key words: Graphics Processor Units(GPU), Compute Unified Device Architecture(CUDA), large integer multiplication, Fast Fourier Transformation(FFT)