arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.16253cs.AR
收藏

TTP:一种用于光线追踪中精确预取的高效硬件设计

TTP: A Hardware-Efficient Design for Precise Prefetching in Ray Tracing

North Carolina State University(北卡罗来纳州立大学)

Yavuz Selim Tozlu, Anshul Naithani, Huiyang Zhou

AI总结:

本文提出TTP预取器,通过利用RT单元中的树遍历栈实现高效预取,减少内存延迟,提升光线追踪性能,实验显示平均加速1.48倍,硬件开销极低。

摘要:

光线追踪(RT)是一种3D图形技术,能提供高度逼真的视觉效果。随着GPU厂商集成专用光线追踪加速硬件,RT正变得越来越突出和易用。然而,实时通过包含大量三角形的3D场景追踪数百万条光线仍具挑战性,需要昂贵的硬件。RT工作负载的主要瓶颈是昂贵的包围盒层次结构(BVH)遍历任务,这是一个编码3D场景的大型树结构。BVH遍历是内存受限的问题,因为GPU线程大部分时间都在从内存中读取树节点数据。在本工作中,我们通过预取攻击光线追踪的内存延迟瓶颈。我们提出了一种新型的硬件预取器,称为树遍历预取器(TTP),用于光线追踪。主要思想是利用RT单元中已有的树遍历栈进行高精度预取。具体而言,TTP利用每个线程硬件遍历栈上已有的地址来预取节点。对于基于深度优先搜索(DFS)的遍历,当节点连续弹出遍历栈时生成预取,这可能对应于树中的向上遍历。我们在循环级模拟器Vulkan-sim 2.0上评估了TTP,并显示其在基准上平均加速1.48倍(最高1.89倍),硬件开销几乎可以忽略不计。TTP实现了98.92%的平均L1精度,即预取块被需求加载实际引用的比例。覆盖率,计算为L1缺失减少量与基准L1缺失量的比率,为31.54%,与所达到的加速率密切相关。

英文摘要:

Ray tracing (RT) is a 3D graphics technique that offers highly realistic visuals. It is becoming prominent and accessible as GPU vendors have integrated dedicated ray tracing acceleration hardware. However, tracing millions of rays through 3D scenes consisting of high numbers of triangles in real time is challenging and requires expensive hardware. The main bottleneck in RT workloads is the expensive Bounding Volume Hierarchy (BVH) traversal task, which is a large tree structure that encodes the 3D scene. BVH traversal is a memory-bound problem, as the GPU threads spend most of their time reading tree node data from memory. In this work, we attack the memory latency bottleneck of ray tracing through prefetching. We propose a novel hardware prefetcher, named Tree Traversal Prefetcher (TTP), for ray tracing. The main idea is to leverage the existing tree traversal stack in the RT units for highly accurate prefetching. In particular, TTP prefetches nodes using the addresses already available on the hardware traversal stacks of each thread. For DFS (Depth-first search) based traversal, prefetches are generated when nodes are being popped consecutively from the traversal stack, potentially corresponding to upward traversal through the tree. We evaluate TTP on a cycle-level simulator, Vulkan-sim 2.0, and show that it achieves 1.48x speedup on average (up to 1.89x) compared to the baseline, with nearly negligible hardware overhead. TTP achieves 98.92% average L1 accuracy, which is the ratio of the prefetched blocks being actually referenced by demand loads. The coverage, computed as the ratio of L1 miss reduction over baseline L1 misses, is 31.54%, correlating well with the achieved speedup.

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

↑