Identifying shader sub-patterns for GPU performance tuning and architecture design
GPUs are increasingly playing vital roles in the modern technology industry. Improving the GPU performance involves optimizing its architectural design and fine-tuning its software code. However, to achieve this, engineers must investigate codes from as many GPU-related applications as possible to i...
Saved in:
Main Authors: | , , , , |
---|---|
Other Authors: | |
Format: | Article |
Language: | English |
Published: |
2025
|
Subjects: | |
Online Access: | https://hdl.handle.net/10356/182100 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Nanyang Technological University |
Language: | English |
id |
sg-ntu-dr.10356-182100 |
---|---|
record_format |
dspace |
spelling |
sg-ntu-dr.10356-1821002025-01-07T08:24:20Z Identifying shader sub-patterns for GPU performance tuning and architecture design Zhao, Lin Yeo, Chai Kiat Khan, Arijit Luo, Robby Jin, Ling Peng College of Computing and Data Science Computer and Information Science GPU Performance ShaderAnalyzer GPUs are increasingly playing vital roles in the modern technology industry. Improving the GPU performance involves optimizing its architectural design and fine-tuning its software code. However, to achieve this, engineers must investigate codes from as many GPU-related applications as possible to identify code portions that need fine-tuning. Moreover, this effort requires engineers to have good domain knowledge, and their work is made more arduous because the source codes of applications are normally confidential. To this end, we introduce ShaderAnalyzer, a solution leveraging graph mining and machine learning to analyze GPU-executed low-level machine codes and identify their fine-tuning opportunities. Our approach includes representing machine code with graph structure and subsequently identifying frequently occurring substructures within the codes. Optimizing the execution of these substructures can enhance the overall performance of the GPU. In addition, our model leverages these frequent patterns to further facilitate engineers' tasks by selecting representative patterns to predict and investigate low-efficiency ones. We conduct comprehensive experiments to evaluate the performance of our solution, and the results have been validated by our industry partners. ShaderAnalyzer is an end-to-end framework that helps engineers identify code segments with the highest potential for performance gains after fine-tuning and offers valuable insights for hardware architects in future products design. Economic Development Board (EDB) Published version Tis research is supported by Singapore EDB-IPP scholarship. 2025-01-07T08:24:20Z 2025-01-07T08:24:20Z 2024 Journal Article Zhao, L., Yeo, C. K., Khan, A., Luo, R. & Jin, L. P. (2024). Identifying shader sub-patterns for GPU performance tuning and architecture design. Scientific Reports, 14(1), 24036-. https://dx.doi.org/10.1038/s41598-024-68974-8 2045-2322 https://hdl.handle.net/10356/182100 10.1038/s41598-024-68974-8 39402069 2-s2.0-85206278197 1 14 24036 en Scientific Reports © 2024 The Author(s). Open Access. This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/ licenses/by-nc-nd/4.0/. application/pdf |
institution |
Nanyang Technological University |
building |
NTU Library |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
NTU Library |
collection |
DR-NTU |
language |
English |
topic |
Computer and Information Science GPU Performance ShaderAnalyzer |
spellingShingle |
Computer and Information Science GPU Performance ShaderAnalyzer Zhao, Lin Yeo, Chai Kiat Khan, Arijit Luo, Robby Jin, Ling Peng Identifying shader sub-patterns for GPU performance tuning and architecture design |
description |
GPUs are increasingly playing vital roles in the modern technology industry. Improving the GPU performance involves optimizing its architectural design and fine-tuning its software code. However, to achieve this, engineers must investigate codes from as many GPU-related applications as possible to identify code portions that need fine-tuning. Moreover, this effort requires engineers to have good domain knowledge, and their work is made more arduous because the source codes of applications are normally confidential. To this end, we introduce ShaderAnalyzer, a solution leveraging graph mining and machine learning to analyze GPU-executed low-level machine codes and identify their fine-tuning opportunities. Our approach includes representing machine code with graph structure and subsequently identifying frequently occurring substructures within the codes. Optimizing the execution of these substructures can enhance the overall performance of the GPU. In addition, our model leverages these frequent patterns to further facilitate engineers' tasks by selecting representative patterns to predict and investigate low-efficiency ones. We conduct comprehensive experiments to evaluate the performance of our solution, and the results have been validated by our industry partners. ShaderAnalyzer is an end-to-end framework that helps engineers identify code segments with the highest potential for performance gains after fine-tuning and offers valuable insights for hardware architects in future products design. |
author2 |
College of Computing and Data Science |
author_facet |
College of Computing and Data Science Zhao, Lin Yeo, Chai Kiat Khan, Arijit Luo, Robby Jin, Ling Peng |
format |
Article |
author |
Zhao, Lin Yeo, Chai Kiat Khan, Arijit Luo, Robby Jin, Ling Peng |
author_sort |
Zhao, Lin |
title |
Identifying shader sub-patterns for GPU performance tuning and architecture design |
title_short |
Identifying shader sub-patterns for GPU performance tuning and architecture design |
title_full |
Identifying shader sub-patterns for GPU performance tuning and architecture design |
title_fullStr |
Identifying shader sub-patterns for GPU performance tuning and architecture design |
title_full_unstemmed |
Identifying shader sub-patterns for GPU performance tuning and architecture design |
title_sort |
identifying shader sub-patterns for gpu performance tuning and architecture design |
publishDate |
2025 |
url |
https://hdl.handle.net/10356/182100 |
_version_ |
1821237158833291264 |