高性能矩阵乘法
High Performance Matrix Multiplication
AI总结:
该研究对比了基于CuBLAS、CUDA、BLAS、OpenMP、C++ Threads的五种矩阵乘法算法性能,通过统计验证得出大尺寸方阵下各算法的FLOPS性能排序。
摘要:
矩阵乘法是深度学习、科学模拟、视频图形等高性能技术取得诸多成功的基础。Python、R 等高级编程语言依赖高度优化的底层库来执行核心线性代数运算,例如来自基础线性代数子程序(Basic Linear Algebra Subprograms,BLAS)的矩阵乘法。本文对比了基于 CuBLAS、CUDA、BLAS、OpenMP 和 C++ Threads 的五种不同矩阵乘法算法的性能。我们发现 p 值低于 5e-12 的统计显著性,支持以下假设:对于 N 至少为 10000 的 N×N 方阵,这些矩阵乘法算法按每秒浮点运算次数(FLOPS)衡量的顺序性能从高到低依次为 CuBLAS、CUDA、BLAS、OpenMP 和 C++ Threads。
英文摘要:
Matrix multiplication is the foundation from much of the success from high performance technologies like deep learning, scientific simulations, and video graphics. High level programming languages like Python and R rely on highly optimized low level libraries for performing core linear algebra operations like matrix multiplication from Basic Linear Algebra Subprograms (BLAS). This paper compares the performance of five different matrix multiplication algorithms using CuBLAS, CUDA, BLAS, OpenMP, and C++ Threads. We find statistical significance with a p-value below 5e-12 to support the hypothesis that for square $N \times N$ matrices where $N$ is at least 10,000 then the in order performance as measured in floating point operations per second (FLOPS) for these matrix multiplication algorithms is CuBLAS, CUDA, BLAS, OpenMP, and C++ Threads.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。