Manuscript Offprint
arXiv:2610.31630Ray-by-Ray: Fine-Grained Resource Management for GPU Ray Tracing Units
Junrui Pan
Purdue University
West Lafayette, IN, USA
Cesar Avalos Baddouh
Purdue University
West Lafayette, IN, USA
Kai Ze Ee
Purdue University
West Lafayette, IN, USA
Timothy G. Rogers
Purdue University
West Lafayette, IN, USA
Abstract—Ray tracing (RT) generates photorealistic images by simulating the physical behavior of light as it interacts with surfaces in a virtual scene. In film production and high-end rendering pipelines, this technique computes global illumination, reflections, refractions, and soft shadows by tracing millions of light rays per frame and accurately modeling their bounces and attenuation. Contemporary GPUs incorporate specialized ray tracing hardware to accelerate key operations in the traversal pipeline. By accelerating these stages in hardware, the unit enables real-time ray tracing for complex scenes that previously required offline computation. However, ray tracing introduces substantial control and data divergence. Each ray may traverse a different set of nodes in the acceleration structure, encounter distinct materials, or terminate at varying depths. This irregularity reduces thread coherence and exposes a fundamental disparity between the GPU SIMT and per-thread execution model of dedicated RT units, where each ray progresses independently.
In this work, we seek to validate assumptions made in open-source infrastructure and identify potential inefficiencies in resource management within the ray tracing pipeline. To address inefficiency caused by mismatches between SIMT and RT granularities, we propose Ray-by-Ray, which decomposes on-chip buffers into the granularity of individual rays and introduces lightweight management structures that enable more warps to run in parallel without increasing buffer capacity. This approach improves ray tracing unit utilization and increases memory-level parallelism. Experimental results show that Ray-by-Ray achieves an average performance improvement of 1.91x over the baseline, with an area overhead of 0.19%.
Index Terms—GPU, ray tracing, graphics rendering, SIMT efficiency
I. INTRODUCTION
Ray tracing (RT) is capable of rendering photorealistic images by physically simulating how light interacts with objects in a scene, producing accurate lighting effects such as reflections, refractions, soft shadows, and global illumination. Unlike rasterization, which approximates lighting using pre-computed or screen-space effects, ray tracing models the paths that light rays take as they travel, bounce, and scatter within a virtual environment. This physical accuracy has made ray tracing the foundation of production rendering pipelines [11], [13], [16], [20], where it is widely used to generate realistic imagery for visual effects and animation.
Recent advances in graphics processing unit (GPU) architecture have enabled real-time ray tracing by integrating dedicated hardware units that accelerate key operations in the traversal pipeline. By offloading these operations to specialized hardware, GPUs can now perform ray tracing in complex, dynamic scenes at interactive frame rates, tasks that previously required hours of offline computation. Even with hardware support for ray tracing operations, achieving real-time performance remains challenging. This is because ray tracing is highly divergent.

Fig. 1. Simulated RT occupancy and efficiency using Vulkan-Sim [35], [53]. Occupancy is the average ratio of warps resident in the RT unit to its maximum allowed warps; efficiency is the average ratio of threads active in the RT unit to its maximum thread capacity.
Contemporary GPUs [2], [6], [44] perform ray traversal by using a tree-like acceleration structure called a Bounding Volume Hierarchy (BVH). The BVH organizes scene geometry into a hierarchical tree, where each node represents a bounding volume that encloses its child nodes. If a ray misses a parent node, it misses all children, efficiently excluding large object groups from further intersection tests. To perform the traversal of these BVH trees in hardware, patents from NVIDIA [40] and state-of-the-art academic work [23], [53], [61] assume a single CISC instruction is issued from each warp to perform the traversal of all the 32 rays within the warp. GPUs follow a Single-Instruction, Multiple-Thread (SIMT) execution model, where a warp of 32 threads executes in lockstep. However, this model does not map well to BVH traversal [1], motivating the introduction of dedicated RT cores. All threads within a warp enter the RT core together, perform the traversal, and return as a group once the traversal has fully completed. Each ray traverses the scene independently and may intersect different objects. Some rays descend deeper into the BVH while others terminate early. This mismatch between warp-level management and thread-level behavior, where each ray progresses differently, creates control-flow divergence. As a result, rays that complete early are forced to wait for the longest-running rays within the same warp.
Fig. 1 shows that although overall RT unit occupancy is high, indicating that sufficient warps are available to keep the RT units busy, RT efficiency remains low. RT efficiency is defined as the fraction of threads actively performing traversal work. This low efficiency arises because rays follow different paths during traversal, and some terminate much earlier than others. The problem is particularly severe in path tracing workloads: when a ray hits an object, a new ray is launched from the hit point to simulate reflection. This process repeats until the ray terminates and invokes shading. The recursive nature of path tracing amplifies execution divergence and further degrades overall ray tracing efficiency.
To help reduce the effects of threads within a warp traversing different paths, NVIDIA introduced Shader Execution Reordering (SER) [46]. SER allows the GPU to dynamically regroup threads based on their execution state into new, coherent warps. However, this mechanism requires writing out the full execution context of each thread and later restoring it when the thread is reassigned to a different warp. This context save-and-restore operation introduces overhead, and the extra memory traffic and latency limit its effectiveness [45]–[47]. Because SER operates strictly as a post-traversal mechanism, it is incapable of resolving divergence during the active ray traversal phase.
While numerous academic works have analyzed and proposed improvements to dedicated ray tracing cores in state-of-the-art GPUs [9], [10], [24], [34], [61], none of these studies recognized the underlying inefficiency caused by warp-granular resource allocation. The assumption of all these prior works is that RT resources are allocated and deallocated at a warp granularity. To validate this assumption, we perform microbenchmarking on the RT core using the OptiX interface and a cycle-level analysis tool we developed. From this analysis, we observe that on-chip resources inside contemporary RT cores are allocated at warp granularity, causing substantial waste whenever lanes in a warp are inactive, which is a common scenario in ray tracing workloads. Unlike traditional SIMT code, ray traversal exhibits memory access patterns that gain little from coalescing; retaining warp-granular execution offers limited benefit. Moreover, our measurements show that the RT core operates as a relatively narrow pipeline, making it naturally amenable to sharing among threads from different warps rather than servicing an entire warp at once.
Building on the insights from our study, we propose decomposing each ray buffer group into finer-grained ray buffers paired with lightweight hardware for dynamic warp-to-thread mapping. Our guiding principle is to exploit divergence rather than eliminate it. To achieve this, we decouple software-visible SIMT divergence from hardware-level execution divergence. At the software level, we leave the standard control-flow divergence untouched: the programming model still sees the original active-lane mask carried by a warp, and a ray strictly returns to its original lane and warp once traversal completes. Instead, our design targets the internal hardware divergence that occurs inside the RT unit. This under-utilization arises because the unit traditionally manages buffers and traversal stacks at a warp granularity, even though ray traversal is inherently a thread-level operation. By dynamically reordering active rays onto available RT-unit resources, our hardware turns this internal divergence into reclaimable capacity rather than wasted occupancy. We can isolate this optimization because the entire traversal process is encapsulated within a single complex instruction, which bounds the divergence phase and creates a clean architectural boundary. Consequently, we can manage divergent execution entirely in hardware without the extensive overheads of general-purpose dynamic warp formation, which recomposes threads into entirely new warps [17], [18]. Ultimately, this allows more rays to traverse concurrently. Because ray traversal is heavily memory-latency bound, this increased memory-level parallelism successfully hides memory latency.
In summary, we make the following contributions:
-
We propose Ray-by-Ray, a lightweight, fine-grained per-ray resource management mechanism within the ray tracing unit to better utilize on-chip resources, enabling higher ray parallelism to hide memory latency. Across a wide range of workloads, this design achieves an average speedup of with an area overhead of 0.19%.
-
We observe that ray traversal exhibits irregular memory access patterns that cannot benefit from traditional GPU memory coalescing mechanisms. We exploit this insight by dynamically regrouping rays into new coherent groups during hardware traversal.
-
We present the first detailed microarchitectural characterization of NVIDIA RTX 5090 ray tracing cores, which suggests that RT core resources may be allocated at the warp granularity, shows that shared memory is highly active during traversal, and that the pipeline width inside the RT core is less wide than the SIMT pipeline. We leverage these insights to inform our design of Ray-by-Ray.
A common application of ray tracing is path tracing, which models the full global illumination of a scene. After a ray hits an object, it continues to bounce through the scene, simulating indirect lighting and diffuse inter-reflections. This process repeats until a termination condition is met, such as reaching a maximum bounce depth or exiting the scene. The accumulated color contributions from all bounces are combined to compute the final pixel shading. While path tracing delivers highly realistic results, it is extremely computationally intensive; each ray may traverse multiple bounces, and rays in the same frame often follow entirely different paths, causing divergence and making efficient parallel execution challenging.
Contemporary computer graphics represent objects using triangles as the basic primitives. To accelerate traversal, scenes are organized into a Bounding Volume Hierarchy (BVH), a tree structure that spatially partitions the scene. Each node in the BVH is an Axis-Aligned Bounding Box (AABB) that encloses a subset of the scene geometry. Internal nodes contain AABBs that bound their children, while leaf nodes contain references to the actual triangles. Because smaller AABBs are fully enclosed within larger ones, if a ray misses a parent AABB, all of its child AABBs can be skipped. This hierarchical organization enables efficient culling during traversal and reduces the number of intersection tests.
To traverse the BVH, the process starts from the root node. A ray, defined by its origin and direction, is represented as a line and is tested for intersection against the AABBs in the hierarchy. The ray-AABB intersection test checks whether the ray enters and exits the bounding box within valid parameter ranges along the ray direction. If the ray intersects a node's bounding box, traversal continues to its child nodes, which are pushed onto a traversal stack or queue for processing. This process repeats recursively or iteratively through the tree. When the ray reaches a leaf node, it is tested against the primitives contained within that leaf using ray-triangle intersection tests to determine whether a hit occurs. Each intersection computes the distance along the ray to the hit point, thereafter the closest intersected triangle within the valid ray parameter range is recorded as the final hit.
III. RAY TRACING ON GPUs
In this section, we develop a new profiling tool and use the NVIDIA OptiX ray tracing engine to investigate architectural details of how ray tracing is executed on NVIDIA GPUs. Contemporary GPUs include dedicated hardware units to enable real-time ray tracing. Low-level graphics APIs such as Vulkan and DirectX expose a Ray Tracing Pipeline that allows developers to implement ray tracing through programmable shader stages, including ray generation (raygen), closest-hit, any-hit, miss, and intersection shaders. Within the raygen shader, the traceRay() function initiates the ray generation and triggers BVH traversal. The other shaders are executed based on the traversal results. While the software-level pipeline is well defined, the underlying hardware implementation of RT cores remains proprietary and publicly undisclosed. Consequently, research simulators such as Vulkan-Sim [53] rely on simplifying assumptions about how traversal, buffering, and scheduling behave inside the RT core. These assumptions are necessary in the absence of public documentation, but may not reflect how real GPUs are actually implemented. This gap motivates our study: to characterize the behavior of contemporary NVIDIA RT cores and understand their true architectural design.
Our new profiling tool is based on the CUDA Profiling Tools Interface (CUPTI) [43] and GPUVision [48]. CUPTI is the low-level library used by NVIDIA Nsight tools to collect performance metrics and hardware events from GPUs. This interface allows us to sample performance counters at extremely fine granularity—on the order of tens of cycles. With this fine-grained information, we can observe how different hardware pipelines interact during execution, providing key insights into the design and behavior of the RT cores.
To conduct this study, we used the optixTriangle example from the NVIDIA OptiX SDK 9.0.0 and ran all experiments on an RTX 5090 GPU. To confirm that our observations are not specific to a single architecture, we reproduced the same experiments on an Ampere RTX 3070 and found that the conclusions hold across both generations. The results we report are drawn from the RTX 5090. The scene consists of a single triangle, chosen for its simplicity and predictable behavior. Within the OptiX raygen shader, the optixTrace() function is called to initiate the ray tracing pipeline. It generates the ray, performs BVH traversal, and invokes the programmable shaders as defined by the pipeline configuration. Once optixTrace() returns, the entire ray tracing process is complete.
OptiX also provides a variant, optixTraverse(), which performs only the traversal stage and then returns control to the raygen shader. The programmer can subsequently call optixInvoke() to execute the shading stages. We used this variant to isolate and measure the traversal stage without the effects of shading. We used inline PTX to sample the %clock special register and record start and end timestamps around this function; representing the lowest level of visibility exposed to OptiX programmers, thus allowing us to accurately capture the traversal latency.
A. On-Chip Buffer Management
During traversal, RT cores perform ray intersection tests using ray properties such as origin, direction, and . They also track per-thread status information, including whether a thread is active and its current closest hit [40], [53], [66]. Each ray operates independently, and its data or properties are not shared with other rays within the same warp. In principle, only the active threads in a warp should require buffer space to store this runtime information.
To empirically determine the allocation granularity of RT core resources (i.e., per-warp versus per-thread), we engineered a targeted microbenchmark based on the optixTriangle workload. We modified the kernel to selectively mask active threads within a warp and precisely measured the latency of the traversal subroutine. To isolate the RT core pipeline and eliminate execution noise from the broader memory hierarchy, we restricted the ray tracing workload to a single SM, intentionally exiting warps on all other SMs before they could invoke traversal.

