arXiv:2611.05558cs.PFNov 2026

Manuscript Offprint

arXiv:2611.05558

Easy Multi-Precision Acceleration via Vectorization

Chansup Byun, Piotr Luszczek, Jeremy Kepner, LaToya Anderson, William Arcand, David Bestor, William Bergeron, Alex Bonn, Daniel Burrill, Vijay Gadepally, Michael Houle, Matthew Hubbell, Hayden Jananthan, Michael Jones, Lauren Milechin, Julie Mullen, Andrew Prout, Albert Reuther, Antonio Rosa, Charles Yee, Peter Michaleas

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

Chansup Byun, Piotr Luszczek, Jeremy Kepner,

LaToya Anderson, William Arcand, David Bestor, William Bergeron,

Alex Bonn, Daniel Burrill, Vijay Gadepally, Michael Houle, Matthew Hubbell,

Hayden Jananthan, Michael Jones, Lauren Milechin, Julie Mullen, Andrew Prout,

Albert Reuther, Antonio Rosa, Charles Yee, Peter Michaleas

MIT

Abstract—High level programming languages and accelerators are powerful enablers for a wide range of applications. Accelerators offer significant performance via diverse numeric precision and increased memory bandwidth and capacity. These enable new algorithms to be explored. Construction of these algorithms can be enabled by the ready accessibility of these performance features in high-level languages. Achieving scalable vertical (within a compute node), precision (over various numeric precisions), and temporal (over different generations of hardware) performance while retaining productivity requires effective abstractions. Vectorized coding that expresses operations as high-level matrix mathematics has historically been an important method for achieving portable performance. This paper examines the performance availability across a wide range of precisions and hardware using simple vectorized coding techniques applied to several example programs that highlight bandwidth, real and complex matrix multiplication, and 2D convolution. The systems evaluated span nearly a decade of computing hardware, enabling direct comparison of performance gains over this period. This work demonstrates that near hardware peak performance is readily accessible from high-level programming environments. In particular for memory bandwidth, real and complex matrix multiplication in double/single/half precision, and 2D convolutions using the Fast Fourier Transform (FFT). Furthermore, algorithms that trade decreased compute intensity for increased memory intensity have significant potential.

Index Terms—GPUs, distributed arrays, parallel processing, vertical scaling, horizontal scaling

I. INTRODUCTION

Easy-to-use high level programming languages (e.g., Matlab [1], Python [2], and Julia [3,]) enable millions of programmers and play an important role in computational science and high performance computing. Accelerators, most notably GPUs (Graphics Processing Units), have become key enablers for a wide range of computationally intensive workloads, particularly in AI (Artificial Intelligence) [4], [5]. The capability of CPUs (Central Processing Units) continues to increase

Figure

Fig. 1. Precision, Performance, Bandwidth, and Capacity Trends. Increasing performance of Nvidia GPUs as they offer optimized hardware for lower precisions (top) and larger memory (bottom). (top) + denotes a sign bit, E denotes an exponent bit, and M denotes a mantissa bit.

as the number of processing cores on a CPU grows. Accelerators offer significant performance via diverse numeric precision and increase memory bandwidth. A key challenge is maintaining the ease-of-use of high level programming languages while achieving scalable performance across different dimensions: vertical (within a compute node), precision (FP64, FP32, FP16, ...), and temporal (over different generations of hardware).

Vertical scaling within nodes often relies on threading approaches (e.g., OpenMP [6], pthreads [7], and Cilk [8]) that leverage shared memory model. Threading allows libraries (e.g., MKL [9], MAGMA [10], SPIRAL [11], and GraphBLAS [12], [13]) written in low-level languages (e.g., C [14], C++ [15], and Fortran [16]) to deliver parallel performance at

Research was sponsored by the Department of the Air Force Artificial Intelligence Accelerator and was accomplished under Cooperative Agreement Number FA8750-19-2-1000. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the official policies, either expressed or implied, of the Department of the Air Force or the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints for Government purposes notwithstanding any copyright notation herein.

the function level that can be readily called by a high level programming language. Vertical scaling on accelerators often follows a similar approach leverage technologies that are designed for more heterogenous accelerator architectures (e.g., CUDA [17] and OpenCL [18]).

Accelerators have created a veritable zoo of precisions as they pursue the relatively low precision requirements of AI (see Figure 1). Added to the traditional double (FP64), single (FP64), and integer (int64, int32, int16, int8) types are half (FP16), quarter (FP8), eighth (FP4), brain float (BF16), and tensor float (TF32), which takes BF16 input and produces FP32 output). The potential performance gains of these new types are significant and it is important for algorithm developers to have performant access to them in high level languages.

Accelerators have also increased both memory bandwidth and memory capacity of their fastest programmable memories (see Figure 1). The combined memory bandwidth and capacity improvements increasingly enables algorithms that trade decreased compute for increased memory usage. Specifically, algorithms that do fewer operations per byte but access those bytes more (e.g., sparse and spectral methods).

Vectorization [19], [20] is an important optimization technique that is particularly relevant to high-level languages that often use large arrays as a core construct. Operating on large arrays can often be the key to leveraging the underlying high performance libraries that are built with the aforementioned vertical scaling methodologies. Using vectorization to access accelerator performance begins with good memory bandwidth performance as high level languages can often use more memory than lower level languages. The Stream benchmark is a common benchmark for measuring bandwidth that vectorizes well [21]. This work builds on our prior work with this benchmark [22].

Diverse precision performance first requires the availability of the corresponding types in the high level language. Next, the extent that high level languages makes it easy to access the underlying hardware performance can be assessed. Matrix multiply is a good tool for exploring both as matrix multiply is a defined mathematical operation for diverse types (both real and complex) and the underlying hardware is often designed to accelerate this operation. Together, Stream vector operations and matrix multiplication are a good foundation for building many real applications, particularly in the area of sensor processing. Two important sensor processing applications are beamforming and image convolution.

Beamforming is the basis of many sensing and communication applications, including: radar, mineral exploration, medical imaging (MRI, ultrasound, ...), wireless communications, land/sea/undersea/air/space manned/unmanned navigation and traffic management, satellite imaging, weather monitoring, oceanography, and radio astronomy. Correspondingly, we have a developed and published a “Beamformer” mini-application that exercises the most computationally intensive aspects of beamforming [23]. Beamforming relies on complex matrix multiplication over diverse precisions and should track the corresponding underlying matrix multiplication performance.

Image (2D) convolution is a foundation of most image processing that is widely used in many of the same applications as beamforming. 2D convolution is also critical to convolutional neural networks (CNNs) widely used in AI applications. Likewise, we have a developed and published a “Blurimage” mini-application that exercises the most computationally intensive aspects of 2D image convolution [23]. Blurimage relies on 2D convolution over diverse precisions (both real and complex) and can be implemented with compute intensive direct methods and memory intensive spectral methods using the Fast Fourier Transform (FFT) [24]–[26].

This paper presents a brief case study on the performance of accelerated vectorized codes over diverse precisions in high level languages, using Stream, matrix multiplication, Beamformer, and Blurimage. These benchmarks are implemented in Matlab and Python and leverage the pMatlab [23] and pPython [27] distributed array libraries for multi-process parallelism when required. Performance is measured on a individual nodes of varying CPU and GPU hardware spanning almost a decade of technology. The remainder of the paper is organized as follows. We first describe basic vectorization and parallelization. We then present an in-depth look at the matrix multiplication benchmark. Subsequent sections describe the application benchmarks, the benchmarking hardware, and the performance results, followed by conclusions and a discussion of potential future work.

References (33)