arXiv:2610.07495cs.DCOct 2026

Manuscript Offprint

arXiv:2610.07495

Productivity in HPC: A Critical Review from SLOC and Performance Portability to AI-Assisted Programming

Ami Marowka

Abstract

Productivity has long been recognized as a central concern in high-performance computing (HPC), yet it still lacks a workable formal definition and a broadly accepted metric for quantified assessment. Recent attempts to incorporate productivity into performance-portability analysis have introduced code-divergence, convergence, and semantic measures, but have not established a convincing formal relationship between productivity and performance portability.

More recent language and compiler systems, including JACC, Mojo, JLIR, and Accl++, pursue productive performance portability through higher-level abstractions, multi-level intermediate representations, automatic kernel generation, and runtime compilation. These systems demonstrate substantial engineering progress, while productivity is still commonly represented through programmability, ecosystem reuse, code size, or reduced implementation burden rather than direct measurement of human effort.

This paper presents a critical review of HPC productivity measurement, tracing its development from source lines of code (SLOC), static complexity, and empirical usability studies to development-time models and semantic approaches. We also examine how automated migration and artificial-intelligence(AI)-assisted programming weaken the correspondence between code transformation and human effort, shifting effort toward verification, correction, and performance tuning. The reviewed methods are compared in terms of what they measure, directness, objectivity, reproducibility, practicality, and their relationship to performance and portability. We conclude by identifying the principal limitations and open challenges for quantified HPC productivity assessment.

Keywords: HPC productivity, programmer productivity, source lines of code, development effort, performance portability, code divergence

1 Introduction

Performance has traditionally dominated the evaluation of high-performance computing (HPC) systems and applications. Execution time, throughput, speedup, efficiency, scalability, and related quantities provide relatively direct observations of how effectively computational resources are used. Yet the value of an HPC programming approach cannot be determined from performance alone. The effort required to construct, parallelize, port, optimize, debug, and maintain an implementation is also important, particularly as hardware architectures and programming environments become increasingly heterogeneous.

For this reason, productivity has been studied in parallel and HPC programming for several decades. Early studies frequently approached the problem through programmability or usability. They examined how easily programmers could learn a language, express parallelism, obtain a correct program, debug it, and achieve an acceptable level of performance. Measures included programming time, lines of code, debugging time, correctness, code expansion, subjective assessments, and observations of programmer behavior [2, 8, 12]. A recurring difficulty was already apparent: productivity is influenced not only by a programming language or programming model, but also by programmer experience, training, the problem being implemented, development tools, hardware, and the performance target being pursued. Marowka [12], for example, reviewed this heterogeneous empirical literature and argued that usability directly affects productivity, while also emphasizing that a programming model that is easy to use but fails to provide adequate scalability cannot meaningfully be considered successful.

A second tradition approached productivity indirectly through properties of the produced source code. Source Lines of Code (SLOC or LOC) and Logical Lines of Code (LLOC) became particularly common because they are inexpensive, automatic, and apparently objective. Nguyen et al. [17] note that SLOC became embedded in major software-cost models partly because source code was historically the most visible product of programming work. They also emphasize, however, that inconsistent definitions and counting practices can make SLOC measurements incomparable. In HPC, these difficulties are amplified because parallel programming constructs of radically different conceptual complexity may occupy the same number of lines.

Wienke et al. [27] provide one of the most comprehensive examinations of this problem in an HPC context. They review LOC, function points, Halstead complexity, cyclomatic complexity, and development time, and conclude that conventional software metrics either fail to capture important parallel-programming activities or are poor predictors of actual development effort. In particular, LOC assigns the same apparent cost to a simple declaration and to a one-line OpenMP directive that may require substantial reasoning about parallel correctness and performance. It also ignores work performed outside the source text, such as compiler-option selection, process binding, debugging, testing, and performance tuning.

The emergence of performance portability added another dimension to the productivity problem. Once applications were expected not merely to execute on multiple architectures but to perform efficiently across them, productivity increasingly became discussed together with performance and portability—the so-called three