Fig. 2. Measured warp traversal latency under single-lane and full-warp execution. The maximum concurrent occupancy remains constrained to 12 warps in both scenarios, demonstrating that inactive lanes statically reserve on-chip resources and cause severe under-utilization.
Fig. 2 illustrates the measured warp traversal latency. We leveraged SER-variant APIs to measure only the latency of the traversal stage. Our application configuration uses a block size of 128 threads with an SM occupancy of four blocks, yielding 16 active warps per wave of RT execution. We evaluate two distinct scenarios: a Full Warp case (all 32 threads active) and a Single Lane case (only 1 thread active per warp). By capturing timestamps immediately before and after the traversal instruction, we observe that all 16 warps issue the traversal operation simultaneously. However, the completion times exhibit a distinct bifurcation: 12 warps complete significantly earlier, while the remaining four experience elevated latency. This delayed execution indicates that the SM's warp scheduler stalls further instruction issue due to a structural hazard at the RT core, revealing a maximum concurrent RT occupancy of exactly 12 warps. Critically, this 12-warp capacity limit persists in both the Full Warp and Single Lane scenarios. If the RT core dynamically allocated resources strictly to active threads, the Single Lane case, requiring only a fraction of the execution state per warp, should comfortably allow all 16 warps to traverse concurrently. The fact that the bottleneck remains fixed at 12 warps demonstrates that the RT core allocates internal buffer resources at a rigid warp granularity. Consequently, inactive lanes within a divergent warp needlessly consume critical on-chip resources, exposing an inefficiency in contemporary RT core design that restricts overall concurrency.
Takeaway #1: RT core resources appear to be allocated on a per-warp basis. When a warp has only a few active threads, the remaining inactive lanes still occupy resources, leading to inefficiency during traversal.
B. Shared Memory Management
Shared memory is widely used in contemporary GPUs to support high-performance graphics and compute workloads. It provides fast, programmer-managed storage that enables efficient data reuse and coordination among threads. Understanding how on-chip memories are utilized in ray tracing workloads is therefore important for characterizing the behavior of RT hardware.
Modern ray tracing systems typically employ a short traversal stack to keep track of which BVH nodes should be visited next [2], [24], [31], [62], [65]. Each stack entry stores the memory address of a node. Traversal begins at the root node and proceeds as a depth-first search. When a ray intersects a node, one child node is visited immediately while the remaining child nodes are pushed onto the stack for later traversal. If a node is missed, traversal can skip its children entirely. When traversal reaches a leaf node or determines that no additional child nodes need to be visited, execution resumes by popping the next node from the stack. This process repeats until the stack becomes empty.

Fig. 3. Shared memory activity profiled alongside RT core ray-cast operations. The strong temporal correlation between these metrics indicates that the RT core utilizes shared memory to manage traversal state.
To better understand how NVIDIA’s dedicated RT cores manage traversal state, we profile the optixHair application using our CUPTI-based profiling tool. We select this workload because its complex geometry induces frequent BVH traversal and therefore sustained RT-core activity.
Fig. 3 shows two metrics sampled during execution: shared memory accesses and RT core ray-cast operations. The two signals exhibit a strong temporal correlation, indicating that traversal-related operations interact closely with shared memory resources. Further evidence from Nsight Compute's Launch Statistics on the RTX 5090 shows that each thread block allocates 8192 bytes of shared memory for 128 threads, corresponding to 64B per thread.
This allocation suggests that a nontrivial amount of on-chip storage is provisioned per ray during traversal. If interpreted in terms of a traversal stack, a 64B allocation could accommodate several stack entries when using 64-bit node addresses (8B per entry), consistent with the short traversal stacks commonly described in prior ray tracing systems [53], [62]. While shared memory may support multiple purposes in the traversal pipeline, these observations indicate that traversal-related state can consume a meaningful fraction of available on-chip storage.
From an architectural perspective, this highlights the importance of carefully managing shared memory resources in ray tracing pipelines. Shared memory is heavily utilized across both graphics and compute workloads, and allocating portions of it for traversal state introduces trade-offs with other uses. Designers of future RT hardware must, therefore, consider how traversal data structures interact with shared memory capacity, access frequency, allocation granularity, and bank conflicts when optimizing for both performance and area efficiency.
Takeaway #2: Traversal BVH activity strongly correlates with shared memory traffic, suggesting that traversal state is managed through a combination of RT core resources and shared memory.
C. RT Cores Width
GPUs follow a SIMT execution model, where 32 threads are grouped into a warp and execute the same instruction in lockstep. AMD's patent [54] and several prior studies [7], [21], [30], [31], [55]–[57] suggest that the RT core may be implemented as a scalar pipeline, where threads within a warp are serialized to perform intersection tests. Other works [8], [9], [23], [24], [51], [53], [61], [64] have instead assumed that the RT core operates as a SIMD pipeline, similar to conventional GPU compute pipelines. To verify these assumptions, we constructed an experiment using the optixTriangle application by launching a single warp and controlling how many threads within the warp invoke traceRay(). All rays were configured to be identical, ensuring that memory accesses are perfectly coalesced and the BVH traversal paths are identical, thereby eliminating any divergence. The traceRay() call is an API function that triggers a sequence of operations: first, a subroutine sets up the ray data and prepares the RT core, then an RT core instruction is issued to initiate traversal in hardware. Fig. 4 shows the results, where the y-axis represents latency in cycles and the x-axis represents the number of active threads per warp. The measured latency includes the overhead of the entire traceRay() API function, the subroutine setup, and the RT core instruction execution. Since all rays are identical, each thread should experience the same execution path through the subroutine and RT core instruction. However, we observe that latency continues to increase as more threads become active. The rest of the GPU utilizes conventional SIMT pipelines, where all threads execute the same operations simultaneously. Since we deliberately removed memory divergence in our application, the extra latency comes directly from the RT core. This behavior suggests that NVIDIA's RT core employs a temporal SIMT style pipeline [25], where the warp's threads are serialized onto a narrower execution datapath and executed over multiple cycles.
From a modeling perspective, treating RT cores as SIMD pipelines remains valid. Although latency increases as more lanes invoke traceRay(), BVH traversal is highly memory-intensive, and its latency is largely dominated by memory

