Opara: Exploiting Operator Parallelism for Expediting DNN Inference on GPUs
GPUs have become the <i>defacto</i> hardware devices for accelerating Deep Neural Network (DNN) inference workloads. However, the conventional <i>sequential execution mode of DNN operators</i> in mainstream deep learning frameworks cannot fully utilize GPU resources, even with the operator fusion enabled, due to the increasing complexity of model structures and a greater diversity of operators. Moreover, the <i>inadequate operator launch order</i> in parallelized execution scenarios can lead to GPU resource wastage and unexpected performance interference among operators. In this paper, we propose <i>Opara</i>, a resource- and interference-aware DNN <u>Op</u>erator <u>para</u>llel scheduling framework to accelerate DNN inference on GPUs. Specifically, <i>Opara</i> first employs <monospace>CUDA Streams</monospace> and <monospace>CUDA Graph</monospace> to <i>parallelize</i> the execution of multiple operators automatically. To further expedite DNN inference, <i>Opara</i> leverages the resource demands of operators to judiciously adjust the operator launch order on GPUs, overlapping the execution of compute-intensive and memory-intensive operators. We implement and open source a prototype of <i>Opara</i> based on PyTorch in a <i>non-intrusive</i> manner. Extensive prototype experiments with representative DNN and Transformer-based models demonstrate that <i>Opara</i> outperforms the default sequential <monospace>CUDA Graph</monospace> in PyTorch and the state-of-the-art operator parallelism systems by up to <inline-formula><tex-math notation="LaTeX">$1.68\boldsymbol{\times}$</tex-math></inline-formula> and <inline-formula><tex-math notation="LaTeX">$1.29\boldsymbol{\times}$</tex-math></inline-formula>, respectively, yet with acceptable runtime overhead.
Authors
- Fei Xu (ORCID: https://orcid.org/0000-0003-1590-5323)
- Li Chen (ORCID: https://orcid.org/0000-0002-5842-838X)
- Zhi Zhou (ORCID: https://orcid.org/0000-0002-0987-9344)
- Yuan Dong
- Li Han (ORCID: https://orcid.org/0000-0001-5797-2554)
- Fangming Liu (ORCID: https://orcid.org/0000-0001-9224-961X)
- Aodong Chen
Institutions
- Sun Yat-sen University (CN)
- Peng Cheng Laboratory (CN)
- Huazhong University of Science and Technology (CN)
- East China Normal University (CN)
- University of Louisiana at Lafayette (US)
Publication Details
- Journal
- IEEE Transactions on Computers
- Published
- 2024-10-08
- DOI
- https://doi.org/10.1109/tc.2024.3475589
- Citations
- 8
- Primary Topic
- Brain Tumor Detection and Classification
- Type
- article
- Field-Weighted Citation Impact
- 1.98