arXiv:2611.06207cs.DCNov 2026

Manuscript Offprint

arXiv:2611.06207

Performance Portability of Out-of-Kernel Optimizations on GPUs: A Molecular Docking Case Study

Gianmarco Accordi, Leonardo Beltrame, Theresa Pollinger, Jens Domke, Davide Gadioli, Gianluca Palermo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Gianmarco Accordi*, Leonardo Beltrame*, Theresa Pollinger†, Jens Domke†, Davide Gadioli*, Gianluca Palermo*

*Dipartimento di Elettronica, Informazione e Bioingegneria, Politecnico di Milano, Milan, Italy

{gianmarco.accordi, leonardo.beltrame, davide.gadioli, gianluca.palermo}@polimi.it

†RIKEN Center for Computational Science, Kobe, Japan

{jens.domke, theresa.pollinger}@riken.jp

Abstract—Achieving performance portability is challenging for irregular scientific applications built as repeated multi-kernel GPU pipelines, because throughput depends on out-of-kernel decisions as much as on kernel efficiency. Using molecular docking as a representative case study, we propose an out-of-kernel tuning methodology that treats batching policy, worker concurrency, and per-worker memory allocation as explicit optimization parameters, replacing backend-dependent occupancy-driven choices with a more portable execution strategy based on explicit resource bounds. We implement this methodology in the muDock mini-app under a manager/worker execution model where multiple host workers share a GPU through independent streams. We then evaluate the methodology on NVIDIA, AMD, and Intel GPUs across CUDA, HIP, and SYCL implementations. Across all evaluated platform/backend pairs, the memory-bounded formulation exceeds the peak throughput of the occupancy-guided baseline. The fully tuned methodology improves the end-to-end throughput on all tested configurations, achieving an average speedup of 1.53× over the baseline.

Index Terms—HPC, GPU, Molecular Docking, Performance Portability

I. INTRODUCTION

High-performance computing (HPC) plays a central role in reducing the time-to-solution of large-scale scientific applications. As production systems increasingly rely on GPU acceleration, however, achieving this objective across different vendors and software ecosystems becomes more difficult in practice. Deploying a scientific application across platforms requires not only functional portability, but also tuning choices that remain effective despite differences in compilers, runtimes, and hardware resource behavior [1]–[3]. This problem is particularly relevant for applications that are not dominated by a single monolithic kernel, but instead execute long sequences of repeated kernel launches. In these applications, throughput depends on how inputs are grouped and submitted across the full pipeline, not only on the efficiency of one kernel in isolation. As a result, achieving portable performance requires looking at the full application pipeline, not only at kernel-level code generation.

As an example, biological applications consume a significant fraction of HPC resources, and virtual screening is a representative throughput-oriented workload in which a speed-up directly increases the screening capacity. Structure-based virtual screening uses docking to rank large libraries of compounds, called ligands, against one or more protein targets, allowing researchers to focus downstream experimental validation on the most promising candidates [4]–[6]. Because docking simulations are much cheaper than experimental screening, modern campaigns increasingly target very large chemical libraries, sometimes reaching hundreds of millions of compounds [7]–[9]. This trend makes portable GPU efficiency a first-order concern for docking pipelines. Docking is also a challenging workload for portable performance. Ligands differ in atom count, flexibility, and interaction patterns, so the cost and memory footprint of processing each ligand can differ substantially [10]. This irregularity makes batching, resource usage, and concurrent device use especially important for end-to-end throughput. Prior work on out-of-kernel optimizations has already shown that these decisions can be as important as kernel-level tuning [11].

In this paper, we study this problem using muDock [12], [13], a compact molecular docking mini-app designed to preserve the key computational patterns of larger docking codes while enabling systematic experimentation across platforms and backends. Our goal is to study whether a more portable out-of-kernel formulation can improve throughput in a repeated multi-kernel GPU pipeline. Instead of relying on occupancy-driven batch sizing, which depends on backend-specific information and assumptions, we study an alternative formulation based on explicit resource bounds. In particular, we focus on batching policy, worker concurrency, and per-worker memory allocation as coupled tuning dimensions, and evaluate how these choices transfer across CUDA, HIP, and SYCL implementations.

This work makes the following contributions:

  • We study an out-of-kernel tuning approach for repeated multi-kernel GPU pipelines based on explicit resource bounds, treating batching policy, worker concurrency, and per-worker memory allocation as the main tuning dimensions.

  • We implement and evaluate this approach in muDock

on NVIDIA GH200, AMD MI250, and Intel Max 1550 systems using CUDA, HIP, and SYCL, showing that the tuned configuration improves end-to-end throughput by 1.53×1.53\times on average over the reference configuration.

The rest of the paper is organized as follows. Section II introduces the workload and portability context. Section III presents the batching policies and tuning dimensions studied in this work. Sections IV and V describe the experimental setup and the main results. Section VI discusses limitations and threats to validity. Section VII summarizes the most relevant prior work. Section VIII concludes the paper.

References (30)