arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.11244cs.PFcs.DCcs.LG
收藏

LLMPerf:GPU性能建模遇见大语言模型

LLMPerf: GPU Performance Modeling meets Large Language Models

FPT Software AI Center(FPT软件人工智能中心);FPT University(FPT大学)

Khoi N. M. Nguyen, Hoang Duy Nguyen Do, Huyen Thao Le, Thanh Tuan Dao

AI总结:

本文提出LLMPerf,将LLM用作OpenCL GPU程序的性能估计器,并通过大规模数据集验证其能力、困难与预测误差。

摘要:

性能建模是程序成本分析中的关键领域,目前依赖手工构建的模型,这些模型受到各种程序和硬件限制,尤其是在复杂的GPGPU环境中。与此同时,大语言模型(LLM)已证明能够有效解决多种编程挑战。我们的工作建立了LLM与性能建模之间的联系,将LLM用作性能估计器。通过使用精心设计的大规模OpenCL数据集进行实验探索,我们强调了使用LLM处理OpenCL设备源程序性能建模任务的潜在能力以及主要困难。作为这一研究方向的首个研究,我们基于LLM的性能模型在大规模生成的验证集上达到24.25%的平均绝对百分比误差。在一组公开可用的OpenCL程序上,我们的模型达到46.1%的平均绝对百分比误差。

英文摘要:

Performance modeling, a pivotal domain in program cost analysis, currently relies on manually crafted models constrained by various program and hardware limitations, especially in the intricate landscape of GPGPU. Meanwhile, Large Language Models (LLMs) have demonstrated their effectiveness in addressing diverse programming challenges. Our work establishes a connection between LLMs and performance modeling, employing the LLM as a performance estimator. Through experimental exploration with carefully designed large-scale OpenCL datasets, we highlight the potential capability as well as the main difficulties of using LLMs in handling performance modeling tasks for OpenCL device source programs. As the first study for this line of work, our LLM-based performance model achieves a mean absolute percentage error of $24.25\%$ for a large-scale generated validation set. On a set of publicly available OpenCL programs, our model achieves a mean absolute percentage error of $46.1\%$.

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

↑