arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2409.12617cs.GR
收藏

CrossRT:一种用于CG和CV应用中硬件加速光线追踪的跨平台编程技术

CrossRT: A cross platform programming technology for hardware-accelerated ray tracing in CG and CV applications

Vladimir Frolov, Vadim Sanzharov, Garifullin Albert, Maxim Raenchuk, Alexei Voloboy

AI总结:

提出CrossRT跨平台编程技术,通过硬件无关的C++算法描述自动生成硬件加速代码,支持软件回退和多kernel路径追踪,在多种任务上性能与专家手写实现相当并优于现有路径追踪实现。

摘要:

我们提出了一种编程技术,该技术弥合了光线追踪应用中跨平台兼容性与硬件加速之间的鸿沟。我们的方法使开发者能够定义算法,而我们的翻译器则负责管理针对不同硬件或API的实现细节。其特性包括:从与硬件无关的、面向对象的C++算法描述生成硬件加速代码;使用户能够为非硬件加速的CPU和GPU定义软件回退方案;生成基于GPU编程API的算法实现,其风格类似于手动移植的C++版本。生成的代码可编辑且可读,允许进行额外的硬件加速。我们的翻译器支持单megakernel和多kernel路径追踪实现,而无需改变编程模型或输入源代码。Wavefront模式对于NeRF和SDF至关重要,可确保通过多个kernel进行高效评估。在诸如BVH树构建/遍历、SDF的光线-表面相交、3D高斯溅射的光线-体素相交以及复杂路径追踪模型等任务上的验证表明,其性能水平与专家为GPU编写的实现相当。我们的技术优于现有的路径追踪实现。

英文摘要:

We propose a programming technology that bridges cross-platform compatibility and hardware acceleration in ray tracing applications. Our methodology enables developers to define algorithms while our translator manages implementation specifics for different hardware or APIs. Features include: generating hardware-accelerated code from hardware-agnostic, object-oriented C++ algorithm descriptions; enabling users to define software fallbacks for non-hardware-accelerated CPUs and GPUs; producing GPU programming API-based algorithm implementations resembling manually ported C++ versions. The generated code is editable and readable, allowing for additional hardware acceleration. Our translator supports single megakernel and multiple kernel path tracing implementations without altering the programming model or input source code. Wavefront mode is crucial for NeRF and SDF, ensuring efficient evaluation with multiple kernels. Validation on tasks such as BVH tree build/traversal, ray-surface intersection for SDF, ray-volume intersection for 3D Gaussian Splatting, and complex Path Tracing models showed comparable performance levels to expert-written implementations for GPUs. Our technology outperformed existing Path Tracing implementations.

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

↑