逐射线:GPU光线追踪单元的细粒度资源管理
Ray-by-Ray: Fine-Grained Resource Management for GPU Ray Tracing Units
AI总结:
针对GPU光线追踪中SIMT与RT粒度不匹配导致的资源低效问题,提出Ray-by-Ray方法,将片上缓冲区按光线粒度分解,使性能平均提升1.91倍,面积开销仅0.19%。
摘要:
光线追踪(RT)通过模拟光线与虚拟场景中表面的相互作用生成逼真图像。在电影制作和高端渲染流程中,该技术通过每帧追踪数百万条光线并精确建模其反弹与衰减,计算全局光照、反射、折射和软阴影。当代GPU集成了专用光线追踪硬件以加速遍历管线中的关键操作,通过硬件加速这些阶段,该单元可实现复杂场景的实时光线追踪,而此前这类场景需离线计算。然而,光线追踪会引发显著的控制与数据分歧:每条光线可能在加速结构中遍历不同节点、遇到不同材质或在不同深度终止,这种不规则性会降低线程一致性,且暴露出GPU的SIMT(单指令多线程)与专用RT单元的每线程执行模型之间的根本差异——其中每条光线独立推进。本研究旨在验证开源基础设施中的假设,并识别光线追踪管线内资源管理的潜在低效性。为解决SIMT与RT粒度不匹配导致的低效问题,我们提出Ray-by-Ray,该方法将片上缓冲区分解为单条光线的粒度,并引入轻量级管理结构,使更多线程束可并行运行而不增加缓冲区容量。此方法提升了光线追踪单元的利用率,并增加了内存级并行性。实验结果显示,Ray-by-Ray相较于基线平均性能提升1.91倍,面积开销为0.19%。
英文摘要:
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\%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。