Ps—performance, portability, and productivity—or P3. Harrell et al. [7] explicitly argued that evaluating performance-portable software should include both the efficiency achieved and the cost of developing and maintaining the implementations. Their study combines performance-portability measurements with development hours, source changes, churn, code divergence, and subjective measures of difficulty. Later, Pennycook et al. [21] transformed code divergence into code convergence and proposed plotting it against performance portability in a two-dimensional navigation chart. Lin, Deakin, and McIntosh-Smith [11] subsequently replaced purely textual divergence with a tree-based approach designed to capture syntactic and semantic differences between programming-model implementations.

A more recent line of work approaches the productivity problem from a different direction: rather than defining another productivity measure, it attempts to engineer programming and compiler systems that reduce the amount of architecture-specific work required from the programmer. JACC and JACC.Multi provide common high-level Julia interfaces over heterogeneous CPU, GPU, and multi-GPU execution paths [24, 25]; Mojo uses MLIR-based compilation together with Python interoperability to pursue portable GPU programming [5]; JLIR brings an MLIR-inspired intermediate representation into Julia and automatically extracts portable JACC kernels [16]; and Accl++ combines an architecture-agnostic C++ interface with runtime compilation [6]. These systems represent an important shift from measuring productivity toward engineering for productivity. They therefore provide useful contemporary evidence for examining what modern HPC studies mean when they claim improved productivity and how that claim is actually evaluated.

A further challenge has emerged from the increasing automation of software development. Source-to-source migration tools can transform substantial portions of an implementation from one programming model to another. For example, tools such as the Intel Data Parallel C++ (DPC++) Compatibility Tool and its open-source counterpart SYCLomatic can automatically migrate CUDA source code toward SYCL, a single-source C++ programming model for heterogeneous computing. In such a workflow, a large number of source lines may be added, removed, or modified without requiring a corresponding amount of direct human programming effort. The remaining effort may instead lie in resolving unsupported constructs, verifying correctness, adapting the generated code, and recovering or improving performance on the target platforms. Consequently, measures based on SLOC, source changes, or code divergence may characterize the magnitude of the resulting source transformation without necessarily characterizing the human effort that produced it.

Generative artificial intelligence(AI) introduces a related but broader challenge. AI-assisted programming can generate, translate, restructure, debug, and optimize source code, further weakening the traditional correspondence between code quantity and programmer effort. At the same time, the human contribution does not disappear; rather, part of it may shift from direct code production toward problem specification, evaluation of generated solutions, correctness verification, performance analysis, and iterative refinement. Productivity measurement in modern HPC must therefore address not only how much code is produced or changed, but also which parts of the development process remain meaningful indicators of human effort when substantial portions of the source transformation are automated.

Recent empirical studies further show that conclusions about AI-induced productivity gains can change substantially depending on whether productivity is measured through code output, task completion time, completed work, or other software-quality and developer-related outcomes [4, 14, 19].

These developments represent clear methodological progress, but they also expose several unresolved questions. What exactly is being measured when an HPC study reports “productivity,” and what relationship, if any, does that quantity have to achieved performance, portability, or performance portability? A source-code size is not development effort; development time is not independent of programmer experience; and code divergence is not necessarily proportional to the cost of producing the divergence. Moreover, when source code is generated or transformed automatically, the amount of code created or modified may become even less representative of human effort. Similarly, placing a productivity proxy beside a performance-portability metric does not by itself establish a mathematical relationship between them. These issues raise a broader question for modern HPC: which measurable quantities remain meaningful indicators of productivity when programming, porting, and optimization are increasingly assisted by automated tools?

This paper reviews the historical development of these approaches and makes four main contributions. First, it provides a consolidated historical account of HPC productivity measurement, ranging from empirical usability studies and SLOC to development-effort models and semantic code-divergence metrics. Second, it proposes a taxonomy that distinguishes what each method actually measures from what it is intended to represent. Third, it examines separately the degree to which each approach is objective, reproducible, intuitive, and practical for ordinary HPC studies, including whether its interpretation remains meaningful under automated source migration and AI-assisted programming. Finally, it critically reviews attempts to connect productivity with performance, portability, and formal performance-portability metrics, distinguishing co-reporting and joint visualization from an actual quantitative relationship among the quantities.

For convenient reference, Appendix A provides a glossary of the principal acronyms and technical terms used throughout the review.

References (23)