机器学习驱动的自适应OpenMP在异构系统上的可移植性能
Machine Learning-Driven Adaptive OpenMP For Portable Performance on Heterogeneous Systems
摘要:
异构系统已经成为构建高性能计算系统的主流架构设计选择。然而,异构性对实现执行的性能可移植性提出了重大挑战。使程序适应新的异构平台是费力的,并且需要开发人员手动探索大量的执行参数。为了应对这些挑战,本文提出了新的扩展,以自主的,机器学习驱动的自适应OpenMP。我们的解决方案包括一组新颖的语言结构,编译器转换和运行时支持。我们提出了一种生产者-消费者模式,以灵活地定义多个不同的OpenMP代码区域变体,从而实现自适应。这些区域在运行时被透明地分析,以自主学习优化动态选择最快变体的机器学习模型。该方法利用机器学习技术和OpenMP编译的代码生成功能,大大减少了用户在异构体系结构上编写自适应应用程序的工作量。使用Clang/LLVM中的完整参考实现,我们评估了自适应CPU-GPU执行的三个用例。与HPC代理应用程序和基准测试的实验表明,建议的自适应OpenMP扩展自动选择最佳性能的代码变体的各种适应的可能性,在几个不同的异构平台的CPU和GPU。
英文摘要:
Heterogeneity has become a mainstream architecture design choice for building High Performance Computing systems. However, heterogeneity poses significant challenges for achieving performance portability of execution. Adapting a program to a new heterogeneous platform is laborious and requires developers to manually explore a vast space of execution parameters. To address those challenges, this paper proposes new extensions to OpenMP for autonomous, machine learning-driven adaptation. Our solution includes a set of novel language constructs, compiler transformations, and runtime support. We propose a producer-consumer pattern to flexibly define multiple, different variants of OpenMP code regions to enable adaptation. Those regions are transparently profiled at runtime to autonomously learn optimizing machine learning models that dynamically select the fastest variant. Our approach significantly reduces users' efforts of programming adaptive applications on heterogeneous architectures by leveraging machine learning techniques and code generation capabilities of OpenMP compilation. Using a complete reference implementation in Clang/LLVM we evaluate three use-cases of adaptive CPU-GPU execution. Experiments with HPC proxy applications and benchmarks demonstrate that the proposed adaptive OpenMP extensions automatically choose the best performing code variants for various adaptation possibilities, in several different heterogeneous platforms of CPUs and GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。