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

利用多模态建模与异构 GNN 进行性能优化

Performance Optimization using Multimodal Modeling and Heterogeneous GNN

Iowa State University(爱荷华州立大学);University of Oregon(俄勒冈大学);Universitat Autònoma de Barcelona(巴塞罗那自治大学)

Akash Dutta, Jordi Alcaraz, Ali TehraniJamsaz, Eduardo Cesar, Anna Sikora, Ali Jannesari

AI总结:

本文提出 MGA 调优器,利用异构 GNN 与去噪自动编码器对基于 IR 的代码多模态表示建模,用于 OpenMP 参数调优和 OpenCL 设备映射,并在多项基准上达到最优性能。

摘要:

HPC 架构日益增长的异构性和可配置性,使得在这些系统上自动调优应用程序和运行时参数变得非常复杂。用户面对大量用于配置参数的选项。除了面向特定应用的解决方案外,一种常见做法是使用通用搜索策略,但这些策略往往无法找到最佳配置,或者其收敛时间构成重大障碍。因此,需要一种通用且高效的调优方法,能够轻松扩展并适配各种调优任务。我们提出了一种用于调优并行代码区域的技术,其通用性足以适配多个任务。本文分析基于 IR 的编程模型,以执行面向具体任务的性能优化。为此,我们提出了 Multimodal Graph Neural Network and Autoencoder(MGA)调优器,这是一种基于多模态深度学习的方法,采用异构图神经网络和去噪自动编码器,对作为独立模态的基于 IR 的代码表示进行建模。该方法用作我们流水线的一部分,用于建模具备语法、语义和结构感知能力、基于 IR 的代码表示,以调优并行代码区域/内核。我们在来自 PolyBench、Rodinia、STREAM、DataRaceBench、AMD SDK、NPB、NVIDIA SDK、Parboil、SHOC 和 LULESH 基准测试的 OpenMP 与 OpenCL 代码区域/内核上进行了大量实验。我们将多模态学习技术应用于以下任务:i)优化 OpenMP 循环中的线程数、调度策略和块大小;ii)为 OpenCL 内核的异构设备映射识别最佳设备。实验表明,这种基于多模态学习的方法在所有实验中均优于现有最先进方法。

英文摘要:

Growing heterogeneity and configurability in HPC architectures has made auto-tuning applications and runtime parameters on these systems very complex. Users are presented with a multitude of options to configure parameters. In addition to application specific solutions, a common approach is to use general purpose search strategies, which often might not identify the best configurations or their time to convergence is a significant barrier. There is, thus, a need for a general purpose and efficient tuning approach that can be easily scaled and adapted to various tuning tasks. We propose a technique for tuning parallel code regions that is general enough to be adapted to multiple tasks. In this paper, we analyze IR-based programming models to make task-specific performance optimizations. To this end, we propose the Multimodal Graph Neural Network and Autoencoder (MGA) tuner, a multimodal deep learning based approach that adapts Heterogeneous Graph Neural Networks and Denoizing Autoencoders for modeling IR-based code representations that serve as separate modalities. This approach is used as part of our pipeline to model a syntax, semantics, and structure-aware IR-based code representation for tuning parallel code regions/kernels. We extensively experiment on OpenMP and OpenCL code regions/kernels obtained from PolyBench, Rodinia, STREAM, DataRaceBench, AMD SDK, NPB, NVIDIA SDK, Parboil, SHOC, and LULESH benchmarks. We apply our multimodal learning techniques to the tasks of i) optimizing the number of threads, scheduling policy and chunk size in OpenMP loops and, ii) identifying the best device for heterogeneous device mapping of OpenCL kernels. Our experiments show that this multimodal learning based approach outperforms the state-of-the-art in all experiments.

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

↑