Fig. 4. Measured warp latency as a function of active thread count. The proportional increase in latency for identical, non-divergent rays demonstrates that the RT core employs a serialized, temporal SIMT pipeline.
operations. Consequently, the additional delay from serializing threads within a warp is often hidden by memory latency. The behavior can still be represented as a single SIMD operation with higher latency.
Takeaway #3: The RT core is designed as a temporal SIMT pipeline, where threads within a warp are serialized for processing.
IV. RAY-BY-RAY
In this section, we begin by introducing the baseline RT unit model used in our study, which reflects the typical design principles of contemporary GPU ray tracing hardware. Building on the characterization results discussed in Section III, we analyze the key inefficiencies observed in the baseline design, focusing on how resource allocation and warp-level management impact overall traversal efficiency. These insights motivate the need for a more flexible and fine-grained approach to managing hardware resources during ray traversal. Finally, we present our proposed design Ray-by-Ray, which introduces thread-level resource allocation mechanisms to improve utilization and enhance overall ray tracing performance.
A. Baseline RT Unit
A warp begins traversal by invoking the trace_ray() instruction, where each thread in the warp corresponds to one ray. Similar to traditional SIMD pipelines, the SM warp scheduler inside each sub-core checks the scoreboard for dependencies. The sub-core warp scheduler arbitrates among all warps within the sub-core to determine if the warp can be issued. Once all dependencies are resolved and the warp becomes eligible for execution, it is issued if there are available warp table slots within the RT unit.
As shown in Fig. 5, each cycle, the RT unit scheduler selects a warp and schedules memory requests from its active threads. The Response FIFO is also checked each cycle for completed loads. When data returns, it is forwarded to the ray test units, which perform ray-box tests for internal nodes, ray-triangle tests for leaf nodes, and transformations for transformation nodes. The unit tracks the number of active threads per warp in the warp table and manages the short stack to record which nodes still need testing. When the stack

Fig. 5. Comparison of the baseline RT unit design and Ray-by-Ray with ray-granularity resource management.

Fig. 6. Illustration of two warp-granularity resource management inefficiencies. Warp 0: reduced parallelism when only a subset of threads remain active. Warp 1: tail effect where completed threads hold resources while waiting for the slowest thread in the warp to finish traversal.
becomes empty, traversal completes and the thread is marked as done. The thread writes its traversal result to memory for later use by programmable shaders during shading. Once all threads in a warp finish, the warp commits and returns, allowing dependent instructions to proceed.
We identify two major sources of efficiency loss in the baseline RT core traversal. The first source arises when warps are not fully occupied during ray construction. For example, in path tracing workloads, after a ray completes one traversal, a new ray is generated at the intersection point to simulate the physical reflection or scattering of light within the scene. This process repeats until a predefined bounce limit is reached or the ray exits the scene. As a result, even if a warp begins fully populated, rays terminate at different bounce counts, leaving inactive threads occupying resources in subsequent traversals, thus reducing overall RT efficiency. In the worst case, only a single thread in the warp remains active and may continue bouncing several times before termination. As illustrated by warp 0 in Fig. 6, this lowers traversal efficiency, as only a small number of threads are processed in parallel. Although Section III-C shows that the RT core is temporal SIMT, and running fewer active threads should theoretically be faster than running a full warp, traversal remains highly memory latency bound and requires a sufficient number of active rays to exploit memory-level parallelism and hide latency.
The second source of inefficiency occurs when some threads within a warp complete traversal earlier than others, but must wait for the longest-running thread to finish before the warp can commit. In ray tracing, each ray is independent and may traverse completely different paths. Although the instruction execution follows the SIMT model, the work performed by threads within a warp is highly non-uniform, unlike traditional SIMT instructions, where all threads perform one operation simultaneously. This leads to a pronounced tail effect, where a few rays continue running long after others have completed. As illustrated by warp 1 in Fig. 6, even if a warp enters the RT core with all lanes active, it is common for only a small number of threads to remain active during later stages of traversal, reducing RT efficiency. While the warp must commit traversal collectively to maintain the SIMT programming model, per-thread resources used during traversal could, in principle, be freed as soon as their corresponding threads have completed. However, as shown in Section III-A, the RT core buffers and traversal stacks 1 are managed at the warp level, meaning that resources cannot be released until all threads in the warp have finished, leading to inefficient resource utilization.
B. Fine-Grained Ray-based Allocation
Given these observations, we propose a fine-grained resource management mechanism that allocates and releases RT unit resources at the thread level rather than at the warp level. This design addresses both major sources of inefficiency observed in RT traversal. When a warp issues an RT instruction to initiate traversal, only the active threads are allocated the necessary resources, whereas inactive threads consume no additional storage. As each thread completes traversal, its allocated resources are immediately released, allowing new threads or warps to utilize them. Once sufficient resources become available, a pending warp can be issued to the RT unit to begin traversal. By dynamically allocating resources at per-thread granularity, the design improves RT unit utilization under divergent workloads and increases the effective number of rays in flight, leading to higher overall throughput.
This design is possible because, as shown in Section III-C, the RT unit does not execute 32 lanes in parallel. Consequently, rays do not need to originate from the same warp. In a traditional SIMD pipeline, repacking lanes requires lane migration, which incurs significant overhead. This is not an issue for the RT unit: ray state is stored in dedicated RT-unit structures rather than in the vector register file, and traversal is already

Fig. 7. Comparison between baseline and proposed buffer management. The top is the baseline, where buffer groups are managed at the warp level. Bottom is Ray-by-Ray, allowing fine-grained per-ray buffer management.
serialized. Fig. 7 illustrates a timeline comparison demonstrating how our proposed fine-grained resource management addresses the inefficiencies of the baseline. Both configurations provide on-chip buffering for 128 rays. However, the baseline manages these resources in four discrete warp-level groups , whereas our design utilizes a flattened 128-entry pool . Under the baseline, warp-granular allocation causes internal fragmentation when warps are partially occupied . Subsequent workloads such as warp 4 are blocked from entering the RT unit despite the presence of sufficient free buffer entries. These entries are only released once the entire warp commits collectively , at which point, warp 4 is finally accepted . In contrast, the proposed design allocates and manages ray buffers individually. When warps 0 to 3 are dispatched, only active threads consume buffer slots , which prevents fragmentation and allows warp 4 to be accepted immediately . Furthermore, our mechanism reclaims resources at ray granularity as soon as a ray completes its traversal , removing the constraint for threads to wait for the longest-running ray in a warp to finish before releasing on-chip state. Once sufficient buffers become available, warp 5 is accepted , and its threads are scattered within the flattened 128-entry pool to maximize RT unit utilization and hide memory latency.
- Buffer Management: As detailed in Section III-A, contemporary RT units manage on-chip buffers at warp granularity. This allocation is inefficient because inactive lanes continue to occupy buffer entries without performing work. To address this, we reorganize the resource allocation as shown in Fig. 5. Instead of maintaining separate ray buffer groups, we implement a unified ray buffer ② with the same total capacity. When a warp is dispatched, each active thread is assigned to an individual ray buffer entry instead of binding the entire warp. In the baseline architecture, a direct mapping between warps and buffer groups ensures that a free warp table entry guarantees a free resource group. Our design decouples this relationship, requiring the issue logic to verify both warp table and ray buffer availability. This check is performed by evaluating the warp predication mask against a new Ray Buffer Mask ③, which uses one bit per ray buffer entry. A warp is only accepted from the issue pipeline register if a warp table entry is available and the unified pool contains sufficient ray buffers for all active threads. Once a warp is admitted to the RT unit, the hardware assigns each active thread to an available ray buffer entry. Although parallel allocation logic could enable single-cycle initiation, the implementation would require substantial hardware overhead. We therefore utilize a serialized allocation mechanism that processes one thread per cycle. This approach introduces an initiation interval of one cycle per active lane, amounting to 32 cycles for a fully active warp. This latency is negligible relative to ray traversal, which typically spans thousands to tens of thousands of cycles.
In the baseline architecture, the RT unit scheduler selects one warp per cycle to issue memory requests for BVH traversal. Our fine-grained ray buffer organization replaces explicit warp tracking with a unified resource pool. The scheduler instead issues groups of 32 rays from contiguous buffer entries, which preserves the baseline coalescing width and memory throughput without increasing area overhead. This mechanism decouples ray execution from the original warp assignment by dynamically forming ray groups based on buffer occupancy. Although rays from the same warp may scatter across non-contiguous entries, the RT unit maintains peak utilization without fragmentation by processing rays in buffer order. This approach allows the unit to better hide memory latency through increased parallelism under significant execution divergence.
As described in Section III-B, the traversal stack resides in shared memory. In the baseline, each thread owns a chunk of shared memory for its stack, and reordering threads produces dynamic, unstructured bank-access patterns that can lead to bank conflicts. To avoid this, we decouple the stack from the thread and instead attach it to each ray-buffer entry. Our key observation is that the stack is only needed during traversal, meaning it is required only for the duration of the ray's lifespan inside the RT unit. Because our design does not preserve the original warp order and traverses rays based on buffer-entry order, shared-memory accesses follow a fixed and structured pattern, eliminating potential bank conflicts. Using fixed shared-memory allocations for fixed-function pipelines is not new in graphics. For example, shared memory is commonly used to store vertex attributes during geometry processing [26], [49], [60].
The RT unit tracks resource occupancy through a single-bit Ray Buffer Mask , which is scanned during dispatch to assign active threads to available slots. While deallocation is fine-grained, allocation maintains warp atomicity to simplify scheduling and tracking logic: a warp is admitted only if the unified pool contains sufficient free entries for all active threads. This constraint prevents partial warp issuance and ensures consistent state management at the scheduling boundary.
To manage warp retirement without a fixed buffer structure, we implement a per-warp completion counter initialized to the active thread count at dispatch. As the math pipeline completes ray tests, the RT warp scheduler checks the traversal stack 1 to determine ray termination. Upon termination, the unit immediately reclaims the resource by clearing the corresponding bit in the Ray Buffer Mask 3 and decrementing the per-warp counter 4. Because rays are scattered across the unified pool, each buffer entry includes a Warp ID field 6 to identify the originating warp. Once the remaining counter reaches zero, the warp commits the trace_ray() instruction and the warp table entry is cleared. This decoupled management enables the hardware to track a larger pool of concurrent warps, increasing memory-level parallelism and effectively hiding traversal latency through improved resource utilization.
- Memory Coalescing: In GPGPU kernels, warp reordering often disrupts established memory access patterns. While reordering improves SIMT efficiency, the dynamic reassignment of threads across warps compromises the coalescing optimizations typical in programmer-written kernels. This tradeoff is not a concern for RT units. Our key observation is that although rays exhibit spatial locality from screen-space tiling, ray tracing memory access patterns offer negligible opportunities for coalescing. Contemporary GPU architectures employ wide Bounding Volume Hierarchy (BVH) structures such as BVH4 and BVH8, where a BVH8 node typically occupies 128 bytes [15], [22], [33], [38], [63]. At this granularity, a single BVH node fetch initiates a 128 B load, fully utilizing an L1 cache line and inherently avoiding memory divergence.
In our proposed architecture, rays map to arbitrary buffer entries rather than maintaining strict warp order. Although such reordering would typically increase memory divergence in traditional SIMT execution [18], ray traversal is inherently divergent. While rays may exhibit perfect coalescing at the BVH root, they rapidly diverge after only a few intersection tests, diminishing the sustained benefit of traditional coalescing.
Coalescing still occurs when adjacent rays access data within the same cache line, but grouping is no longer constrained by the original warp assignment. This reordering may result in a marginal increase in the number of issued load instructions, as previously coalesced rays may be distributed across different scheduler groups. Crucially, this increase in load requests does not translate to higher L2 memory traffic. Contemporary GPUs utilize Miss Status Holding Registers (MSHRs) to track outstanding misses and merge concurrent requests targeting the same cache line [14]. When multiple rays request a pending address, the MSHR merges these requests into a single entry, preventing redundant memory transactions.
The volume of concurrent memory requests is strictly constrained by the pointer-chasing nature of BVH traversal. Because the address of a subsequent child node is only resolved after the current node is fetched and the intersection test is completed, each ray follows a serial dependency chain that permits only one outstanding memory miss at a time. This traversal dependency prevents the accumulation of excessive in-flight requests. Modern GPU architectures provide sufficient MSHR capacity [27], [28] to accommodate the additional requests generated by our design without reaching structural limits or degrading throughput.
V. METHODOLOGY
We implement our proposed design in Vulkan-Sim v2.0 [3], [5], [53], a cycle-level GPGPU simulator that integrates Vulkan with Mesa's frontend. Vulkan-Sim models the complete GPU pipeline, including shader cores, memory hierarchy, and ray tracing units, allowing us to evaluate microarchitectural modifications with cycle-level timing. We extend the simulator's RT unit model to support our ray buffer-based resource management mechanism.
TABLE I LUMIBENCH BENCHMARK SCENES
| Scene | BVH Depth | BVH Size (MB) | Scene | BVH Depth | BVH Size (MB) |
|---|---|---|---|---|---|
| WKND | 7 | 0.2 | PARTY | 14 | 143.8 |
| SHIP | 12 | 0.5 | SPRNG | 14 | 164.3 |
| BUNNY | 11 | 12.2 | LANDS | 12 | 279.2 |
| SPNZA | 16 | 22 | FRST | 14 | 348.6 |
| CHSNT | 12 | 25.5 | FOX | 15 | 597.8 |
| REF | 13 | 37.1 | PARK | 14 | 501.9 |
| CRNVL | 16 | 37.3 | CAR | 16 | 1233.6 |
| BATH | 16 | 104.2 | ROBOT | 18 | 1721.3 |
Our evaluation utilizes benchmarks from LumiBench [35], which provides 16 scenes (Table I) spanning path tracing, ambient occlusion, and shadow ray techniques. Because Ray-by-Ray improves performance by enabling more warps to traverse in parallel rather than by accelerating any individual warp, its effectiveness is governed by the warp pressure presented to a single SM, i.e., the number of warps per SM available to refill the RT unit. This quantity is an SM-local property. Within a GPU generation, the SM microarchitecture is fixed; larger GPUs replicate more SMs and scale L2 capacity and memory bandwidth in proportion to SM count. Consequently, reproducing the correct warps-per-SM density on a small configuration faithfully reproduces the per-SM behavior of a much larger GPU [52], and the relevant pairing to match is the GPU configuration and the rendering resolution rather than the absolute SM count.
The challenge is that the default operating point is far from representative. At LumiBench's default resolution, the 30-SM RTX 2060 configuration shipped with Vulkan-Sim yields only 17 warps per SM, well below the peak hardware occupancy of 32 warps per SM. The GPU is underutilized and never exercises the RT unit under realistic pressure. For reference, an RTX 5090 rendering a 4K scene operates at roughly 1.5k warps per SM. Naively raising the resolution is not viable: even after software-only optimizations that improved simulation speed by , higher resolutions lead to impractical simulation times [4], [35]. To approximate realistic per-SM density within these limits, we instead pair a validated configuration based on the NVIDIA Ampere Jetson Orin [49] with an increased resolution, giving a GPU-resolution pairing whose warps-per-SM density is representative of a typical desktop workload while remaining tractable

