Cross-platform and polyhedral programming for Nussinov RNA folding
This article addresses the use of codes from polyhedral compilers with tiled and parallel code designed for CPU processors, automatically generated as source-to-source OpenMP for NVIDIA GPU graphics cards using CUDA. In previous publications, we demonstrated that it is possible to use large language models (LLM) to translate code, generate kernels, and correctly manage memory transfers between the host and the device without manual effort. Unfortunately, when the target architecture is not taken into account in detail, the performance of code designed for CPUs leaves much to be desired when running on GPUs. The architectural differences between these two platforms like cores, cache, and the dimensionality of computations require careful attention to performance portability. In this article, we address the Nussinov algorithm, a popular benchmark in bioinformatics, to achieve higher performance on the NVIDIA platform than automatically generated codes by LLM. Nussinov’s loop nests are a non-trivial kernel from the non-serial polyadic dynamic programming (NPDP) benchmark with non-uniform loops. We will utilize a polyhedral code framework that tiles and then manually modifies the most nested loop nest containing the majority of the computations, using the two-dimensional thread blocks. To accelerate the computations, shared memory within blocks is utilized. The resulting codes were tested on two modern NVIDIA devices for various RNA sequence lengths, compared to parallel and tiled CPU codes, and previously generated Nussinov’s GPU codes using LLMs. The correctness of these codes and their scalability were analyzed. Comparison to related approaches and future work are outlined. • Polyhedral model for Nussinov’s code generation on GPU. • Semi-automatic technique for NPDP processing with NVIDIA A100 acceleration. • Performance portability of CPU and GPU by means of polyhedral compilers.
Authors
- Marek Pałkowski (ORCID: https://orcid.org/0000-0002-5932-4523)
- Mateusz Grużewski (ORCID: https://orcid.org/0000-0002-9419-2749)
Institutions
- West Pomeranian University of Technology in Szczecin (PL)
Publication Details
- Journal
- Future Generation Computer Systems
- Published
- 2025-03-04
- DOI
- https://doi.org/10.1016/j.future.2025.107786
- Citations
- 2
- Primary Topic
- RNA and protein synthesis mechanisms
- Type
- article
- Field-Weighted Citation Impact
- 1.61