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.
Performance of Kepler GTX Titan GPUs and Xeon Phi System
NVIDIA的新架构Kepler通过新的流式多处理器SMX显著提高了GPU的性能。除了性能,NVIDIA还推出了许多新技术,如直接并行,hyper-Q和GPU Direct with RDMA。除了其他常见的GPU,英伟达还发布了另一个开普勒'GeForce' GPU命名为GTX泰坦。GeForce GTX Titan不仅适用于游戏,还适用于CUDA的高性能计算。尽管如此,它还是比Kepler Tesla GPU便宜得多。同时,Intel推出了新的多集成核(MIC)系统Xeon Phi。理论上,Xeon Phi协处理器可以提供与NVIDIA Kepler GPU相似的性能,但实际上,它的性能明显不如GTX Titan。
格点QCD模拟的运行时间由一个小内核控制,它计算一个向量与一个稀疏矩阵的乘积,称为“Dslash”算子。因此,该内核经常针对各种HPC架构进行优化。在本文中,我们比较了英特尔至强融核与当前基于开普勒的NVIDIA Tesla GPU运行共轭梯度求解器的性能。通过同时反转多个向量,将更多的并行性暴露给加速器,我们在两种架构上都获得了250 GFlop/s的性能。这使反演的性能提高了一倍多。我们给出了一个简短的概述这两种架构,讨论了一些细节的实施和所需的努力,以获得所取得的性能。
Data-parallel distributed training of very large models beyond GPU capacity
IBM;IBM Research(IBM研究院)
GPU的内存有限,很难训练宽和/或深的模型,这会导致训练过程耗尽内存。本文展示了一种名为Large Model Support(LMS)的开源工具如何利用CPU和GPU之间的高带宽NVLink连接来完成深度卷积网络的训练。LMS在CPU内存和GPU内存之间执行张量交换,使得在训练步骤中仅将所需的最小数量的张量保留在GPU内存中。它还显示了LMS如何与基于MPI的分布式深度学习模块相结合,以跨多个GPU的数据并行方式训练模型,使得每个GPU都利用CPU内存进行张量交换。讨论了支持高带宽GPU与CPU链接的硬件架构,以及作为PowerAI包提供的相关软件工具集。