arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.01333cs.LGcs.PF
收藏

oneDNN Graph Compiler:一种面向高性能深度学习编译的混合方法

oneDNN Graph Compiler: A Hybrid Approach for High-Performance Deep Learning Compilation

Intel(英特尔)

Jianhui Li, Zhennan Qin, Yijie Mei, Jingze Cui, Yunfei Song, Ciyong Chen, Yifei Zhang, Longsheng Du, Xianhang Cheng, Baihui Jin, Yan Zhang, Jason Ye, Eric Lin, Dan Lavery

AI总结:

针对深度学习工作负载变化下现有编译方案无法充分发挥硬件性能的问题,提出结合编译优化与专家调优内核的oneDNN Graph Compiler,在英特尔至强处理器上实现了显著性能提升。

摘要:

随着深度学习模型的快速发展以及硬件对稠密计算的支持不断提升,深度学习工作负载的特征发生了显著变化,从少数计算密集型算子构成的热点,转变为分散在模型中的大量各类算子。仅使用经过专家调优的基元实现来加速少数计算密集型算子,无法充分挖掘AI硬件的性能潜力。目前学界和工业界已开展多项工作来编译完整的深度神经网络(DNN)图,其中最大的挑战之一是实现高性能张量编译:既要为稠密计算密集型算子生成达到专家级性能的代码,又要在DNN计算图的范围内跨多个计算密集型算子应用编译优化。\n我们提出了oneDNN Graph Compiler,这是一款张量编译器,采用混合方法,结合编译器优化技术与专家调优的内核,为深度神经网络图生成高性能代码。oneDNN Graph Compiler解决了深度学习领域特有的优化挑战,包括低精度计算、图算子的激进融合、静态张量形状与内存布局优化、常量权重优化以及内存缓冲区复用。实验结果表明,在英特尔至强可扩展处理器上,对于性能关键的DNN计算图和端到端模型,该编译器相比现有张量编译器和基元库实现了显著的性能提升。

英文摘要:

With the rapid development of deep learning models and hardware support for dense computing, the deep learning workload characteristics changed significantly from a few hot spots on compute-intensive operations to a broad range of operations scattered across the models. Accelerating a few compute-intensive operations using the expert-tuned implementation of primitives does not fully exploit the performance potential of AI hardware. Various efforts have been made to compile a full deep neural network (DNN) graph. One of the biggest challenges is to achieve high-performance tensor compilation by generating expert level performance code for the dense compute-intensive operations and applying compilation optimization at the scope of DNN computation graph across multiple compute-intensive operations. We present oneDNN Graph Compiler, a tensor compiler that employs a hybrid approach of using techniques from both compiler optimization and expert-tuned kernels for high performance code generation of the deep neural network graph. oneDNN Graph Compiler addresses unique optimization challenges in the deep learning domain, such as low-precision computation, aggressive fusion of graph operations, optimization for static tensor shapes and memory layout, constant weight optimization, and memory buffer reuse. Experimental results demonstrate significant performance gains over existing tensor compiler and primitives library for performance-critical DNN computation graphs and end-to-end models on Intel Xeon Scalable Processors.

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

↑