GPT-Driven Source-to-Source Transformation for Generating Compilable Parallel CUDA Code for Nussinov’s Algorithm
Electronics · 2024-01-24 · 13 (3) · 488
DOI: 10.3390/electronics13030488 ↗At a glance
Journal article in Electronics, published online on 2024-01-24. Written by Marek Palkowski and 1 co-authors. Cited 10 times so far (Crossref); 41 references. The full text is freely available (open access, CC BY 4.0).
Abstract (original language)
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.
Cite
APA
Palkowski, M., & Gruzewski, M. (2024). GPT-Driven Source-to-Source Transformation for Generating Compilable Parallel CUDA Code for Nussinov’s Algorithm. Electronics, 13(3), 488. https://doi.org/10.3390/electronics13030488
Vancouver
Palkowski M, Gruzewski M. GPT-Driven Source-to-Source Transformation for Generating Compilable Parallel CUDA Code for Nussinov’s Algorithm. Electronics. 2024;13(3):488. doi:10.3390/electronics13030488
BibTeX
@article{Palkowski2024,
author = {Palkowski, Marek and Gruzewski, Mateusz},
title = {GPT-Driven Source-to-Source Transformation for Generating Compilable Parallel CUDA Code for Nussinov’s Algorithm},
journal = {Electronics},
year = {2024},
volume = {13},
number = {3},
pages = {488},
doi = {10.3390/electronics13030488}
}
EUVIMED