arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2306.03282cs.DCcs.CGcs.DS
收藏

利用光线追踪核心加速区间最小值查询

Accelerating Range Minimum Queries with Ray Tracing Cores

Enzo Meneses, Cristóbal A. Navarro, Héctor Ferrada, Felipe A. Quezada

AI总结:

提出RTXRMQ,将RMQ映射为RT核心上的光线-三角形最近命中问题,在短查询区间上显著优于现有CPU与GPU方法。

摘要:

在过去十年中,GPU技术已从纯粹的通用计算转向集成专用集成电路(ASIC),例如Tensor Cores和光线追踪(RT)核心。尽管这些专用GPU核心旨在进一步加速AI和实时渲染等特定领域,但近期研究已成功利用它们来进一步加速通常使用常规GPU计算的其他任务。在本工作中,我们提出RTXRMQ,这是一种利用RT核心计算区间最小值查询(RMQ)的新方法。主要贡献是为RMQ提出了一种几何解决方案:将数组元素转换为三角形,三角形的位置和形状分别根据元素在数组中的值和位置确定,从而使从查询参数给定的点发射的光线的最近命中结果对应该查询的答案。实验结果表明,RTXRMQ目前最适合相对于问题规模较小的查询区间,相比最先进的CPU方法(HRMQ)和GPU方法(LCA)分别实现最高5倍和2.3倍的加速。尽管在中等和大型查询区间上RTXRMQ目前不如LCA,但它仍具有竞争力,比高度并行的CPU方法HRMQ快2.5倍和4倍。此外,跨最新RTX GPU架构的性能扩展实验表明,如果当前RT扩展趋势持续,RTXRMQ的性能扩展速率将高于HRMQ和LCA,使该方法对于未来采用批量RMQ的高性能应用更具价值。

英文摘要:

During the last decade GPU technology has shifted from pure general purpose computation to the inclusion of application specific integrated circuits (ASICs), such as Tensor Cores and Ray Tracing (RT) cores. Although these special purpose GPU cores were designed to further accelerate specific fields such as AI and real-time rendering, recent research has managed to exploit them to further accelerate other tasks that typically used regular GPU computing. In this work we present RTXRMQ, a new approach that can compute range minimum queries (RMQs) with RT cores. The main contribution is the proposal of a geometric solution for RMQ, where elements become triangles that are placed and shaped according to the element's value and position in the array, respectively, such that the closest hit of a ray launched from a point given by the query parameters corresponds to the result of that query. Experimental results show that RTXRMQ is currently best suited for small query ranges relative to the problem size, achieving up to $5\times$ and $2.3\times$ of speedup over state of the art CPU (HRMQ) and GPU (LCA) approaches, respectively. Although for medium and large query ranges RTXRMQ is currently surpassed by LCA, it is still competitive by being $2.5\times$ and $4\times$ faster than HRMQ which is a highly parallel CPU approach. Furthermore, performance scaling experiments across the latest RTX GPU architectures show that if the current RT scaling trend continues, then RTXRMQ's performance would scale at a higher rate than HRMQ and LCA, making the approach even more relevant for future high performance applications that employ batches of RMQs.

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

↑