arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1705.10591cs.DCcs.LG
收藏

Kepler GPU上卷积核的内存效率优化

Optimizing Memory Efficiency for Convolution Kernels on Kepler GPUs

University of Notre Dame(圣母大学)

Xiaoming Chen, Jianxu Chen, Danny Z. Chen, Xiaobo Sharon Hu

摘要:

卷积是计算机视觉、自然语言处理、图像处理等许多应用中的基本操作。最近卷积神经网络在各种深度学习应用中的成功对快速卷积提出了更高的要求。图形处理单元(GPU)的高计算吞吐量和内存带宽使GPU成为加速卷积运算的自然选择。然而,最大限度地利用GPU的可用内存带宽进行卷积是一项具有挑战性的任务。针对GPU的存储体宽度与线程的计算数据宽度不匹配的问题,提出了一种通用的模型。基于这个模型,我们开发了两个卷积核,一个用于一般情况,另一个用于具有一个输入通道的特殊情况。通过仔细优化内存访问模式和计算模式,我们设计了一个通信优化的内核的特殊情况下和通信减少的内核的一般情况下。基于Kepler GPU实现的实验数据显示,我们的内核在特殊情况和一般情况下分别比最新的cuDNN库实现了5.16倍和35.5%的平均性能提升。

英文摘要:

Convolution is a fundamental operation in many applications, such as computer vision, natural language processing, image processing, etc. Recent successes of convolutional neural networks in various deep learning applications put even higher demand on fast convolution. The high computation throughput and memory bandwidth of graphics processing units (GPUs) make GPUs a natural choice for accelerating convolution operations. However, maximally exploiting the available memory bandwidth of GPUs for convolution is a challenging task. This paper introduces a general model to address the mismatch between the memory bank width of GPUs and computation data width of threads. Based on this model, we develop two convolution kernels, one for the general case and the other for a special case with one input channel. By carefully optimizing memory access patterns and computation patterns, we design a communication-optimized kernel for the special case and a communication-reduced kernel for the general case. Experimental data based on implementations on Kepler GPUs show that our kernels achieve 5.16X and 35.5% average performance improvement over the latest cuDNN library, for the special case and the general case, respectively.

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

↑