arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1304.7053cs.MScs.DCcs.NAmath.NA
收藏

面向NVIDIA GPU的多小矩阵GEMM接口与实现

A GEMM interface and implementation on NVIDIA GPUs for multiple small matrices

Tech-X Corporation(Tech-X公司)

Chetan Jhurani, Paul Mullowney

AI总结:

本文提出一种在NVIDIA GPU上处理多个小矩阵的GEMM接口与实现,针对小于16的矩阵尺寸,实现速度比CUDA Toolkit 5.0的批量cuBLAS快30%至600%,适用于有限元计算等应用。

摘要:

我们提出了一个通用矩阵乘法(GEMM)例程的接口和实现,用于在NVIDIA图形处理单元(GPU)上同时处理多个小矩阵。我们专注于尺寸小于16的矩阵。该实现可以轻松扩展到更大的尺寸。对于单精度矩阵,我们的实现比CUDA Toolkit 5.0分发的批量cuBLAS在NVIDIA Tesla K20c上快30%至600%。例如,当乘以100,000个独立的10和16尺寸矩阵对时,我们获得104 GFlop/s和216 GFlop/s。对于其他尺寸,在单精度和双精度下,对于实数和复数类型,以及当矩阵数量较小时,也获得了相似的性能提升。除了我们的实现,我们的不同函数接口也在性能提升中发挥了重要作用。该软件的应用包括GPU上的有限元计算。

英文摘要:

We present an interface and an implementation of the General Matrix Multiply (GEMM) routine for multiple small matrices processed simultaneously on NVIDIA graphics processing units (GPUs). We focus on matrix sizes under 16. The implementation can be easily extended to larger sizes. For single precision matrices, our implementation is 30% to 600% faster than the batched cuBLAS implementation distributed in the CUDA Toolkit 5.0 on NVIDIA Tesla K20c. For example, we obtain 104 GFlop/s and 216 GFlop/s when multiplying 100,000 independent matrix pairs of size 10 and 16, respectively. Similar improvement in performance is obtained for other sizes, in single and double precision for real and complex types, and when the number of matrices is smaller. Apart from our implementation, our different function interface also plays an important role in the improved performance. Applications of this software include Finite Element computation on GPUs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