Fig. 8. Normalized speedup of Ray-by-Ray. Blue bars represent Shadow Rays (SH), red bars represent Ambient Occlusion (AO), and green bars represent Path Tracing (PT). The geometric mean speedup across all workloads is .
to simulate. Even with this targeted configuration, a complete data-collection cycle requires one week of cluster execution time, which prevents any further increase in workload scale.
TABLE II SIMULATION CONFIGURATION
| Baseline | Ray-by-Ray | |
|---|---|---|
| # SMs | 16 | |
| # Registers / SM | 65536 | |
| L1 Data Cache + Shared Memory | 192 KB, 256 MSHR Entries | |
| # Warps / Sub-Core | 16 | |
| # Sub-Core / SM | 4 | |
| # Exec Units | 4 FPs, 4 SFUs, 4 INTs, 1 RT Unit | |
| RT Throughput | 4 Warps | 128 Rays |
| L2 Cache | 4 MB, 32 Banks | |
| Memory | LPDDR5, 200 GB/s | |

Fig. 9. Average active rays per SM for the ROBOT scene during path tracing. Fine-grained resource management enables more rays to traverse in parallel.
Table II shows the configuration. In the baseline design, the RT unit traverses 4 warps (32 threads per warp, 1 ray per thread) concurrently. To maintain equivalent throughput, we evaluate the design with 128 ray buffer entries.
A. Performance
Fig. 8 shows the normalized speedup of the proposed design. We evaluate each scene with three ray tracing techniques: Shadow Rays (SH), Ambient Occlusion (AO), and Path Tracing (PT). In the default LumiBench suite, CHSNT appears only in the PT category. These techniques achieve speedups of , , and over the baseline, respectively. PT achieves the highest speedup because rays do not terminate immediately after hitting an object. Instead, each ray spawns another ray from the hit point to simulate light transport through the scene. As rays bounce through different paths, the number of active rays within each warp decreases over time, reducing traversal efficiency.
To quantify this effect, we sample counters during simulation to measure active rays within the RT core. Fig. 9 shows the average active rays for the ROBOT scene with path tracing. In the baseline, only a few rays remain active despite all warp slots being occupied. This demonstrates that rays terminating at different times cause severe divergence, leaving few threads active per warp and reducing RT core utilization. The proposed design addresses this by allocating on-chip RT resources at ray granularity rather than warp granularity. Inactive lanes no longer consume resources, enabling more warps to traverse in parallel. This optimization increases active ray count to nearly the theoretical maximum of 128 rays.
SH and AO exhibit higher ray coherence than PT, yet still show significant speedup. As described in Section IV, even when a warp begins traversal with all lanes active, rays traverse different paths through the scene geometry. This creates large variations in completion time, producing a tail effect where only a few rays remain active after several BVH node tests. In the baseline design, on-chip buffers are allocated at warp granularity. Therefore, rays that finish early cannot release their resources until the last thread in the warp completes, reducing RT core efficiency. The proposed design manages resources at ray granularity. Each ray releases its resources immediately upon completion, making them available for new rays and improving overall throughput.
Among all scenes, WKND and SHIP show the least speedup. Table I presents the BVH tree depth and size for each scene. These two are the smallest scenes in the LumiBench suite. For WKND, the BVH tree size is only 0.2 MB, small enough to fit almost entirely in the L1 cache. The RT unit L1 miss rate confirms this: WKND SH achieves a miss rate of only , and SHIP AO achieves . With L1 cache latency of only tens of cycles, these workloads become compute-bound rather than memory-bound.
B. Memory
During traversal, rays are grouped according to their placement in the ray buffer. By implicitly reordering rays within the RT unit, our design bundles rays from different warps to traverse concurrently. In the baseline architecture, execution divergence strictly limits the number of active rays, which reduces memory-level parallelism (MLP) and leaves performance strongly latency-bound. By sustaining more rays in flight, our design increases MLP and allows the GPU to hide memory latency more effectively, at the cost of added pressure on the memory subsystem. This pressure arises because implicit reordering can turn originally coalesceable warps more divergent, which generates redundant memory requests. To quantify this effect, we analyze L1 and L2 sector load requests. Fig. 10 reports L1 and L2 sector accesses normalized to the baseline, including only workloads with >10% L1 variance. Across all workloads, we observe 14% more L1 accesses on average. Because the proposed mechanism is constrained to the hardware traversal stage, this increase is the direct overhead of the implicit reordering introduced by decomposing the warp-granular buffers. Although the reordering raises L1 traffic, L2 traffic stays nearly flat because the MSHRs absorb the redundant requests before they reach the L2. Two factors explain this. First, BVH node sizes exceed a single sector (Section IV-B2), leaving no sub-sector coalescing for the reordering to disrupt, in contrast to the coalescing loss observed in general-purpose kernels [18]. Second, the redundant requests introduced by reordering target the same sectors, and the MSHRs coalesce these in-flight duplicates, leaving only one request per sector to propagate to the L2. As shown at the bottom of the figure, L2 sector accesses increase by only 1.6% on average.

Fig. 10. L1 and L2 sector loads normalized to baseline. Only workloads with changes exceeding 10% L1 accesses are shown. Geomean is across all workloads.
While we rely on the MSHR merging capacity to absorb the extra L1 sector loads, we must confirm how the MSHR behaves and verify that we do not exhaust its capacity. The L1 data cache may stall for one of two reasons: no free MSHR entry is available, or an allocated entry cannot merge an additional request. Because the pointer-chasing nature of traversal bounds the total number of in-flight requests, we observe no MSHR allocation failure across any workload, in both the baseline and the proposed design. Fig. 11 plots MSHR merge fails per kilo warp instructions. For space, we plot only applications whose merge fails change by more than 2% relative to the baseline, while the geomean is computed across all workloads. At an average of only 0.09 fails per kilo warp instruction, the baseline L1 cache rarely stalls on the MSHR to begin with. Under the proposed design, the average stays at a negligible 0.10 fails per kilo warp instruction.

