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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Cross-platform and polyhedral programming for Nussinov RNA folding

Marek Pałkowski, Mateusz Grużewski
2 citations
Future Generation Computer Systems
RNA and protein synthesis mechanisms
1.61
article

Cross-platform and polyhedral programming for Nussinov RNA folding

Marek Pałkowski, Mateusz Grużewski
article en
2 citations

Abstract

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.

Future Generation Computer SystemsVol. 169
West Pomeranian University of Technology in Szczecin (PL)
Openalex Percentile: Top 19%
RNA and protein synthesis mechanisms
1.61
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Cross-platform and polyhedral programming for Nussinov RNA folding — Marek Pałkowski, Mateusz Grużewski · Future Generation Computer Systems (2025) | TGRS Research Map | TGRS