Manuscript Offprint
arXiv:2610.31917Energy-Aware Performance Characterization of Kokkos Kernels Across Precision Levels
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Kokkos is a performance-portable programming model used in GPU-accelerated HPC applications comprising kernels with diverse computational and memory behaviors. We characterize kernels from two applications to evaluate how FP32, FP64, and mixed FP32/FP64 affect arithmetic intensity, performance throughput, and GPU energy consumption. We introduce an Energy-Aware Roofline Model that incorporates energy into performance analysis and a Thermal-Aware Inter-Kernel Energy Model that visualizes energy consumption alongside duration, GPU temperature, and execution order. We study both applications with: (1) fine-grained, application-level instrumentation through the Kokkos Performance Tools PAPI Connector and (2) coarse-grained PAPI instrumentation applied to a dedicated-kernel benchmark using vendor-specific power management components. Our analysis shows that precision effects vary by application, kernel, and workload. Mixed FP32/FP64 kernels generally achieve arithmetic intensity comparable to FP32, with modestly lower throughput and, in most cases, a modest increase in energy consumption. FP64 kernels generally exhibit the highest energy consumption among the evaluated precision configurations.
1 Introduction
Energy consumption has become a first-order concern in high-performance computing (HPC) systems and data centers, on par with raw performance. Modern supercomputers face strict power budgets (e.g., a 30 MW cap for exascale systems), making energy efficiency essential. The Green500 list ranks supercomputers by “FLOPS per Watt”, highlighting the push for maximizing computational work per unit energy. Consequently, HPC application developers must optimize not only runtime performance but also energy usage.
Scientific applications often consist of multiple computational kernels or phases, each with different characteristics (compute-intensive, memory-intensive, network-intensive etc.). Traditionally, performance models such as the Roofline model [1] help developers identify performance bottlenecks by relating attainable performance throughput (in flop/s) to a kernel's arithmetic intensity (flop/byte). By plotting these quantities and comparing them against hardware ceilings, namely peak compute capability and peak memory bandwidth, the model reveals whether a kernel is compute-bound or memory-bound, and how far it is from the achievable limits of the architecture. However, data points in the Roofline model alone do not quantify the energy required to complete a kernel. For a complete performance analysis, developers need to compare throughput with completion time and energy usage, then locate costly regions within application execution.
We present two complementary performance visualization models for this task on graphics processing units (GPUs). The Energy-Aware Roofline Model connects arithmetic intensity and achieved throughput to measured GPU energy. The Thermal-Aware Inter-Kernel Energy Model compares region duration and energy while recording their temperatures and execution order.
This paper makes the following contributions:
- Energy-Focused Models: We combine energy-aware Roofline analysis with a view of region/kernel energy, duration, execution order, and temperature. Power reference lines distinguish average power from accumulated energy. Together, the models identify costly computation and describe its execution context, including regions without floating-
*Oak Ridge National Laboratory
This manuscript has been authored by UT-Battelle, LLC, under contract DE-AC05-00OR22725 with the U.S. Department of Energy. The United States Government retains and the publisher, by accepting the article for publication, acknowledges that the United States Government retains a nonexclusive, paid-up, irrevocable, world-wide license to publish or reproduce the published form of this manuscript, or allow others to do so, for United States Government purposes. The DOE will provide public access to these results in accordance with the DOE Public Access Plan (http://energy.gov/downloads/doe-public-access-plan).
point operations. We evaluate this characterization capability.
-
Multi-Application Precision Analysis: We analyze kernels from two applications (LOBPCG and ArborX) at various floating-point precisions in data and operations (FP32 vs FP64) to expose the impact of precision on time-to-solution, energy, power, and temperature. At a time when scientists are looking at how to incorporate low precision and mixed precision algorithms in their computations [2], our approach provides more insight into the impact of these techniques. Eigensolvers of the Locally Optimal Block Preconditioned Conjugate Gradient (LOBPCG) type are at the core of Density Functional Theory calculations that use a large fraction of HPC resources at supercomputing centers [3].
-
Energy-Aware Instrumentation Methodology Comparison: We compare the region-level method with Kokkos-tools and PAPI used in ArborX with the dedicated-kernel benchmark used in the LOBPCG eigensolver. We provide advantages and limitations when using both techniques to collect and analyze the data.
Together, these contributions address three research questions:
RQ1: How does incorporating energy consumption into Roofline analysis provide a broader multi-objective view of individual GPU kernel behavior?
RQ2: What does the Thermal-Aware Inter-Kernel Energy Model reveal about region/kernel energy costs and temperature during application execution?
RQ3: How do numerical precision and workload affect kernel-level performance, energy consumption, and thermal behavior across Kokkos-based GPU applications?
2.1 Roofline Model
The roofline model was introduced by Williams et al. [1] to visualize the limiting factor for the performance of a computational kernel. The concept of arithmetic intensity (or operational intensity) of a kernel is key to this method, typically defined as the number of floating-point operations (flop) performed by the kernel per byte of data loaded from memory. The roofline method involves plotting the flop throughput of a kernel against its arithmetic intensity, superimposed on the machine's roofline.
If the kernel’s arithmetic intensity (and the x-axis of the plot) is , the processor hardware’s peak memory bandwidth is m and peak flop throughput is f, then the roofline is .
Traditionally, performance optimization attempts to move the kernel as close to the roofline as possible, while also increasing the arithmetic intensity as much as possible. For a fixed problem size, this is expected to help achieve faster time-to-solution. While theoretical values of arithmetic intensity can sometimes be used for these models based on the knowledge of the specific operations involved in an algorithm, those can also be measured and provide additional insights [4].
2.2 Performance Monitoring Methodologies
Runtime data collection combines hardware-assisted monitoring with software instrumentation. External devices, off-chip analyzers, and on-chip performance counters can observe system-wide events with little application overhead, but they may be costly, platform-specific, or limited to summarized data. Software instrumentation complements these sources by delimiting code regions and controlling when counters are read [5]. Software-only methods range from high-overhead code emulation to instrumentation inserted through microcode, operating-system traps, executables, object files, or source code. Direct code instrumentation is widely applicable because it preserves program logic while trading modest runtime overhead for portable, region-level attribution [5].
2.3 Performance Application Programming Interface (PAPI) - NVIDIA Management Library (NVML)
The Performance Application Programming Interface (PAPI) is an interface that provides performance counter monitoring capabilities as a library and a tool for performance analysis [6]. It offers two APIs for selecting and accessing hardware counters: a low-level (e.g., PAPI_read) and a high-level (HL) API (e.g., PAPI_hl_region_begin, PAPI_hl_region_end) for instrumented code regions [7]. The advantage of using the high-level API lies in its ease of use, as it requires less configuration while internally invoking the low-level one; however, both APIs can be used simultaneously, if needed [8]. Through these interfaces, PAPI enables users to access performance and power counters across diverse software technologies and hard-ware architectures, including NVIDIA GPUs through the integration of CUDA Profiling Tools Interface (CUPTI)'s API, the Nsight Perf SDK, and the NVIDIA Management Library (NVML). Compute performance data such as number of single-precision and double-precision floating-point operations, and energy/thermal data—such as power consumption, fan speed, and temperature are exposed via the CUDA and NVML components, respectively [6]. The NVML API provides methods for different purposes, including Device Queries, to access information against each (GPU) device. PAPI integrates queries, such as nvmlDeviceGetPowerUsage and nvmlDeviceGetTemperature, enabling users to select the hardware counters and devices to monitor by defining the corresponding PAPI_EVENTS. The NVML API also offers additional device queries, such as nvmlDeviceGetTotalEnergyConsumption that retrieves the total energy consumption for a selected GPU device in millijoules (mJ) since the driver was last reloaded [9].
2.4 Kokkos
Kokkos [10] is a library allowing abstraction of common parallel execution patterns, such as parallel loops, reductions, and scans (prefix sums), from the underlying hardware. Kokkos provides an abstraction for a multidimensional data structure called View. The layout of this data structure depends on which memory the data resides in (host or device).
The Kokkos Core library allows applications to instrument their runtime through the Kokkos profiling interface. The interface allows an application to dynamically load helper tools to be executed in certain places, such as beginning and end of any parallel region, memory allocations, and data transfers. This allows developers to collect kernel-level performance and debugging data without requiring changes to the build. A collection of such tools is available in a separate Kokkos Tools project, including many tools for debugging and profiling [11].
We note two tools of particular interest to our paper. The space-time stack profiling tool provides a nested kernel/region representation, including the number of calls, execution time, total application percentage, and memory information. The PAPI connector uses an external PAPI installation's high-level (HL) API to access PAPI hardware counters that are specified via the PAPI_EVENTS environment variable. Upon application finalization, a JSON file is generated reporting the measured events for each parallel construct and profiling section [12].
3 Related Work
3.1 Roofline and Energy Models
Choi et al. [13] proposed a new roofline model of energy, considering the differences that arise when one tries to optimize for energy rather than time as the constraining resource. They point out that the traditional roofline model looks at a kernel in relation to the time balance of the machine, which is the ratio of the peak flops the machine can perform per unit time to the peak bytes it can fetch from memory per unit time. They look at the energy balance of the machine, which is the ratio of the peak flops per unit energy consumed to the peak bytes fetched from memory per unit energy. They show that when , optimizing for time will lead towards optimal energy efficiency as well. Otherwise, optimizing for the fastest execution may increase energy efficiency, but further optimizations may be possible that yield even better energy efficiency without speeding up the execution further. Their methodology involves dedicated hardware for physically measuring the current and voltage to the GPU, CPU, etc. Their studies involve the NVIDIA GTX 580 GPU of the Fermi architecture as well as an Intel workstation CPU of the Nehalem generation.
Ding et al. [14] proposed an Instruction Roofline Model for GPU-accelerated applications that captures instruction throughput, thread predication and memory access efficiency across the memory hierarchies by counting instructions and memory transactions. They introduced Instruction Intensity (warp instructions per memory transaction), measured performance in billions of instructions per second (GIPS) scaled to billions of transactions per second (GTXN/s), and defined memory walls to represent and categorize memory access patterns. They evaluated their model on NVIDIA V100 GPUs with five proxy applications.
When it comes to energy efficiency, one can use hand-derived analytical quantities, such as the theoretical number of flops or bytes, as a proxy for energy consumption. However, this depends on application-specific knowledge and may be limited in real-world accuracy. For example, Anzt et al. [15] reported on the modeled energy consumption of a mixed precision preconditioner that they proposed for use in sparse linear solvers. They assume that the workload is always limited by main memory bandwidth and use the total number of bits of data as a proxy for the relative energy consumption of the solver.
Ghane et al. [16] extended the Roofline model to visualize the relationship between energy efficiency and power consumption for GPUs. They developed compu-tational and memory roofline models with axes representing energy per flop and per byte transferred, against power (W). They incorporated optimization techniques such as fused multiply-add (FMA), instruction level parallelism (ILP), thread and block scaling, and strided memory accesses as ceilings, and collected energy data using their Phoenix library. They compared single- and double-precision kernels on two NVIDIA GPU architectures.
Ilic et al. [17] built the Cache-Aware Roofline Model (CARM) that incorporates complex memory hierarchies in a single plot by accounting for all memory operations, including accesses to different cache levels, with bandwidth defined relative to the processor core and dependent on the accessed memory level for CPUs. They further extended the CARM model in [18] by developing PowerCARM, a set of cache-aware power, energy, and energy-efficiency models that visualize the power consumption, energy usage, and energy efficiency of CPU cores, off-core components (uncore), and the overall chip package; the plots use arithmetic intensity on the x-axis and power, energy, or flop per unit energy on the y-axis for different hardware domains, while Intel RAPL (Running Average Power Limit) was used for measurement collection and validation on Intel 3770K (Ivy Bridge) processor.
Energy estimates obtained by integrating built-in GPU power-sensor traces face a different limitation: the samples can be coarse-grained (e.g. millisecond scale) or filtered. Yang et al. [19] show that, on NVIDIA A100 and H100 GPUs, nvidia-smi reports power as a 25 ms average sampled every 100 ms. As a result, power samples can miss short bursts of activity and underestimate energy consumption.
We therefore obtain per-kernel energy from nvmlDeviceGetTotalEnergyConsumption through PAPLEVENTS rather than integrating sampled power. We add measured energy to the Roofline view and introduce a visualization model that presents region-level energy and duration relative to power reference lines while retaining Kokkos execution order and temperature.
3.2 Profiling Tools
Dietrich et al. [20] implemented a Score-P adapter for the Kokkos profiling interface to enable performance analysis of Kokkos applications. The adapter was built as a shared library, loaded via the KOKKOS_PROFILE_LIBRARY environment variable. The authors collected execution traces and visualized them with Vampir. This enabled analysis of Kokkos region behavior and its correlation with the underlying CUDA backend, while it could be extended in the future to include additional information for mapping results back to the source code.
PowerPack [21] is an integrated hardware and software framework for power and energy profiling in distributed systems. It combines sensors, digital meters, APIs, and analysis tools to correlate system and application activities with power consumption at both component and code-segment granularity. Experimental data are collected remotely via a local intranet (out-of-band measurements), while user-level APIs synchronize application execution with the power profiling process.
Chen et al. [22] utilize a new tool called Verificarlo and develop a promising methodology to instrument an application to study changes in numerical behavior in response to precision changes. In addition, they use cache-aware roofline modeling to determine possible improvements in time-to-solution from using lower precision. In contrast to this work, while their focus on accuracy is notable, they focus exclusively on CPUs, use Cray PM counters, and do not show a unified picture of energy and performance throughput (flop/s).
Our profiling methodology relies on PAPI through two approaches: Kokkos Performance Tools for application-level instrumentation and a dedicated-kernel benchmark.
3.3 Application-Aware Thermal Management
Application-aware thermal management couples a temperature objective to the performance cost of changing execution. Sarood and Kalé [23] exploit differences in frequency sensitivity among application regions to apply Dynamic Voltage and Frequency Scaling (DVFS) under a core-temperature constraint. Menon et al. [24] combine temperature control with automated load balancing to reduce the timing penalty caused by unequal processor speeds. Their runtime accounts for the cost of monitoring and redistribution when deciding when to intervene. These studies motivate distinguishing application phases, since phases can respond differently to frequency changes. Choosing a control action requires considering its expected performance impact and monitoring or redistribution overhead, in addition to the measured temperature.
In our application-level GPU measurements, named regions identify the kernels being measured, and execution order records their sequence. The Energy-Aware Roofline Model relates computational behavior to GPU energy, while the Thermal-Aware Inter-Kernel Energy Model locates region costs in execution order and records their thermal context. This representa-tion supports examining how temperature varies across application regions with different computational behavior.
4 Methodology
4.1 Energy-focused Instrumentation Techniques
We first use the Kokkos Tools space-time stack to identify the kernels that dominate execution from the call counts and timings in its Top-Down Tree. We then collect per-kernel FP32 and FP64 operation counts and memory traffic from CUDA counters, and temperature from NVIDIA Management Library (NVML) counters via PAPI.
For energy, we read the cumulative GPU energy counter exposed by NVML at region boundaries and compute through PAPI HL. The nvmlDeviceGetTotalEnergyConsumption API reports the energy consumed since the driver was last reloaded, in millijoules, on supported Volta or newer GPUs [9]. These differences directly measure each region's energy consumption without integrating separately sampled power measurements over time. They remain subject to the counter's update behavior. We collect the counter through PAPI, which we extended to expose this NVML metric. We also modified the Kokkos Tools PAPI connector to report kernel-region execution order for extracting inter-kernel relationships.
We use the connector through the PAPI high-level (HL) API to collect per-region/per-kernel measurements. In our setup, instrumentation incurs 6.31 ms of overhead per measured region. We also account for the update frequency (100 ms validated through measurements) of NVML power counters on modern GPUs; shorter intervals may fail to capture new counter updates and can degrade measurement quality [25–27]. We measured the energy counter update interval across 100 transitions under both idle and active GPU workloads. The median interval ranged from 100.01 to 100.05 ms across the two H100 NVIDIA GPUs, corresponding to an update frequency of approximately 10 Hz. We restrict direct measurements to regions lasting at least 101 ms and discard unchanged energy-counter readings. The reported 6.31 ms instrumentation cost corresponds to approximately 6.25% of that duration in our experimental setup. This ratio characterizes timing overhead. For shorter regions, we use a dedicated repeated-execution benchmark.
Application-level measurements retain region order, whereas the dedicated benchmark characterizes kernels under repeated execution. Its PAPI low-level API reads counters around a loop that repeatedly invokes each kernel, amortizing boundary-read overhead. We evaluate FP32, FP32 storage with FP64 computation (FP32/FP64), and FP64. This approach provides average per-kernel metrics but does not capture the effects of region ordering and interactions during a complete application run.
Temperature and energy have different measurement semantics. NVML provides an instantaneous temperature reading, while we compute energy consumption as the difference between cumulative energy-counter readings. As with other measurements, we report the mean and sample standard deviation of the recorded temperature readings across runs. The energy measurements cover the GPU device.
4.2 Energy-Aware Modeling
We characterize kernels on multiple aspects to help us understand performance behavior and guide optimization efforts. We present two energy-aware performance visualization models:
Energy-Aware Roofline Model
The model extends the traditional Roofline Model by incorporating energy as a third dimension. It enables kernels to be characterized by their arithmetic intensity, achieved performance throughput, and GPU energy consumption. By combining these dimensions, kernels can be categorized according to their execution behavior (memory- vs. compute-bound) while simultaneously comparing their energy consumption (high vs. low energy consumers). This unified view provides deeper insight into kernel behavior, helps identify high-energy kernels, and prioritize optimization opportunities.
Thermal-Aware Inter-Kernel Energy Model
The model illustrated in Figure 1 compares measured region energy against duration and uses color to encode GPU temperature; temperature supplies descriptive execution context. The model includes regions without floating-point operations, which cannot be positioned on a floating-point Roofline. For duration t and energy E, the ratio E/t gives average GPU power. Lines at idle power and Thermal Design Power (TDP), each multiplied by t, provide power references rather than guaranteed energy bounds or definitions of efficiency. A region's energy represents its accumulated consumption, while its proximity to a reference line indicates its average power, enabling the model to visually classify kernels by their energy and power profiles (e.g., low- ver-sus high-power and low- versus high-energy) and thermal characteristics (e.g., cold versus hot).
Arrows record execution order among regions. Solid lines indicate consecutive kernel executions with no intervening kernels, whereas dashed lines indicate that other kernels are executed in between. The execution order can reveal potential measurement dependencies among kernels and highlight similarities that may extend across neighboring kernels. They do not represent heat transfer, a continuous timeline, or demonstrated causal influence. The pink area indicates measurements excluded from direct energy comparisons under our measurement policy described above to ensure reliable analysis.

Figure 1: Schematic of the Thermal-Aware Inter-Kernel Energy Model, separating accumulated energy (J), duration (s), and temperature (°C, color). Points are illustrative, not measurements. Lines provide idle-power and TDP references. The pink area marks the excluded duration range. Solid and dashed arrows indicate consecutive and nonconsecutive execution order.
5 Evaluation
We examine the main computational kernels of two real-world scientific applications using region/kernel level profiling techniques and performance visualization models to provide actionable performance insights.
5.1 Applications
We study two scientific applications.
Block Iterative Eigensolvers
Iterative eigensolvers are typically used to solve large-scale eigenvalue problems, for computing a few extreme eigenvalues and their associated eigenvectors of a large sparse matrix. Block solvers are a category of solvers for which multiple eigenvalue/eigenvector pairs are computed simultaneously. They can be numerically more efficient since they rely principally on higher arithmetic intensity kernels. Here we focus on the Locally Optimal Block Preconditioned Conjugate Gradient (LOBPCG) [28], an efficient solver in particular for applications where a good preconditioner is available (see [29] for a reference implementation). The main data structures are tall-and-skinny matrices of size used to store N trial eigenvectors, residuals or other quantities with M components ( ).
The main computational kernels in LOBPCG are a sparse matrix-vector multiplication (spmv), two flavors of matrix-matrix multiplications ( multiplied by referred to as gemm, and multiplied by a triangular part of referred to as trmm), an application of a preconditioner (prec), and an orthogonalization of a set of N vectors (Cholesky-QR). Other operations are important from an algorithmic point of view, but contribute very little to total computational cost, and are ignored here. For this study, we use our own Kokkos implementations because vendor libraries do not support all of the mixed-precision variants considered. The resulting gemm implementation is memory-bound due to optimizations targeting the “tall-and-skinny” matrices used in LOBPCG, as confirmed by the roofline analysis in the next section.
ArborX
ArborX [30] is a performance-portable geometric search library based on Kokkos. In our experiments, we focus on the DBSCAN clustering algorithm [31] implemented in ArborX [32]. The algorithm splits a set of given multi-dimensional points into disjoint sets, called clusters, grouping together high-density regions of the data. The choice of this algorithm is motivated by the very different nature of the algorithm compared to the LOBPCG application. Here, there are only a few computational kernels; each executed once, with the main task concerning a parallel tree (bounding volume hierarchy) traversal. We run the algorithm using two datasets coming from a cosmology application [33].
The main computational kernels are the search index construction (BVH::BVH), computation of the number of neighbors within a given radius (DBSCAN::clusters::num_neigh), assignment of points to the clusters by merging the neighbors (DBSCAN::clusters::query), and filtering out small clusters (DBSCAN::postprocess). Both DBSCAN::clusters::num_neigh and DB-
SCAN::clusters::query are memory-dominant kernels requiring random access during a binary tree traversal.
Both applications can be executed in FP32 and FP64 modes, in which computation and data storage use the same level of precision. The LOBPCG kernels examined here can run in a mixed precision mode, in which two precisions are used: the precision of the data, and the precision of computations. For example, LOBPCG::CholeskyQR FP32/FP64 means that the vectors are stored as float and the computations are done in double. Depending on precision choices, LOBPCG may become unstable, in particular if FP32 is used everywhere. In this paper, we analyze the LOBPCG kernels regardless of the stability and accuracy effects on the whole algorithm, which is outside the scope of this paper. Recently, a mixed-precision implementation of this algorithm was proposed [34].
5.2 Environment Setup
We run our benchmark suite on a compute node equipped with an AMD EPYC 9454 (Genoa) CPU and two NVIDIA H100 NVL GPUs. We use Kokkos v5.0.0, modified Kokkos Tools and PAPI, which contains our contributions [35,36]. Kokkos Tools and PAPI were run with their default settings.
We run each benchmark seven times and calculate averages and standard deviations (the average values of the various metrics are used in the plots). PAPI events are grouped into different categories: e.g. FP32 operations, FP64 operations, DRAM operations, energy-thermal operations, and retrieved separately. The ArborX collection script groups runs by precision and workload, with a one-second pause between repetitions. This procedure does not establish a common starting temperature. Energy and instantaneous temperature are collected in the same group and attributed to the corresponding regions of the measurement.
For ArborX (commit c831cd3), we ran the DBSCAN benchmark with the DBSCAN parameter minPts set to 10 (i.e., each point needs to have 10 neighbors within radius to be considered a core point) to collect per-kernel performance information. For FP32 and FP64 cases, we set the corresponding precision flag affecting the data precision used during the hierarchy construction as well as the hierarchy traversal. We consider two problem sizes from [33]: 37M (using ) and 497M (using ).
For LOBPCG, we evaluated two problem sizes, referred to as “small” and “large” with sizes , and , respectively. The matrices correspond to discretized Hamiltonians in Density Functional Theory [37], with M being the size of the discretization mesh and N the number of electronic wave functions of interest in these chemistry applications (and also the number of eigenpairs computed). Only the diagonal elements of the matrices are actually stored, while the rest of it is a finite difference stencil used directly to compute a matrix-vector operation.
Finally, for ArborX, we use the modified Kokkos Tools PAPI connector to record and present the regions in the order observed by the tool, representing the kernel execution order.
5.3 Application Kernel Analysis
Initial statistical analysis of small and large workloads across both precision levels showed that LOBPCG contains approximately 40 short-lived kernels mostly called at every iteration, and a typical total number of iterations ranging from 50 to 100. The average invocation count per kernel/region and run ranged from one to approximately 2,220, depending on the workload. Among these, BLAS::dot, BLAS::gemm with any parameters, BLAS::trmm, BLAS::spmv, Preconditioner::apply, and CholeskyQR accounted for the majority of the execution time.
Similarly, analysis of small and large workloads across both precision levels showed that ArborX contains 25 kernels, most of which are invoked only once during application execution. Application execution times ranged from 0.5 to 18.5 s, depending on the workload and precision. Kernel execution times exhibited low standard deviation across runs. Among these, DBSCAN::clusters::num_neigh, DBSCAN::clusters::query, DBSCAN::postprocess, and BVH::BVH accounted for the majority of the execution time within the main computational region, DBSCAN::total.
Overall, we selected distinct kernels contributing more than 5% of the total computational time in each application for further analysis.
5.4 Application Kernel Characterization
Figure 2 displays the Energy-Aware DRAM Roofline model of LOBPCG kernels for the large workload. Regarding the kernels BLAS::dot, BLAS::gemm and CholeskyQR the mixed-precision FP32/FP64 implementations exhibit arithmetic intensities very similar with those of the FP32 implementations. Except for BLAS::dot, the FP32/FP64 kernels consume slightly more energy than their FP32 counterparts up to 11.52% (CholeskyQR), while achieving slightly lower performance throughput, with reductions of up to 10.76% in every case. In contrast, the FP64 implementations exhibit substantially lower arithmetic intensity and performance throughput than both the FP32 and FP32/FP64 implementations while consuming considerably more energy. Specifically, arithmetic intensity decreases by 50% (BLAS::dot) and by as much as 64.2% (Preconditioner::apply) and performance throughput decreases by 35.2% (BLAS::dot) and by as much as 50.3% (BLAS::gemm). Energy consumption increases by 60.3% for BLAS::dot and by approximately a factor of two for BLAS::gemm.
Regarding the kernels’ execution characteristics, the kernels lie approximately parallel to the GPU memory-bandwidth roof in the memory-bound region. Their clustering along this trend suggests that the application’s dominant kernels exhibit a similar relationship between arithmetic intensity and achieved performance, reflecting a common memory-bandwidth-limited execution pattern with this workload. This memory-bound behavior also explains the observed precision trends, since memory accesses are dominated by FP32 data even in FP32/FP64 kernels, while FP64 kernels require larger memory transfers for FP64 arrays.
For the small workload, performance throughput and arithmetic intensity remain similar between most FP32 and FP32/FP64 kernels, consistent with the large-workload results for most kernels. However, BLAS::dot exhibits the largest differences in arithmetic intensity among all three precisions due to substantial differences in the amount of DRAM data transferred (cuda::dram__bytes), ranging from 5,581 bytes for FP32 to 63,960,000 bytes for FP64. This difference can be explained by the fact that the working vectors can reside in L2 cache for the small workload, thereby reducing the need to fetch data from DRAM; the L2 cache of the NVIDIA H100 GPU being 50 MB. Energy consumption is substantially higher for FP64 than for the other two precisions, reaching up to higher for BLAS::dot, while arithmetic intensity and performance throughput for the rest of the kernels decrease for FP64 by up to 84.2% and 44.9%, respectively (BLAS::gemm).
Figure 3 shows the Energy-Aware DRAM roofline model of the ArborX kernels for the large workload; DBSCAN::postprocess is excluded due to lack of floating-point operations. Arithmetic intensity decreases from FP32 to FP64 by approximately 30% in the BVH::BVH and DBSCAN::clusters::query kernels, while energy consumption increases by more than 40%. In contrast, for DBSCAN::clusters::num_neigh, arithmetic intensity and performance throughput increase from FP32 to FP64 by 19.8% and 29.6%, respectively, accompanied by a 39.5% increase in energy consumption.
Regarding the kernels' execution charac-

Figure 2: LOBPCG - Energy-Aware Roofline Model Large Workload. Outline color denotes precision (blue for FP32, magenta for FP32/FP64 and yellow for FP64); fill color denotes energy according to the color bar; marker shape denotes the kernel/region.

Figure 3: ArborX - Energy-Aware Roofline Model Large Workload. Outline color denotes precision (blue for FP32 and yellow for FP64); fill color denotes energy according to the color bar; marker shape denotes the kernel/region.
teristics, DBSCAN::clusters::query and DBSCAN::clusters::num_neigh remain far from the FP32 and FP64 compute roofs. BVH::BVH is influenced more strongly by memory bandwidth, similar to the LOBPCG kernels, while the other two kernels occupy the transition region between the memory-bandwidth and compute roofs.
For the small workload, arithmetic intensity follows a similar trend to that observed for the large workload. Compared with FP32, the performance throughput of the DBSCAN kernels increases by up to 57.7% (DBSCAN::clusters::num_neigh) in FP64. The number of floating-point operations differs between FP32 and FP64 because the sqrt function appears to produce an uneven increase in floating-point operations in our environment, thereby affecting the reported throughput. Differences between precisions in energy consumption are minor. With respect to their proximity to the GPU memory-bandwidth roof, the kernels lie farther below the roof for the small workload than for the large workload, particularly BVH::BVH and DBSCAN::clusters::num_neigh.
Figure 4 displays the Thermal-Aware Inter-Kernel Energy model of the ArborX kernels for the large workload. The DBSCAN::clusters::num_neigh and DBSCAN::clusters::query regions have the longest durations and largest energy costs among the four selected ArborX regions. They execute consecutively (solid directed lines) and lie near the TDP reference line. Their mean temperatures range from 60.7 to 62.4°C, compared with 55.9 to 56.7°C for BVH::BVH and DBSCAN::postprocess. The consecutive kernels are hotter and more energy-intensive than the other two. This suggests that neighboring regions can exhibit similar measured energy and temperature behavior, potentially forming thermal phases during application execution. Across all four regions, the absolute temperature difference between the corresponding FP32 and FP64 measurements remains below 0.9°C.
Temperature readings alone would miss the impact of precision on energy use. For DBSCAN::clusters::query, FP32 consumes 705.9 J at a temperature of 62.4°C, whereas FP64 consumes 1,012.6 J at 62.0°C (means across seven runs). The energy sample standard deviation is small relative to the mean for both precisions. Thus, FP64 consumes 43.5% more energy despite a slightly lower mean temperature reading. All seven FP64 temperature samples were 62°C. The zero sample standard deviation does not establish identical underlying temperatures. Large-workload DBSCAN::postprocess has slightly lower mean duration and energy in FP64, with energy differences small relative to the FP64 sample variation. Its lack

Figure 4: ArborX - Thermal-Aware Inter-Kernel Energy Model Large Workload. Outline color denotes precision (blue for FP32 and yellow for FP64); fill color denotes temperature according to the color bar; marker shape denotes the kernel/region; solid and dashed arrows indicate consecutive and nonconsecutive execution order, not heat transfer; diagonal lines are power references.
of floating-point operations motivates checking the surrounding execution context, but does not identify the cause of the difference.
For the small workload, FP64 BVH::BVH and DBSCAN::clusters::num_neigh take 3.5-9.3% longer and consume up to 1.2% more energy than FP32. DBSCAN::postprocess provides a different comparison: FP64 has a lower mean temperature reading (54.9°C versus 57.1°C), yet consumes 32.3% more mean energy. Its mean energy is 17.0 J in FP64 and 12.8 J in FP32. However, the kernel has no floating-point operations. Additionally, FP64 energy consumption exhibits greater variability, particularly for the short DBSCAN::clusters::num_neigh and DBSCAN::postprocess kernels, while the FP32 and FP64 energy ranges overlap for all kernels. One possible explanation for the energy variation of the short kernels is counter-update timing. The approximately 100 ms update interval [25] is close to the 109–130 ms FP64 DBSCAN::postprocess durations. Small timing shifts can cause a region's energy reading to include energy from preceding work or miss energy reported after the region ends. In contrast, the energy measured over the longer enclosing DBSCAN::total region remains stable, suggesting that the variation in the postprocessing measurements is an artifact of sensor granularity rather than a variation in the overall energy consumption. Temperature standard deviations are small in both precisions. We exclude paired energy comparisons for small-workload DBSCAN::clusters::query because all seven FP32 durations fall below the 101 ms threshold.
The LOBPCG benchmark supports energy-duration comparisons, but not the model's application execution-order interpretation. Initial results show that all kernels operate close to the maximum TDP power, indicating GPU power-intensive behavior. Compared to FP32 and FP32/FP64, FP64 kernels generally have longer execution times, consume more energy, and exhibit comparable, though slightly lower, temperatures (up to 4.1% lower). For (small workload), BLAS::gemm with FP64 storage and arithmetic averages 70.3°C, versus 73.3°C with FP32 storage and FP64 arithmetic. Temperature standard deviations are small in both configurations. The 3.0°C decrease above is the largest across the compared precision modes and two workloads.
5.5 Discussion
Regarding LOBPCG, FP32 and mixed FP32/FP64 kernels generally exhibit comparable arithmetic intensity, while mixed precision delivers modestly lower performance throughput. FP32/FP64 mixed precision consumes more energy in most cases, although some kernels exhibit comparable or lower energy consumption. In contrast, the FP64 kernels consistently achieve lower arithmetic intensity and performance throughput while consuming more energy than both FP32 and FP32/FP64. These memory-bandwidth-limited kernels have different measured energy costs across precision modes. The bandwidth bottleneck alone therefore does not determine which precision minimizes energy consumption, revealing the need for incorporating energy consumption into the Roofline analysis (RQ1). FP32 provides the most favorable measured performance-energy trade-off. However, in practice, the mixed-precision FP32/FP64 option may be favored as it enhances precision at a low additional cost compared to the single-precision FP32 option. This is, for example, the case for Cholesky-QR [38]. Our findings therefore indicate that selecting FP32 or FP32/FP64 instead of FP64 can provide meaningful computational performance and energy benefits for LOBPCG with either workload (RQ3).
For ArborX, the effects of precision depend on the kernel region and workload. For the large workload, FP64 kernels generally run longer and consume more energy. For the small workload, runtime differences between precisions are generally smaller, while energy differences vary by kernel, with the FP32 and FP64 energy ranges overlapping for all evaluated kernels. Within the DBSCAN region, DBSCAN::clusters::query accounts for 69.0% of the energy consumption in FP32 and 72.1% in FP64. Our ArborX findings indicate that selecting FP32 can reduce energy consumption and execution time, particularly for larger workloads, whereas this trend is less pronounced for smaller workloads (RQ3).
The Thermal-Aware Inter-Kernel Energy Model reveals region energy costs, including costs absent from the floating-point Roofline, together with execution order and temperature. Temperature adds descriptive information, but the present results do not demonstrate an independent optimization benefit from that information. The practical implication is to prioritize duration and energy, then use the Roofline to investigate computational behavior. A subsequent thermal-control study would need to separate profiling effects from execution history and measure the response to a control action. The related work in Section 3.3 motivates such studies. Within these limitations, our measurements can reveal neighboring regions with similar temperature and energy behavior, indicating potential thermal phases (RQ2).
Finally, setting flags to switch precision for the same kernel does not necessarily guarantee that the same number of floating-point operations (flop) will be ex-executed. As observed in our measurements, the executed flop count can differ across precision levels, which may influence arithmetic intensity and overall performance. These differences should therefore be acknowledged when interpreting changes in the measured metrics across numerical precisions (RQ3).
6 Conclusion and Future Work
We presented two multidimensional performance visualization models—the Energy-Aware Roofline Model and the Thermal-Aware Inter-Kernel Energy Model—for analyzing Kokkos-based, GPU-accelerated HPC applications. We characterized the execution patterns of the primary non-overlapping kernels in LOBPCG and ArborX across numerical precisions and workloads.
The Energy-Aware Roofline Model connects computational kernel behavior to measured GPU energy. The Thermal-Aware Inter-Kernel Energy Model compares region duration and energy while retaining execution order and temperature, including regions without floating-point operations. The case of ArborX DBSCAN::clusters::query, large workload, illustrates why these quantities must remain distinct: substantially different energy costs accompany similar temperature readings. Its dominant share of measured region energy establishes an optimization priority independently of temperature.
Compared with ArborX, LOBPCG exhibits more consistent trends across workloads, with larger and more systematic differences between FP32 and FP64 in arithmetic intensity, performance throughput, and energy consumption. The dedicated LOBPCG benchmark characterizes repeated execution, while ArborX instrumentation retains application-region order. Both approaches sample GPU temperatures that can depend on execution history and instrumentation.
Future work will extend the application coverage and evaluate whether the identified regions offer useful control points for DVFS, power capping, or thermal scheduling. Such evaluation requires controlled thermal conditions and measurements of the intervention's effects on computational performance, GPU energy consumption, and temperature.
Acknowledgment
Research sponsored by the Laboratory Directed Research and Development Program of Oak Ridge National Laboratory, managed by UT-Battelle, LLC, for the U.S. Department of Energy. This research used resources of the Experimental Computing Laboratory (ExCL) and the Oak Ridge Leadership Computing Facility (OLCF) at the Oak Ridge National Laboratory, which is supported by the Advanced Scientific Computing Research programs in the Office of Science of the U.S. Department of Energy under Contract No. DE-AC05-00OR22725.
Use of AI tools: ChatGPT-5.5 assisted with editorial revisions to the manuscript and with prototyping measurement scripts. All experiments were conducted on a physical testbed, and the authors verified all scientific claims and experimental results.
References
[1] S. Williams, A. Waterman, and D. Patterson, "Roofline: an insightful visual performance model for multicore architectures," Commun. ACM, vol. 52, no. 4, p. 65–76, Apr. 2009. [Online]. Available: https://doi.org/10.1145/1498765.1498785
[2] A. Kashi, H. Lu, W. Brewer, D. Rogers, M. Matheson, M. Shankar, and F. Wang, “Mixed-precision numerics in scientific applications: survey and perspectives,” J Supercomput, vol. 82, no. 287, 2026.
[3] D. S. Levine, M. Shuaibi, E. W. C. Spotte-Smith, M. G. Taylor, M. R. Hasyim, K. Michel, I. Batatia, G. Csányi, M. Dzamba, P. Eastman, N. C. Frey, X. Fu, V. Gharakhanyan, A. S. Krishnapriyan, J. A. Rackers, S. Raja, A. Rizvi, A. S. Rosen, Z. Ulissi, S. Vargas, C. L. Zitnick, S. M. Blau, and B. M. Wood, “The Open Molecules 2025 (OMol25) dataset, evaluations, and models,” 2026. [Online]. Available: https://arxiv.org/abs/2505.08762
[4] G. Ofenbeck, R. Steinmann, V. Caparros, D. G. Spampinato, and M. Püschel, “Applying the roofline model,” in 2014 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), 2014, pp. 76–85.
[5] J. Pierce, M. D. Smith, and T. Mudge, “Instrumentation tools,” in Fast Simulation of Computer Architectures. Springer, 1995, pp. 47–86.
[6] H. Jagode, A. Danalis, G. Congiu, D. Barry, A. Castaldo, and J. Dongarra, “Advancements of PAPI for the exascale generation,” The International Journal of High Performance Computing Applications, vol. 39, no. 2, pp. 251–268, 2025.
[7] F. Winkler, “Redesigning PAPI’s high-level API,” University of Tennessee, Tech. Rep. ICL-UT-20, vol. 3, 2020.
[8] PAPI, “PAPI HL,” 2026, accessed: 2026-04-01. [Online]. Available: https://github.com/icl-utk-edu/papi/wiki/PAPI-HL
[9] NVIDIA Corporation, “NVML Reference Manual v595,” 2026, accessed: 2026-03-25. [Online]. Available: https://docs.nvidia.com/deploy/pdf/NVML_API_Reference_Guide.pdf
[10] C. R. Trott, D. Lebrun-Grandié, D. Arndt, J. Ciesko, V. Dang, N. Ellingwood, R. Gayatri, E. Harvey, D. S. Hollman, D. Ibanez, N. Liber, J. Madsen, J. Miles, D. Poliakoff, A. Powell, S. Rajamanickam, M. Simberg, D. Sunderland, B. Turcksin, and J. Wilke, “Kokkos 3: Programming model extensions for the exascale era,” IEEE Transactions on Parallel and Distributed Systems, vol. 33, no. 4, pp. 805–817, 2022.
[11] C. R. Trott, “The Kokkos ecosystem [brief],” Sandia National Laboratories (SNL-NM), Albuquerque, NM (United States), Tech. Rep., 08 2020. [Online]. Available: https://www.osti.gov/biblio/1656942
[12] Kokkos, “kokkos-tools/profiling/papi-connector,” https://github.com/kokkos/kokkos-tools/tree/develop/profiling/papi-connector, 2026, accessed: 2026-04-28.
[13] J. W. Choi, D. Bedard, R. Fowler, and R. Vuduc, "A roofline model of energy," in 2013 IEEE 27th International Symposium on Parallel and Distributed Processing, 2013, pp. 661–672.
[14] N. Ding and S. Williams, “An instruction roofline model for GPUs,” in 2019 IEEE/ACM Performance Modeling, Benchmarking and Simulation of High Performance Computer Systems (PMBS), 2019, pp. 7–18.
[15] H. Anzt, J. Dongarra, G. Flegar, N. J. Higham, and E. S. Quintana-Ortí, “Adaptive precision in block-Jacobi preconditioning for iterative sparse linear system solvers,” Concurrency and Computation: Practice and Experience, vol. 31, no. 6, p. e4460, 2019, e4460 cpe.4460. [Online]. Available: https://onlinelibrary.wiley.com/doi/abs/10.1002/cpe.4460
[16] M. Ghane, J. Larkin, L. Shi, S. Chandrasekaran, and M. S. Cheung, “Power and energy-efficiency roofline model for GPUs,” arXiv preprint arXiv:1809.09206, 2018.
[17] A. Ilic, F. Pratas, and L. Sousa, “Cache-aware roofline model: Upgrading the loft,” IEEE Computer Architecture Letters, vol. 13, no. 1, pp. 21–24, 2013.
[18] —, “Beyond the roofline: Cache-aware power and energy-efficiency modeling for multi-cores,” IEEE Transactions on Computers, vol. 66, no. 1, pp. 52–58, 2016.
[19] Z. Yang, K. Adamek, and W. Armour, “Accurate and convenient energy measurements for GPUs: A detailed study of NVIDIA GPU’s built-in power sensor,” in SC24: International Conference for High Performance Computing, Networking, Storage and Analysis, 2024, pp. 1–17.
[20] R. Dietrich, F. Winkler, R. Tschüter, and M. Weber, “Enabling performance analysis of Kokkos applications with Score-P,” in Tools for High Performance Computing 2018/2019: Proceedings of the 12th and of the 13th International Workshop on Parallel Tools for High Performance Computing, Stuttgart, Germany, September 2018, and Dresden, Germany, September 2019. Springer, 2021, pp. 169–182.
[21] R. Ge, X. Feng, S. Song, H.-C. Chang, D. Li, and K. W. Cameron, “PowerPack: Energy profiling and analysis of high-performance systems and applications,” IEEE Transactions on Parallel and Distributed Systems, vol. 21, no. 5, pp. 658–671, 2010.
[22] Y. Chen, P. d. O. Castro, P. Bientinesi, and R. Iakymchuk, “Enabling mixed-precision with the help of tools: A Nekbone case study,” in Parallel Processing and Applied Mathematics, R. Wyrzykowski, J. Dongarra, E. Deelman, and K. Karczewski, Eds. Cham: Springer Nature Switzerland, 2025, pp. 34–50.
[23] O. Sarood and L. V. Kalé, “Efficient “cool down” of parallel applications,” in 2012 41st International Conference on Parallel Processing Workshops, 2012, pp. 222–231.
[24] H. Menon, B. Acun, S. Garcia de Gonzalo, O. Sarood, and L. V. Kalé, “Thermal aware automated load balancing for HPC applications,” in 2013 IEEE International Conference on Cluster Computing, 2013, pp. 1–8.
[25] ML.ENERGY Initiative, “Thermally stable profiling for accurate GPU energy measurement,” https://ml.energy/blog/energy/measurement/thermally-stable-profiling-for-accurate-gpu-energy-measurement 2026, accessed: 2026-04-27.
[26] —, “Accurately Benchmarking Power & Energy,” https://ml.energy/tutorials/neurips25/resources/session-1.pdf, 2025, accessed: 2026-04-27.
[27] NVIDIA Corporation, “NVIDIA Open GPU Kernel Modules,” https://github.com/NVIDIA/open-gpu-kernel-modules/blob/main/src/nvidia/interface/nvrm_registry.h#L3028, 2026, accessed: 2026-04-27.
[28] A. V. Knyazev, “Toward the optimal preconditioned eigensolver: Locally Optimal Block Preconditioned Conjugate Gradient method,” SIAM Journal on Scientific Computing, vol. 23, no. 2, pp. 517–541, Jan. 2001.
[29] A. V. Knyazev, M. E. Argentati, I. Lashuk, and E. E. Ovtchinnikov, “Block Locally Optimal Preconditioned Eigenvalue Xolvers (BLOPEX) in Hypre and PETSc,” SIAM Journal on Scientific Computing, vol. 29, no. 5, pp. 2224–2239, Jan. 2007. [Online]. Available: https://epubs.siam.org/doi/abs/10.1137/060661624
[30] A. Prokopenko, D. Arndt, D. Lebrun-Grandié, and B. Turcksin, “The ArborX Library: Version 2.0,” ACM Trans. Math. Softw., vol. 51, no. 4, pp. 30:1–30:10, Dec. 2025. [Online]. Available: https://dl.acm.org/doi/10.1145/3772288
[31] M. Ester, H.-P. Kriegel, J. Sander, and X. Xu, “A density-based algorithm for discovering clusters in large spatial databases with noise,” in Proceedings of the Second International Conference on Knowledge Discovery and Data Mining, ser. KDD’96. Portland, Oregon: AAAI Press, Aug. 1996, pp. 226–231.
[32] A. Prokopenko, D. Lebrun-Grandie, and D. Arndt, "Fast tree-based algorithms for DBSCAN for low-dimensional data on GPUs," in Proceedings of the 52nd International Conference on Parallel Processing, ser. ICPP '23. New York, NY, USA: Association for Computing Machinery, Sep. 2023, pp. 503–512. [Online]. Available: https://dl.acm.org/doi/10.1145/3605573.3605594
[33] A. Prokopenko, D. Arndt, D. Lebrun-Grandié, B. Turcksin, N. Frontiere, J. D. Emberson, and M. Buehlmann, “Advances in ArborX to support exascale applications,” The International Journal of High Performance Computing Applications, vol. 39, no. 1, pp. 167–176, 2025. [Online]. Available: https://journals.sagepub.com/eprint/XIMFZH3FDWZUUNMMHIXE/full
[34] D. Kressner, Y. Ma, and M. Shao, “A mixed precision LOBPCG algorithm,” Numerical Algorithms, vol. 94, p. 1653–1671, 2023.
[35] M. Patrou and O. Hernandez, “PAPI PR 525: Support for NVML counters: GPU energy, instant GPU power, avg memory power,” https://github.com/icl-utk-edu/papi/pull/525, 2026, accessed: 2026-06-01.
[36] —, “PAPI PR 529: papi_hl region-based calculations,” https://github.com/icl-utk-edu/papi/pull/529, 2026, accessed: 2026-06-01.
[37] E. Cancès, A. Levitt, Y. Maday, and C. Yang, Numerical Methods for Kohn–Sham Models: Modeling, Mathematical Analysis, Computational Methods, and Applications, ser. Mathematics and Molecular Modeling. Springer Cham, 2023, pp. 333–398.
[38] I. Yamazaki, S. Tomov, and J. Dongarra, “Mixed-precision Cholesky QR factorization and its case studies on multicore CPU with multiple GPUs,” SIAM Journal on Scientific Computing, vol. 37, no. 3, pp. C307–C330, 2015. [Online]. Available: https://doi.org/10.1137/14M0973773