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

GPGPU应用的性能与功耗预测

Prediction of Performance and Power Consumption of GPGPU Applications

Gargi Alavani, Santonu Sarkar

AI总结:

本研究针对GPU应用性能与功耗优化需求,提出基于PTX代码静态分析的CUDA内核执行时间预测模型和机器学习功耗预测模型,并用多维度数据集及配套工具验证了其作为GPU设计辅助工具的有效性。

摘要:

图形处理器(GPU)已成为高性能计算中实现百亿亿次级性能的核心组成部分。GPU应用开发者的主要目标是对代码进行深度调优以获得最优性能,高效利用各类可用资源。在高性能计算基础设施上挖掘应用最优性能的同时,考虑到数据中心和HPC服务器的巨大功耗,开发者还应确保应用的能耗最低。本论文提出了两个模型,可供开发者用于分析CUDA内核的能耗情况。第一个是预测CUDA内核执行时间的模型,该模型对PTX代码进行静态分析,提取指令特征、控制流和数据依赖关系,我们提出了两种满足性能和硬件约束的调度算法方案。第二个模型是基于静态分析、利用机器学习技术构建的功耗预测模型,构建模型所用的特征通过对PTX代码的静态分析提取,选择这些特征是为了理解GPU功耗与程序特征之间的关系,帮助开发者构建高能效、可持续的应用。用于验证两个模型的数据集包含来自不同基准测试套件、不同规模、不同性质(如计算密集型、内存密集型)和不同复杂度(如控制分支发散、内存访问模式)的内核。我们还推出了一款工具,实际验证了这两个模型作为GPU设计辅助工具的有效性和易用性。

英文摘要:

Graphics Processing Units (GPUs) have become an integral part of High-Performance Computing to achieve an Exascale performance. The main goal of application developers of GPU is to tune their code extensively to obtain optimal performance, making efficient use of different resources available. While extracting optimal performance of applications on an HPC infrastructure, developers should also ensure the applications have the least energy usage considering the massive power consumption of data centres and HPC servers. This thesis presents two models developed which can be utilized by developers in analysing the CUDA kernel's energy dissipation. The first one is a model that predicts the CUDA kernel's execution time. Here a PTX code is statically analysed to extract instruction features, control flow, and data dependence. We propose two scheduling algorithm approaches that satisfy the performance and hardware constraints. The second model is a static analysis-based power prediction built by utilizing machine learning techniques. Features used for building the model are derived using static analysis of PTX code. These features are chosen to understand the relationship between GPU power consumption and program features that can aid developers in building energy-efficient, sustainable applications. The dataset used for validating both models include kernels from different benchmarks suits, sizes, nature (e.g., compute-bound, memory-bound), and complexity (e.g., control divergence, memory access patterns). We also present a tool that has practically validated the effectiveness and ease of using the two models as design assistance tools for GPU.

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

↑