Implementing the Jacobi Algorithm for Solving Eigenvalues of Symmetric Matrices with CUDA

Tao Wang, Longjiang Guo, Guilin Li, Jinbao Li, Renda Wang, Meirui Ren, J. He
{"title":"Implementing the Jacobi Algorithm for Solving Eigenvalues of Symmetric Matrices with CUDA","authors":"Tao Wang, Longjiang Guo, Guilin Li, Jinbao Li, Renda Wang, Meirui Ren, J. He","doi":"10.1109/NAS.2012.12","DOIUrl":null,"url":null,"abstract":"Solving the eigenvalues of matrices is an open problem which is often related to scientific computation. With the increasing of the order of matrices, traditional sequential algorithms are unable to meet the needs for the calculation time. Although people can use cluster systems in a short time to solve the eigenvalues of large-scale matrices, it will bring an increase in equipment costs and power consumption. This paper proposes a parallel algorithm named Jacobi on gpu which is implemented by CUDA (Computer Unified Device Architecture) on GPU (Graphic Process Unit) to solve the eigenvalues of symmetric matrices. In our experimental environment, we have Intel Core i5-760 quad-core CPU, NVIDIA GeForce GTX460 card, and Win7 64-bit operating system. When the size of matrix is 10240×10240, the number of iterations is 10000 times, the speedup ratio is 13.71. As the size of matrices increase, the speedup ratio increases correspondingly. Moreover, as the number of iterations increases, the speedup ratio is very stable. When the size of matrix is 8192×8192, the number of iterations are 1000, 2000, 4000, 8000 and 16000 respectively, the standard deviation of the speedup ratio is 0.1161. The experimental results show that the Jacobi on gpu algorithm can save more running time than traditional sequential algorithms and the speedup ratio is 3.02~13.71. Therefore, the computing time of traditional sequential algorithms to solve the eigenvalues of matrices is reduced significantly.","PeriodicalId":197668,"journal":{"name":"2012 IEEE Seventh International Conference on Networking, Architecture, and Storage","volume":"498 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2012-06-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"8","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2012 IEEE Seventh International Conference on Networking, Architecture, and Storage","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/NAS.2012.12","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 8

Abstract

Solving the eigenvalues of matrices is an open problem which is often related to scientific computation. With the increasing of the order of matrices, traditional sequential algorithms are unable to meet the needs for the calculation time. Although people can use cluster systems in a short time to solve the eigenvalues of large-scale matrices, it will bring an increase in equipment costs and power consumption. This paper proposes a parallel algorithm named Jacobi on gpu which is implemented by CUDA (Computer Unified Device Architecture) on GPU (Graphic Process Unit) to solve the eigenvalues of symmetric matrices. In our experimental environment, we have Intel Core i5-760 quad-core CPU, NVIDIA GeForce GTX460 card, and Win7 64-bit operating system. When the size of matrix is 10240×10240, the number of iterations is 10000 times, the speedup ratio is 13.71. As the size of matrices increase, the speedup ratio increases correspondingly. Moreover, as the number of iterations increases, the speedup ratio is very stable. When the size of matrix is 8192×8192, the number of iterations are 1000, 2000, 4000, 8000 and 16000 respectively, the standard deviation of the speedup ratio is 0.1161. The experimental results show that the Jacobi on gpu algorithm can save more running time than traditional sequential algorithms and the speedup ratio is 3.02~13.71. Therefore, the computing time of traditional sequential algorithms to solve the eigenvalues of matrices is reduced significantly.
用CUDA实现求解对称矩阵特征值的Jacobi算法
求解矩阵的特征值是一个经常与科学计算相关的开放性问题。随着矩阵阶数的增加,传统的顺序算法已不能满足计算时间的需要。虽然人们可以在短时间内使用集群系统求解大规模矩阵的特征值,但这会带来设备成本和功耗的增加。本文提出了一种基于图形处理单元CUDA实现的求解对称矩阵特征值的并行算法Jacobi。在我们的实验环境中,我们有Intel酷睿i5-760四核CPU, NVIDIA GeForce GTX460卡,Win7 64位操作系统。当矩阵大小为10240×10240,迭代次数为10000次时,加速比为13.71。随着矩阵大小的增大,加速比也相应增大。而且,随着迭代次数的增加,加速比非常稳定。当矩阵大小为8192×8192,迭代次数分别为1000、2000、4000、8000、16000次时,加速比标准差为0.1161。实验结果表明,基于gpu的Jacobi算法比传统的顺序算法节省了更多的运行时间,加速比为3.02~13.71。因此,求解矩阵特征值的传统顺序算法的计算时间大大缩短。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书