Diesel: DSL for linear algebra and neural net computations on GPUs
Diesel: DSL для вычислений линейной алгебры и нейронных сетей на графических процессорах
2018-06-07
SCID: 54.1/bzthan9y
Discuss with AI
Diesel DSLGPU code generationlinear algebraneural network computationspolyhedral compilation
Figures from the paper
Abstract (AI)
We present a domain specific language compiler, Diesel, for basic linear algebra and neural network computations, that accepts input expressions in an intuitive form and generates high performing code for GPUs. The current trend is to represent a neural network as a computation DAG, where each node in the DAG corresponds to a single operation such as matrix-matrix multiplication, and map the individual operations to hand tuned library functions provided by standard libraries such as CuBLAS and CuDNN. While this method takes advantage of readily available optimized library codes to achieve good performance for individual operations, it is not possible to optimize across operations. As opposed to this, given a computation composed of several operations, Diesel generates (a set) of efficient device functions, where the code is optimized for the computation as a whole, using polyhedral compilation techniques. In addition, there are cases where the code needs to be specialized for specific problem sizes to achieve optimal performance. While standard libraries are written for parametric problem sizes (where problem sizes are provided at runtime), Diesel can accept problem sizes at compile time and generate specialized codes. Experimental results show that the performance achieved by Diesel generated code for individual operations are comparable to the highly tuned versions provided by standard libraries, while for composite computations, Diesel outperforms manually written versions.
Key Findings
1
Diesel is a domain-specific language compiler that generates GPU code for linear algebra and neural-network computations from intuitive input expressions.
2
Diesel supports compile-time problem-size specialization, generating code tailored to specific sizes rather than relying only on runtime-parametric libraries.
3
For composite computations, Diesel-generated code outperforms manually written implementations.
4
For individual operations, Diesel-generated code achieves performance comparable to highly tuned CuBLAS and CuDNN implementations.
5
Unlike operation-by-operation library mapping, Diesel optimizes composite computations across multiple operations using polyhedral compilation techniques.
Research Object
linear algebra and neural network computations on GPUs
Research Subject
whole-computation performance optimization through operation fusion and compile-time specialization for specific problem sizes
Publication Details
Publication Date
2018-06-07
Journal
Publisher
ISSN
Access Type
Author Information
Download PDF
Subscribe to digest