GPT-Driven Source-to-Source Transformation for Generating Compilable Parallel CUDA Code for Nussinov’s Algorithm

Author:

Palkowski Marek1ORCID,Gruzewski Mateusz1

Affiliation:

1. Faculty of Computer Science, West Pomeranian University of Technology, Zolnierska 49, 72210 Szczecin, Poland

Abstract

Designing automatic optimizing compilers is an advanced engineering process requiring a great deal of expertise, programming, testing, and experimentation. Maintaining the approach and adapting it to evolving libraries and environments is a time-consuming effort. In recent years, OpenAI has presented the GPT model, which is designed for many fields like computer science, image processing, linguistics, and medicine. It also supports automatic programming and translation between programming languages, as well as human languages. This article will verify the usability of the commonly known LLM model, GPT, for the non-trivial NPDP Nussinov’s parallel algorithm code within the OpenMP standard to create a parallel equivalent of CUDA for NVIDIA graphics cards. The goal of this approach is to avoid creating any post-processing scripts and writing any lines of target code. To validate the output code, we compare the resulting arrays with the ones calculated by the optimized code for the CPU generated employing the polyhedral compilers. Finally, the code will be checked for scalability and performance. We will concentrate on assessing the capabilities of GPT, highlighting common challenges that can be refined during future learning processes. This will enhance code generation for various platforms by leveraging the outcomes from polyhedral optimizers.

Publisher

MDPI AG

Reference41 articles.

1. Verdoolaege, S. (2024, January 11). Integer Set Library—Manual. Available online: www.kotnet.org/~skimo//isl/manual.pdf.

2. Bielecki, W., and Palkowski, M. (2024, January 11). A Parallelizing and Optimizing Compiler—TRACO. Available online: http://traco.sourceforge.net.

3. Malyshkin, V. (2021). Parallel Computing Technologies, Springer.

4. Bondhugula, U., Hartono, A., Ramanujam, J., and Sadayappan, P. (2008, January 7–13). A practical automatic polyhedral parallelizer and locality optimizer. Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation, Tucson, AZ, USA.

5. OpenMP Architecture Review Board (2023, October 22). OpenMP Application Program Interface Version 5.2. Available online: https://www.openmp.org/specifications.

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3