Opal: A Modular Framework for Optimizing Performance using Analytics and LLMs

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zaeed, Mohammad, Islam, Tanzima Z., Inđić, Vladimir
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914070473474048
author Zaeed, Mohammad
Islam, Tanzima Z.
Inđić, Vladimir
author_facet Zaeed, Mohammad
Islam, Tanzima Z.
Inđić, Vladimir
contents Large Language Models (LLMs) show promise for automated code optimization but struggle without performance context. This work introduces Opal, a modular framework that connects performance analytics insights with the vast body of published by guiding LLMs to generate informed, trustworthy optimizations. Unlike traditional performance tools that identify bottlenecks but stop short of actionable suggestions, Opal bridges this long-standing gap by linking dynamic insights from hardware counters and Roofline analysis to stall events to optimization decisions. We evaluate Opal across 1640 experiments on real-world GPU kernels and find that in over 98.5% of cases, even a single insight source yields speedups, ranging on average from 19.34% to 52.3%. Our prompt template produced correct code in all but one case, where a vague diagnostic caused an unsafe suggestion. By automatically optimizing GPU kernels using performance analytics and LLMs, Opal marks a leap toward democratizing expert-level performance engineering for all.
format Preprint
id arxiv_https___arxiv_org_abs_2510_00932
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Opal: A Modular Framework for Optimizing Performance using Analytics and LLMs
Zaeed, Mohammad
Islam, Tanzima Z.
Inđić, Vladimir
Performance
Large Language Models (LLMs) show promise for automated code optimization but struggle without performance context. This work introduces Opal, a modular framework that connects performance analytics insights with the vast body of published by guiding LLMs to generate informed, trustworthy optimizations. Unlike traditional performance tools that identify bottlenecks but stop short of actionable suggestions, Opal bridges this long-standing gap by linking dynamic insights from hardware counters and Roofline analysis to stall events to optimization decisions. We evaluate Opal across 1640 experiments on real-world GPU kernels and find that in over 98.5% of cases, even a single insight source yields speedups, ranging on average from 19.34% to 52.3%. Our prompt template produced correct code in all but one case, where a vague diagnostic caused an unsafe suggestion. By automatically optimizing GPU kernels using performance analytics and LLMs, Opal marks a leap toward democratizing expert-level performance engineering for all.
title Opal: A Modular Framework for Optimizing Performance using Analytics and LLMs
topic Performance
url https://arxiv.org/abs/2510.00932