arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1410.0759cs.NEcs.LGcs.MS
收藏

cuDNN:用于深度学习的高效基元

cuDNN: Efficient Primitives for Deep Learning

NVIDIA(英伟达);Baidu Research(百度研究院);UC Berkeley(加州大学伯克利分校)

Sharan Chetlur, Cliff Woolley, Philippe Vandermersch, Jonathan Cohen, John Tran, Bryan Catanzaro, Evan Shelhamer

摘要:

我们提出了一个深度学习原语的高效实现库。深度学习工作负载是计算密集型的,优化其内核是困难和耗时的。随着并行架构的发展,内核必须重新优化,这使得随着时间的推移维护代码库变得困难。在HPC社区中,类似的问题已经通过诸如基本线性代数子例程(BLAS)之类的库得到了解决。然而,没有类似的深度学习库。如果没有这样的库,在并行处理器上实现深度学习工作负载的研究人员必须创建和优化他们自己的主要计算内核的实现,并且随着新的并行处理器的出现,必须重复这项工作。为了解决这个问题,我们创建了一个类似于BLAS的库,并为深度学习工作负载优化了例程。我们的实现包含GPU的例程,尽管与BLAS库类似,这些例程可以在其他平台上实现。该库易于集成到现有框架中,并提供优化的性能和内存使用。例如,将cuDNN集成到卷积网络的流行框架Caffe中,在标准模型上将性能提高了36%,同时还减少了内存消耗。

英文摘要:

We present a library of efficient implementations of deep learning primitives. Deep learning workloads are computationally intensive, and optimizing their kernels is difficult and time-consuming. As parallel architectures evolve, kernels must be reoptimized, which makes maintaining codebases difficult over time. Similar issues have long been addressed in the HPC community by libraries such as the Basic Linear Algebra Subroutines (BLAS). However, there is no analogous library for deep learning. Without such a library, researchers implementing deep learning workloads on parallel processors must create and optimize their own implementations of the main computational kernels, and this work must be repeated as new parallel processors emerge. To address this problem, we have created a library similar in intent to BLAS, with optimized routines for deep learning workloads. Our implementation contains routines for GPUs, although similarly to the BLAS library, these routines could be implemented for other platforms. The library is easy to integrate into existing frameworks, and provides optimized performance and memory usage. For example, integrating cuDNN into Caffe, a popular framework for convolutional networks, improves performance by 36% on a standard model while also reducing memory consumption.

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

↑