Fig. 11. L1 MSHR merge fails per kilo instructions. Only workloads with changes exceeding 2% are shown. Geomean is across all workloads.
These results confirm the picture from Section IV-B2: the reordering raises L1 sector accesses, the MSHRs absorb the redundant inter-sector requests without exhausting capacity, and L2 traffic remains nearly unchanged.

Fig. 12. L2 bandwidth consumption. Ray-by-Ray consumes more L2 bandwidth than the baseline, reflecting the higher MLP from keeping more rays in flight.
Achieved memory bandwidth is a useful proxy for overall throughput on a latency-hiding GPU. Fig. 12 reports the L2 bandwidth of each design. Ray-by-Ray sustains the baseline L2 bandwidth, reflecting the additional rays it keeps traversing in parallel. This bandwidth comes from useful work: Ray-by-Ray never spills to global memory and barely increases L1 misses. Where L2 bandwidth is the binding constraint, this added demand can cap the achievable speedup. This is not a failure of the mechanism but a sign that the bottleneck has shifted to the L2. Reducing L2 traffic or expanding L2 bandwidth is orthogonal and complementary to our design.
C. Energy
We evaluated GPU energy consumption of the design with GPUWattch [32]. Fig. 13 shows our design achieves an average energy consumption of relative to the baseline.
Because the design does not reduce the amount of work performed or the number of memory loads issued, large energy savings are not expected. However, the design completes traversal substantially faster, and the reduction in execution time naturally reduces energy consumption.

Fig. 13. Normalized energy consumption. Only workloads with changes exceeding 3% are shown. The geometric mean includes all workloads.
The largest reductions occur in PT workloads, which exhibit the highest levels of divergence and therefore benefit most from improved RT unit utilization. A few shadow workloads show increased energy consumption. As shown in Fig. 10, PARK SH experiences the largest increase in off-chip accesses relative to the baseline, which is the primary cause of its higher energy usage. Even so, PARK SH still achieves a speedup, demonstrating that the additional energy cost is outweighed by the performance gain.
D. Area Overhead
As detailed in Section IV, we decompose the monolithic warp-level buffers into individual ray buffer entries to enable fine-grained resource allocation. We evaluate hardware area overhead by synthesizing the RTL implementation using the Cadence Genus Synthesis tool (ver. 21.11) with a 15nm process design kit [36] at a 1GHz target clock frequency. The functional correctness of the design was verified through RTL-level simulations to ensure parity with our architectural model. To ensure a fair area comparison, we configured the baseline RTL to allocate one thread per cycle, matching the serialized allocation logic of our proposed design. Importantly, this serialization is applied only for area synthesis; the baseline retains its original multi-lane allocation width in our performance evaluation. Consistent with the baseline design [10], [53], [61], we allocate 290 bits of metadata per ray entry. Based on our characterization in Section III-B, we assume the traversal stack is stored in shared memory. This differs from prior works [10], [34], [53] that assume large on-chip stack storage, which can account for approximately 70% of the total bytes stored within the unit; under such a baseline, the relative overhead of our design would be further reduced.
To optimize storage, we limit the warp table to 32 entries. Our analysis in Fig. 15 demonstrates that increasing warp capacity from 32 to 64 yields negligible speedup, as the

Fig. 14. Comparing proposed design with CoopRT for PT workloads.
pipelined nature of traversal prevents all warps from performing active traversal simultaneously. This configuration requires 32 completion counters (5 bits each) and a 5-bit Warp ID field for each of the 128 ray buffer entries. Including a 128-bit occupancy mask, the total additional bookkeeping state is 928 bits ( ). Our RT core model incorporates eight traversal math pipelines, following the throughput analysis and design specifications established in RayFlex [56]. Synthesis results show the baseline RT core occupies 677,066.8 , while our improved RT core occupies 678,368.4 . Thus, the proposed fine-grained management introduces a minimal 0.19% total area overhead. GPUWattch (Section V-C) models system-level GPU power but does not instrument the internal logic of the RT unit. The normalized energy in Fig. 13, therefore, reflects changes in overall GPU system-wise activity, but it does not capture the incremental power of the added control structures that Ray-by-Ray places inside the RT unit. Because the RTL synthesis above already produces a gate-level netlist, we reuse that artifact to measure RT-unit power directly, a quantity GPUWattch does not capture. We sweep a range of operating points drawn from LumiBench statistics to span realistic conditions, varying RT efficiency, traversal node count, and node load latency, and perform SAIF-annotated dynamic power analysis at each. Across all tested points, the baseline and Ray-by-Ray designs consume 9.17 mW and 9.23 mW on average, respectively, a negligible 0.7% overhead.
E. Comparison To Related Work
CoopRT [61] improves traversal efficiency by using inactive threads as helpers to parallelize BVH traversal for the active ray. The technique is evaluated on PT workloads. Its approach focuses on intra-warp optimization: it splits traversal work within a warp so that helper lanes can explore different parts of the tree in parallel, accelerating a single ray's progress. In contrast, our work targets inter-warp parallelism by managing RT-core resources more efficiently, allowing more warps to traverse concurrently and improving overall throughput.
Fig. 14 compares our proposed design with CoopRT. The CoopRT results are taken directly from the authors' artifact evaluation and therefore reflect a different experimental configuration (RTX 2060). Ray-by-Ray outperforms CoopRT on most workloads. In a standard BVH traversal, many branches are pruned early when their intersection distance exceeds the ray's current . Since CoopRT explores multiple branches in parallel before is updated, some lanes may traverse subtrees that would have been pruned in a sequential traversal.

