arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.27323cs.GRcs.ARcs.PF
收藏

Megakernel vs Wavefront GPU 路径追踪

Megakernel vs Wavefront GPU Path Tracing

University of Utah(犹他大学)

Rafael Padilla, Kyle Webster, Austin Kim

AI总结:

本文比较了前向路径追踪(PT)和波前路径追踪(WPT)在GPU上的性能,发现WPT通过改善缓存局部性实现了约16%的加速,并分析了限制因素。

摘要:

在过去的十年中,GPU硬件的进步在很大程度上是由实时图形的需求驱动的,最终出现了专用硬件光线追踪核心(RT核心)。这些单元直接在硬件中加速光线场景相交查询,使得基于物理的光线追踪算法对交互式应用越来越实用。本文比较和分析了两种基于光线的渲染算法的性能:前向路径追踪(PT)和波前路径追踪(WPT)。基于GPU的PT通过让每个线程追踪一条完整路径来计算每个像素的颜色,自然导致megakernel方法——而WPT在专门的内核调用之间维护状态缓冲区,以同时追踪路径阶段。我们发现,在我们的实现中,WPT比PT提供了约16%的加速。通过分析NVIDIA Nsight Graphics的跟踪,我们将这种加速归因于WPT相比PT具有更好的缓存局部性。我们还发现,我们的实现没有在其任何单元上达到最大GPU吞吐量,这表明通信和内存延迟以及同步是限制因素。最后,我们讨论了实际应用中实时路径追踪实现的潜在算法改进和未来工作。

英文摘要:

Over the last decade, advances in GPU hardware have been driven in large part by the demands of real-time graphics, culminating in dedicated hardware ray tracing cores (RT cores). These units accelerate ray scene intersection queries directly in hardware, making physically based ray tracing algorithms increasingly practical for interactive applications. This paper compares and analyzes the performance of two ray-based rendering algorithms: forward path tracing (PT) and wavefront path tracing (WPT). GPU-based PT computes the color of each pixel by having each thread trace a single path to completion, naturally leading to a megakernel approach - while WPT maintains state buffers between specialized kernel invocations to trace path stages simultaneously. We find that WPT affords a ~16% speedup over PT in our implementation. By analyzing traces from NVIDIA Nsight Graphics, we attributed this speedup to WPT's improved cache locality compared to PT. We also find that our implementation does not achieve maximum GPU throughput across any of its units, suggesting that communication and memory latency, as well as synchronization, are the limiting factors. Finally, we address potential algorithmic improvements and future work for real-time path tracing implementation for practical applications.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