Application
Fig. 15. Normalized speedup when limiting the number of warps in RT unit.
In the few cases where CoopRT outperforms our design, the workloads exhibit extreme divergence with very few active threads. Although our mechanism enables all pending warps to perform traversal, the available ray concurrency remains insufficient to fully saturate the RT unit. CoopRT leverages intra-warp parallelism and is therefore more effective in these cases. Nevertheless, our design achieves a higher geometric mean speedup across all workloads.
VI. RELATED WORK
Ray Reordering: A natural way to mitigate the observed low RT efficiency is to reorder rays into more coherent groups. This can be done through software ray sorting [12], [37], [39], [58], [59], or, most prominently, through NVIDIA's Shader Execution Reorder (SER) [46], which allows developers to define explicit reordering points within a shader to regroup threads into more coherent warps using hints such as hit material or ray activity. While SER is most often associated with material-shading coherence, it is not limited to it: in path tracing workloads, developers can use the ray active flag as the sorting key to regroup surviving rays between bounces [47].
However, these approaches do not resolve the fundamental hardware inefficiencies described in this work, for two primary reasons. First, reordering incurs significant performance overhead due to the state that must be spilled between stages. As demonstrated in the path tracing optimizations for Indiana Jones and the Great Circle, the effectiveness of SER is heavily constrained by the volume of live-state bytes that must be spilled to memory [47]. Regrouping rays requires this live state to be written out and reloaded after reordering, which increases L2 cache traffic and introduces additional memory latency [45]. On contemporary GPUs with hardware-accelerated traversal, this overhead is large enough that reordering often fails to pay off [29], [37]. Second, even where reordering reduces inter-path divergence, because it is a software-driven mechanism that operates at the shader level, it cannot address the “long-tail” effect occurring within the monolithic traversal instruction [40]. Since the RT core manages buffers and traversal stacks at warp granularity, these on-chip resources remain occupied until the entire warp commits traversal, even if only a single thread remains active. Furthermore, as a strictly post-traversal mechanism, reordering such as SER cannot mitigate the inter-ray (intra-warp) divergence that arises while rays are actively traversing the scene. Consequently, these techniques cannot provide the fine-grained, intra-instruction resource reclamation necessary to overcome the underlying warp-level resource under-utilization.
SIMT Efficiency: A large body of prior work investigates execution divergence and techniques to improve SIMT efficiency on GPUs. Dynamic Warp Formation [18] and Thread Block Compaction [17] regroup threads at divergent branch points to increase warp coherence. These approaches require explicit tracking of divergence and convergence points, complicating hardware design. In contrast, ray traversal naturally provides well-defined divergence boundaries: threads enter the monolithic traversal instruction together and reconverge only when it completes. Traditional vector-SIMD pipelines also require lane data to remain ordered, making lane migration expensive. This constraint does not apply to RT traversal. Ray state is stored within dedicated RT-unit structures rather than the vector register file, and the datapath is much narrower, allowing threads from different warps to be packed more efficiently. Prior techniques may also introduce additional memory-system overheads, as reorganizing threads can produce more divergent accesses and reduce coalescing efficiency. As shown in our analysis, coalescing offers little benefit during BVH traversal, and our design builds on this insight. Aila et al. [1] implemented a GPU ray tracer using persistent threads, where terminated rays are periodically replaced with new ones to mitigate SIMT underutilization. However, this approach is not applicable to a dedicated RT unit, as traversal executes as a single monolithic instruction and thread contexts cannot be modified until the instruction completes.
GPU Ray Tracing: Recent works [30], [57] propose MIMD-threaded processors for performing traversal. Other architectures, such as SGRT [31] and RayCore [41], target ray tracing on mobile devices. These works focus on the traversal mechanism itself rather than the higher-level inefficiencies addressed in this paper. CoopRT [61] attempts to improve traversal efficiency by using inactive lanes to assist with BVH traversal for the active ray. However, as explained in Section V-E, this technique may perform unnecessary work, which can limit the achievable speedup.
Many prior works aim to improve the microarchitecture of ray tracing accelerators, and most of these techniques are orthogonal to our design and can be integrated alongside it. Liu et al. [34] proposed caching intersection results and using ray-property hashing to predict future intersections, thereby avoiding unnecessary traversal. Their design reconstructs warps during traversal to mitigate misprediction overhead but still manages ray buffers at warp granularity and does not increase the number of warps that can traverse concurrently. Jung et al. [24] use shared memory as auxiliary storage for traversal stack overflows. Although we assume that the short stack resides entirely in shared memory, the shared-memory management techniques proposed in this work can be applied to their design as well. Chou et al. [10] propose prefetching BVH treelets to reduce memory latency during traversal. A large body of work [19], [39], [42], [50], [65] explores ray sorting to improve memory locality and reduce divergence during GPU-based traversal.
VII. Conclusion
We presented Ray-by-Ray, a new mechanism for efficient on-chip resource management in hardware-accelerated GPU ray tracing units. Our analysis reveals a mismatch between the GPU's SIMT model and the per-thread execution model of RT units, leading to inefficient warp-level resource allocation. Inactive lanes continue to occupy buffer entries, reducing parallelism and limiting traversal throughput. Ray-by-Ray introduces a lightweight, fine-grained per-ray allocation scheme that tracks only active lanes, enabling more rays to traverse concurrently and better hiding memory latency. We also show that contemporary GPU memory coalescing provides limited benefit for ray tracing, allowing relaxed warp-level coalescing constraints.
We implemented the Ray-by-Ray architecture in RTL and evaluated its performance across diverse workloads and ray tracing techniques using Vulkan-Sim and LumiBench. Our design achieves an average speedup of while incurring a minimal total area overhead of 0.19%.
ACKNOWLEDGMENT
The authors would like to thank Wilson Wai Lun Fung for his mentorship, insightful discussions, and brainstorming during the early stages of this work, which inspired the core ideas of this paper. This work was supported, in part, by NSF CCF #1943379 and NSF CCF #2450447. We also thank the anonymous reviewers for their constructive feedback.
REFERENCES
[1] T. Aila and S. Laine, “Understanding the efficiency of ray traversal on GPUs,” in Proceedings of the Conference on High Performance Graphics 2009. New Orleans Louisiana: ACM, Aug. 2009, pp. 145–149. [Online]. Available: https://dl.acm.org/doi/10.1145/1572769.1572792
[2] AMD, “”RDNA4” Instruction Set Architecture: Reference Guide,” 2025.
[3] A. Ariel, W. W. L. Fung, A. E. Turner, and T. M. Aamodt, “Visualizing complex dynamics in many-core accelerator architectures,” in 2010 IEEE International Symposium on Performance Analysis of Systems & Software (ISPASS), Mar. 2010, pp. 164–174.
[4] C. Avalos Baddouh, M. Khairy, R. N. Green, M. Payer, and T. G. Rogers, “Principal Kernel Analysis: A Tractable Methodology to Simulate Scaled GPU Workloads,” in MICRO-54: 54th Annual IEEE/ACM International Symposium on Microarchitecture. Virtual Event Greece: ACM, Oct. 2021, pp. 724–737. [Online]. Available: https://dl.acm.org/doi/10.1145/3466752.3480100
[5] A. Bakhoda, G. L. Yuan, W. W. L. Fung, H. Wong, and T. M. Aamodt, "Analyzing CUDA workloads using a detailed GPU simulator," in 2009 IEEE International Symposium on Performance Analysis of Systems and Software, Apr. 2009, pp. 163–174. [Online]. Available: https://ieeexplore.ieee.org/document/4919648
[6] J. Barczak and H. Gruen, “Intel® Arc™ Graphics Developer Guide for Real-time Ray Tracing in Games,” Intel Corporation, Developer Guide, Jan. 2023. [Online]. Available: https://www.intel.com/content/www/us/en/developer/articles/guide/real-time-ray-tracing-in-games.html
[7] A. Barnes, F. Shen, and T. G. Rogers, “Extending GPU Ray-Tracing Units for Hierarchical Search Acceleration,” in 2024 57th IEEE/ACM International Symposium on Microarchitecture (MICRO). Austin, TX, USA: IEEE, Nov. 2024, pp. 1027–1040. [Online]. Available: https://ieeexplore.ieee.org/document/10764676/
[8] J. Bigler, A. Stephens, and S. G. Parker, “Design for Parallel Interactive Ray Tracing Systems,” in 2006 IEEE Symposium on Interactive Ray Tracing, Sep. 2006, pp. 187–196. [Online]. Available: https://ieeexplore.ieee.org/document/4061561/
[9] Y. H. Chou and T. M. Aamodt, “Treelet Accelerated Ray Tracing on GPUs,” in Proceedings of the 30th ACM International Conference on Architectural Support for Programming Languages and Operating Systems, Volume 2. Rotterdam Netherlands: ACM, Mar. 2025, pp. 1334–1347. [Online]. Available: https://dl.acm.org/doi/10.1145/3676641.3716279
[10] Y. H. Chou, T. Nowicki, and T. M. Aamodt, “Treelet Prefetching For Ray Tracing,” in 56th Annual IEEE/ACM International Symposium on Microarchitecture. Toronto ON Canada: ACM, Oct. 2023, pp. 742–755. [Online]. Available: https://dl.acm.org/doi/10.1145/3613424.3614288
[11] P. H. Christensen, J. Fong, D. M. Laur, and D. Batali, “Ray Tracing for the Movie ‘Cars’,” in 2006 IEEE Symposium on Interactive Ray Tracing. Salt Lake City, UT: IEEE, Sep. 2006, pp. 1–6. [Online]. Available: http://ieeexplore.ieee.org/document/4061539/
[12] V. Costa, J. M. Pereira, and J. A. Jorge, “Accelerating Occlusion Rendering on a GPU via Ray Classification:,” International Journal of Creative Interfaces and Computer Graphics, vol. 6, no. 2, pp. 1–17, Jul. 2015. [Online]. Available: https://services.igi-global.com/resolvedoi/resolve.aspx?doi=10.4018/IJCICG.2015070101
[13] M. Droske, J. Hanika, J. Vorba, A. Weidlich, and M. Sabbadin, “Path tracing in Production: The Path of Water,” in ACM SIGGRAPH 2023 Courses. Los Angeles California: ACM, Jul. 2023, pp. 1–66. [Online]. Available: https://dl.acm.org/doi/10.1145/3587423.3595519
[14] S. Dublish, V. Nagarajan, and N. Topham, “Evaluating and mitigating bandwidth bottlenecks across the memory hierarchy in GPUs,” in 2017 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS). Santa Rosa, CA, USA: IEEE, Apr. 2017, pp. 239–248. [Online]. Available: http://ieeexplore.ieee.org/document/7975295/
[15] M. Ernst and G. Greiner, “Multi bounding volume hierarchies,” in 2008 IEEE Symposium on Interactive Ray Tracing, Aug. 2008, pp. 35–40. [Online]. Available: https://ieeexplore.ieee.org/document/4634618/
[16] L. Fascione, J. Hanika, R. Pieké, R. Villemin, C. Hery, M. Gamito, L. Emrose, and A. Mazzone, “Path tracing in production,” in ACM SIGGRAPH 2018 Courses. Vancouver British Columbia Canada: ACM, Aug. 2018, pp. 1–79. [Online]. Available: https://dl.acm.org/doi/10.1145/3214834.3214864
[17] W. W. L. Fung and T. M. Aamodt, “Thread block compaction for efficient SIMT control flow,” in 2011 IEEE 17th International Symposium on High Performance Computer Architecture. San Antonio, TX, USA: IEEE, Feb. 2011, pp. 25–36. [Online]. Available: http://ieeexplore.ieee.org/document/5749714/
[18] W. W. Fung, I. Sham, G. Yuan, and T. M. Aamodt, “Dynamic Warp Formation and Scheduling for Efficient GPU Control Flow,” in 40th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO 2007). Chicago, IL, USA: IEEE, 2007, pp. 407–420. [Online]. Available: http://ieeexplore.ieee.org/document/4408272/
[19] K. Garanzha and C. Loop, “Fast Ray Sorting and Breadth-First Packet Traversal for GPU Ray Tracing,” Computer Graphics Forum, vol. 29, no. 2, pp. 289–298, May 2010. [Online]. Available: https://onlinelibrary.wiley.com/doi/10.1111/j.1467-8659.2009.01598.x
[20] I. Georgiev, T. Ize, M. Farnsworth, R. Montoya-Vozmediano, A. King, B. V. Lommel, A. Jimenez, O. Anson, S. Ogaki, E. Johnston, A. Herubel, D. Russell, F. Servant, and M. Fajardo, “Arnold: A Brute-Force Production Path Tracer,” ACM Transactions on Graphics, vol. 37, no. 3, pp. 1–12, Jun. 2018. [Online]. Available: https://dl.acm.org/doi/10.1145/3182160
[21] V. Govindaraju, P. Djeu, K. Sankaralingam, M. Vernon, and W. R. Mark, “Toward a multicore architecture for real-time ray-tracing,” in 2008 41st IEEE/ACM International Symposium on Microarchitecture, Nov. 2008, pp. 176–187. [Online]. Available: https://ieeexplore.ieee.org/document/4771789/
[22] M. Grauer, J. Hanika, and C. Dachsbacher, “Minimizing Ray Tracing Memory Traffic through Quantized Structures and Ray Stream Tracing,” May 2025, arXiv:2505.24653 [cs] version: 1. [Online]. Available: http://arxiv.org/abs/2505.24653
[23] D. Ha, L. Liu, Y. H. Chou, S. Go, W. W. Ro, H.-W. Tseng, and T. M. Aamodt, “Generalizing Ray Tracing Accelerators for Tree Traversals on GPUs,” in 2024 57th IEEE/ACM International Symposium on Microarchitecture (MICRO). Austin, TX, USA: IEEE, Nov. 2024, pp. 1041–1057. [Online]. Available: https://ieeexplore.ieee.org/document/10764639/
[24] E. Jung, E. Jeong, G. Koo, Y. Oh, and M. K. Yoon, “Hierarchical Traversal Stack Design Using Shared Memory for GPU Ray Tracing,” in 2025 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), May 2025, pp. 62–72. [Online]. Available: https://ieeexplore.ieee.org/document/11096382/
[25] S. W. Keckler, W. J. Dally, B. Khailany, M. Garland, and D. Glasco, “GPUs and the Future of Parallel Computing,” IEEE Micro, vol. 31, no. 5, pp. 7–17, Sep. 2011. [Online]. Available: http://ieeexplore.ieee.org/document/6045685/
[26] B. Kerbl, M. Kenzel, E. Ivanchenko, D. Schmalstieg, and M. Steinberger, "Revisiting The Vertex Cache: Understanding and Optimizing Vertex Processing on the modern GPU," Proceedings of the ACM on Computer Graphics and Interactive Techniques, vol. 1, no. 2, pp. 1–16, Aug. 2018. [Online]. Available: https://dl.acm.org/doi/10.1145/3233302
[27] M. Khairy, A. Jain, T. Aamodt, and T. G. Rogers, “Exploring Modern GPU Memory System Design Challenges through Accurate Modeling,” Oct. 2018, arXiv:1810.07269 [cs.AR]. [Online]. Available: http://arxiv.org/abs/1810.07269
[28] M. Khairy, Z. Shen, T. M. Aamodt, and T. G. Rogers, “Accel-Sim: An Extensible Simulation Framework for Validated GPU Modeling,” in 2020 ACM/IEEE 47th Annual International Symposium on Computer Architecture (ISCA). Valencia, Spain: IEEE, May 2020, pp. 473–486. [Online]. Available: https://ieeexplore.ieee.org/document/9138922/
[29] H. Kim, A. Wang, S. Zhang, and S. Shao, “Cost of divergence in ray tracing: Performance characterization on CPU and GPU,” in Fifth International Workshop on Domain Specific System Architecture (DOSSA-5), Orlando, FL, USA, Jun. 2023. [Online]. Available: https://prism.sejong.ac.kr/dossa-5/dossa_paper/paper3_hansung-kim-cost-of-divergence-for-ray-tracing-camera-ready-2nd.pdf
[30] D. Kopta, J. Spjut, E. Brunvand, and A. Davis, “Efficient MIMD architectures for high-performance ray tracing,” in 2010 IEEE International Conference on Computer Design, Oct. 2010, pp. 9–16. [Online]. Available: https://ieeexplore.ieee.org/document/5647555/
[31] W.-J. Lee, Y. Shin, J. Lee, J.-W. Kim, J.-H. Nah, S. Jung, S. Lee, H.-S. Park, and T.-D. Han, “SGRT: a mobile GPU architecture for real-time ray tracing,” in Proceedings of the 5th High-Performance Graphics Conference. Anaheim California: ACM, Jul. 2013, pp. 109–119. [Online]. Available: https://dl.acm.org/doi/10.1145/2492045.2492057
[32] J. Leng, T. Hetherington, A. ElTantawy, S. Gilani, N. S. Kim, T. M. Aamodt, and V. J. Reddi, “GPUWattch: enabling energy optimizations in GPGPUs,” ACM SIGARCH Computer Architecture News, vol. 41, no. 3, pp. 487–498, Jun. 2013. [Online]. Available: https://dl.acm.org/doi/10.1145/2508148.2485964
[33] A. Lier, M. Stamminger, and K. Selgrad, “CPU-style SIMD ray traversal on GPUs,” in Proceedings of the Conference on High-Performance Graphics. Vancouver British Columbia Canada: ACM, Aug. 2018, pp. 1–4. [Online]. Available: https://dl.acm.org/doi/10.1145/3231578.3231583
[34] L. Liu, W. Chang, F. Demoullin, Y. H. Chou, M. Saed, D. Pankratz, T. Nowicki, and T. M. Aamodt, “Intersection Prediction for Accelerated GPU Ray Tracing,” in MICRO-54: 54th Annual IEEE/ACM International Symposium on Microarchitecture. Virtual Event Greece:
ACM, Oct. 2021, pp. 709–723. [Online]. Available: https://dl.acm.org/doi/10.1145/3466752.3480097
[35] L. Liu, M. Saed, Y. H. Chou, D. Grigoryan, T. Nowicki, and T. M. Aamodt, “LumiBench: A Benchmark Suite for Hardware Ray Tracing,” in 2023 IEEE International Symposium on Workload Characterization (IISWC), Oct. 2023, pp. 1–14. [Online]. Available: https://ieeexplore.ieee.org/document/10289559/
[36] M. Martins, J. M. Matos, R. P. Ribas, A. Reis, G. Schlinker, L. Rech, and J. Michelsen, “Open Cell Library in 15nm FreePDK Technology,” in Proceedings of the 2015 Symposium on International Symposium on Physical Design. Monterey California USA: ACM, Mar. 2015, pp. 171–178. [Online]. Available: https://dl.acm.org/doi/10.1145/2717764.2717783
[37] D. Meister, J. Bokšanský, M. Guthe, and J. Bittner, “On Ray Reordering Techniques for Faster GPU Ray Tracing,” Jun. 2025, arXiv:2506.11273 [cs.GR]. [Online]. Available: http://arxiv.org/abs/2506.11273
[38] D. Meister, S. Ogaki, C. Benthin, M. J. Doyle, M. Guthe, and J. Bittner, "A Survey on Bounding Volume Hierarchies for Ray Tracing," Computer Graphics Forum, vol. 40, no. 2, pp. 683–712, May 2021. [Online]. Available: https://onlinelibrary.wiley.com/doi/10.1111/cgf.142662
[39] B. Moon, Y. Byun, T.-J. Kim, P. Claudio, H.-S. Kim, Y.-J. Ban, S. W. Nam, and S.-E. Yoon, “Cache-oblivious ray reordering,” ACM Transactions on Graphics, vol. 29, no. 3, pp. 1–10, Jun. 2010. [Online]. Available: https://dl.acm.org/doi/10.1145/1805964.1805972
[40] G. Muthler and J. Burgess, “Techniques for traversing data employed in ray tracing,” US Patent US11 302 056B2, Apr., 2022. [Online]. Available: https://patents.google.com/patent/US11302056B2/en/
[41] J.-H. Nah, H.-J. Kwon, D.-S. Kim, C.-H. Jeong, J. Park, T.-D. Han, D. Manocha, and W.-C. Park, "RayCore: A Ray-Tracing Hardware Architecture for Mobile Devices," ACM Transactions on Graphics, vol. 33, no. 5, pp. 1–15, Sep. 2014. [Online]. Available: https://dl.acm.org/doi/10.1145/2629634
[42] P. A. Navratil, D. S. Fussell, C. Lin, and W. R. Mark, “Dynamic Ray Scheduling to Improve Ray Coherence and Bandwidth Utilization,” in 2007 IEEE Symposium on Interactive Ray Tracing, Sep. 2007, pp. 95–104. [Online]. Available: https://ieeexplore.ieee.org/document/4342596
[43] NVIDIA, “NVIDIA CUDA Profiling Tools Interface (CUPTI) - CUDA Toolkit.” [Online]. Available: https://developer.nvidia.com/cupti
[44] —, “NVIDIA Ampere GA102 GPU Architecture,” Jan. 2021, whitepaper V2.0. [Online]. Available: https://www.nvidia.com/content/PDF/nvidia-ampere-ga-102-gpu-architecture-whitepaper-v2.pdf
[45] —, “Improve Shader Performance and In-Game Frame Rates with Shader Execution Reordering,” Oct. 2022. [Online]. Available: https://developer.nvidia.com/blog/improve-shader-performance-and-in-game-frame-rates-with-shader-execution-reordering/
[46] —, “Shader Execution Reordering,” Oct. 2022, whitepaper V1.0. [Online]. Available: https://developer.nvidia.com/sites/default/files/akamai/gameworks/ser-whitepaper.pdf
[47] —, “Path Tracing Optimization in Indiana Jones™: Shader Execution Reordering and Live State Reductions,” May 2025. [Online]. Available: https://developer.nvidia.com/blog/path-tracing-optimization-in-indiana-jones-shader-execution-reordering-and-live-state-reductions/
[48] J. Pan, W. An, C. Avalos Baddouh, C. D. Bose, N. Kang, A. Barnes, A. Alawneh, F. Shen, Y. Liu, A. Nallathambi, A. Chandrashekar, and T. G. Rogers, “Architecting the Next Generation of Asynchronous, Distributed GPUs for the AI Era,” Aug. 2026, arXiv:2608.22602 [cs.AR]. [Online]. Available: https://arxiv.org/abs/2608.22602
[49] J. Pan and T. G. Rogers, “CRISP: Concurrent Rendering and Compute Simulation Platform for GPUs,” in 2024 IEEE International Symposium on Workload Characterization (IISWC), Sep. 2024, pp. 1–14. [Online]. Available: https://ieeexplore.ieee.org/document/10763677/
[50] M. Pharr, C. Kolb, R. Gershbein, and P. Hanrahan, “Rendering complex scenes with memory-coherent ray tracing,” in Proceedings of the 24th annual conference on Computer graphics and interactive techniques - SIGGRAPH '97. ACM Press, 1997, pp. 101–108. [Online]. Available: http://portal.acm.org/citation.cfm?doid=258734.258791
[51] A. Reshetov, A. Soupikov, and J. Hurley, “Multi-level ray tracing algorithm,” ACM Transactions on Graphics, vol. 24, no. 3, pp. 1176–1185, Jul. 2005. [Online]. Available: https://dl.acm.org/doi/10.1145/1073204.1073329
[52] T. G. Rogers, D. R. Johnson, M. O'Connor, and S. W. Keckler, "A variable warp size architecture," SIGARCH Comput. Archit. News, vol. 43, no. 3S, pp. 489–501, Jun. 2015. [Online]. Available: https://dl.acm.org/doi/10.1145/2872887.2750410
[53] M. Saed, Y. H. Chou, L. Liu, T. Nowicki, and T. M. Aamodt, “Vulkan-Sim: A GPU Architecture Simulator for Ray Tracing,” in 2022 55th IEEE/ACM International Symposium on Microarchitecture (MICRO), Oct. 2022, pp. 263–281.
[54] S. J. Saleh, M. V. KAZAKOV, and V. Goel, “Texture processor based ray tracing acceleration method and system,” US Patent US11200724B2, Dec., 2021. [Online]. Available: https://patents.google.com/patent/US11200724B2/en
[55] L. Seiler, D. Carmean, E. Sprangle, T. Forsyth, M. Abrash, P. Dubey, S. Junkins, A. Lake, J. Sugerman, R. Cavin, R. Espasa, E. Grochowski, T. Juan, and P. Hanrahan, "Larrabee: a many-core x86 architecture for visual computing," ACM Transactions on Graphics, vol. 27, no. 3, pp. 1–15, Aug. 2008. [Online]. Available: https://dl.acm.org/doi/10.1145/1360612.1360617
[56] F. Shen, A. Barnes, A. Nallathambi, and T. G. Rogers, "RayFlex: An Open-Source RTL Implementation of the Hardware Ray Tracer Datapath," in 2025 IEEE International Symposium on Performance Analysis of Systems and Software (ISPASS), May 2025, pp. 73–84. [Online]. Available: https://ieeexplore.ieee.org/document/11096360/
[57] J. Spjut, A. Kensler, D. Kopta, and E. Brunvand, “TRaX: A Multicore Hardware Architecture for Real-Time Ray Tracing,” IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol. 28, no. 12, pp. 1802–1815, Dec. 2009. [Online]. Available: https://ieeexplore.ieee.org/document/5324031/
[58] L. Szécsi, “The Hierarchical Ray Engine,” in Proceedings of the 14th International Conference in Central Europe on Computer Graphics, Visualization and Computer Vision (WSCG), Full Papers. Plzen, Czech Republic: UNION Agency – Science Press, 2006, pp. 249–256.
[59] N. T. Reis, V. S. Costa, and J. M. Pereira, “Coherent Ray-Space Hierarchy Via Ray Hashing and Sorting:,” in Proceedings of the 12th International Joint Conference on Computer Vision, Imaging and Computer Graphics Theory and Applications. Porto, Portugal: SCITEPRESS - Science and Technology Publications, 2017, pp. 195–202. [Online]. Available: http://www.scitepress.org/DigitalLibrary/Link.aspx?doi=10.5220/0006098001950202
[60] B. Tine, K. P. Yalamarthy, F. Elsabbagh, and K. Hyesoon, “Vortex: Extending the RISC-V ISA for GPGPU and 3D-Graphics,” in MICRO-54: 54th Annual IEEE/ACM International Symposium on Microarchitecture. Virtual Event Greece: ACM, Oct. 2021, pp. 754–766. [Online]. Available: https://dl.acm.org/doi/10.1145/3466752.3480128
[61] Y. S. Tozlu and H. Zhou, “CoopRT: Accelerating BVH Traversal for Ray Tracing via Cooperative Threads,” in Proceedings of the 52nd Annual International Symposium on Computer Architecture. Tokyo Japan: ACM, Jun. 2025, pp. 166–179. [Online]. Available: https://dl.acm.org/doi/10.1145/3695053.3731118
[62] K. Vaidyanathan, S. Woop, and C. Benthin, “Wide BVH traversal with a short stack,” in Proceedings of the Conference on High-Performance Graphics, ser. HPG '19. Goslar, DEU: Eurographics Association, Jul. 2019, pp. 15–19. [Online]. Available: https://doi.org/10.2312/hpg.20191190
[63] I. Wald, C. Benthin, and S. Boulos, “Getting rid of packets - Efficient SIMD single-ray traversal using multi-branching BVHs -,” in 2008 IEEE Symposium on Interactive Ray Tracing, Aug. 2008, pp. 49–57. [Online]. Available: https://ieeexplore.ieee.org/document/4634620/
[64] I. Wald, P. Slusallek, C. Benthin, and M. Wagner, “Interactive Rendering with Coherent Ray Tracing,” Computer Graphics Forum, vol. 20, no. 3, pp. 153–165, Sep. 2001. [Online]. Available: https://onlinelibrary.wiley.com/doi/10.1111/1467-8659.00508
[65] H. Ylitie, T. Karras, and S. Laine, “Efficient incoherent ray traversal on GPUs through compressed wide BVHs,” in Proceedings of High Performance Graphics, ser. HPG '17. New York, NY, USA: Association for Computing Machinery, 2017, pp. 1–13. [Online]. Available: https://dl.acm.org/doi/10.1145/3105762.3105773
[66] Y. Zhu, “RTNN: accelerating neighbor search using hardware ray tracing,” in Proceedings of the 27th ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming. Seoul Republic of Korea: ACM, Apr. 2022, pp. 76–89. [Online]. Available: https://dl.acm.org/doi/10.1145/3503221.3508409
APPENDIX ARTIFACT APPENDIX
A. Abstract
This artifact reproduces Fig. 8 of the paper — the per-workload normalized speedup of the Ray-by-Ray RT unit over the baseline warp-granular RT unit, across 46 ray-tracing workloads (16 scenes from LumiBench × SH/AO/PT shader modes, plus CHSNT_PT). It is packaged as two self-contained Docker images (design and baseline) built on Vulkan-Sim; the baseline sweep results are pre-computed and shipped inside the tarball, so the reviewer only needs to run the design sweep and render the figure.
B. Artifact check-list (meta-information)
• Program: Vulkan-Sim v2.0 (cycle-level GPGPU-Sim + Mesa/lavapipe) running the RayTracingInVulkan benchmark app on the LumiBench scenes.
• Compilation: Pre-built inside the shipped Docker images (Ubuntu 24.04, gcc-11, CUDA 11.7 ptxas, LLVM-11).
• Binary: Simulator, Vulkan driver, benchmark app, scenes, and toolchain are all baked into the images.
• Data set: LumiBench (16 scenes, included).
• Run-time environment: Linux host with Docker 20.10.
• Hardware: Any x86-64 host with 128 GB of RAM. No GPU required. More RAM and more CPU cores directly reduce wall time.
• Metrics: gpu_tot_sim_cycle per workload; the plot reports per-workload speedup (baseline/design) and their ge-omean.
• Output: speedup.png / speedup.pdf (Fig. 8), plus per-run Vulkan-Sim logs.
• Experiments: One design-sweep run reproduces Fig. 8.
• How much disk space required (approximately)?: 15 GB (images + shipped baseline results + design sweep outputs).
• How much time is needed to prepare workflow (approximately)?: <10 min (docker load + tar -xf).
• How much time is needed to complete experiments (approximately)?: 1 week serial; ~1 day when run in parallel on a well-provisioned host (higher RAM/cores more concurrent workloads).
• Publicly available?: Yes, on Zenodo.
• Code licenses (if publicly available)?: BSD (inherited from Vulkan-Sim / GPGPU-Sim).
• Archived (provide DOI)?: 10.5281/zenodo.21542536.
C. Description
-
How to access: A single tarball on Zenodo (DOI above) containing: (i) the artifact source tree (mirror of the working directory, minus intermediate outputs), (ii) the pre-built Docker image tarball vulkan-sim-artifact.tar (rbr-design and rbr-baseline), (iii) the pre-computed baseline sweep results under results/baseline/, and (iv) the driver scripts under docker/scripts/.
-
Hardware dependencies: x86-64 Linux host with Docker and 128 GB RAM. No GPU is required (rendering is CPU-emulated through Mesa/lavapipe; GPGPU-Sim is a CPU simulator). One workload, CHSNT_PT, has a peak resident set of 120 GB and will be skipped automatically on hosts with less headroom. Wall time scales with available RAM and CPU cores because the in-container scheduler bin-packs workloads against a memory budget.
-
Software dependencies: Docker only. All simulator, driver, toolchain, Python plotting, and benchmark dependencies are contained inside the images.
-
Data sets: LumiBench (16 scenes) is shipped inside the images. Rendering resolution is , matching the paper.
D. Installation
From the extracted tarball root:
docker load -i vulkan-sim-artifact.tar
This registers rbr-design and rbr-baseline. The pre-computed baseline results are already in ./results/baseline/.
E. Experiment workflow
Run the design sweep and render Fig. 8:
defaults: use all cores, all RAM
./docker/scripts/make_speedup.sh --only design
cap concurrency and per-sweep memory
budget explicitly
JOBS=8 ./docker/scripts/make_speedup.sh
--only design --max-mem 200
This launches a single rbr-design-sweep container that runs all 46 workloads in parallel inside the container (GNU parallel + a memory reservation scheduler), then invokes the in-image plotting script against results/design/ (freshly generated) and results/baseline/ (shipped). JOBS caps the concurrent-workload count (default: container CPU count). --max-mem GB caps the total memory budget the scheduler bin-packs against; any workload whose reservation exceeds the (auto-clamped) budget is skipped rather than launched.
a) Other entry points.: See docker/README.md for the full script surface. In brief:
• run_benchmark.sh — run a single workload; --list enumerates them.
• run_sweep.sh — the in-container parallel driver invoked by make_speedup.sh; can also be run standalone to inspect the sweep container directly.
• run_all_parallel.sh — host-side alternative that launches one container per benchmark instead of one per variant.
F. Evaluation and expected results
The script produces ./speedup.png and ./speedup.pdf. The figure should reproduce Fig. 8: per-application, per-shader-mode (SH/AO/PT) speedup bars, with the overall geometric mean and the relative ranking across workloads matching the paper. Small numerical variation in individual bars is expected and does not affect the qualitative result.
G. Experiment customization
To sweep at a lower resolution (much faster, lower fidelity):
WIDTH=64 HEIGHT=64
./docker/scripts/make_speedup.sh
--only design
To re-run the baseline sweep from scratch instead of using the shipped results, drop the --only design flag.
H. Notes
a) Baseline vs. upstream Vulkan-Sim.: The rbr-baseline image is essentially original Vulkan-Sim 2.0 (commit dc742fa). The differences from public upstream are (a) additional performance counters used elsewhere in the paper's characterization and (b) software optimizations to reduce simulation wall time.
b) Benign teardown abort after each run.: After a workload completes, the reviewer may see something like:
GPGPU-Sim: *** exit detected *** RayTracer: .../util/u_surface.c:267: util_resource_copy_region: Assertion 'src_bs == dst_bs' failed. Aborted (core dumped)
This is benign. The assertion fires in Mesa/lavapipe's Vulkan teardown after GPGPU-Sim has already printed its exit marker and flushed all stats to the log; the simulation itself completed successfully. The authoritative signal is the line "GPGPU-Sim: *** exit detected ***" plus a gpu_tot_sim_cycle value in the per-workload .log.