XFLUIDS:一种基于SYCL的可压缩反应流统一跨架构异构仿真求解器
XFLUIDS: A SYCL-based unified cross-architecture heterogeneous simulation solver for compressible reacting flows
AI总结:
本研究针对多组分反应流仿真耗时、异构加速器适配难的问题,开发了基于SYCL的跨架构求解器XFluids,经多厂商GPU测试验证了其高准确性、可移植性与95%以上的多GPU弱扩展效率。
摘要:
我们提出了一种跨架构的高阶异构Navier-Stokes仿真求解器XFluids,用于不同平台上的可压缩反应多组分流模拟。多组分反应流在众多科学与工程应用中普遍存在,但为捕捉其潜在的多尺度特征,数值模拟通常极为耗时。尽管异构加速计算对这类流动的大规模仿真有显著增益,但如何有效利用市面上架构与编程模型各异的多种异构加速器仍是一大挑战。为解决这一问题,我们基于SYCL开发了XFluids,无需修改任何源代码即可直接针对不同设备实现加速。我们还提出了多种优化技术以提升XFluids的计算性能,包括自适应范围分配、部分特征系统重构、热点设备函数优化等。该求解器已开源,并在多家主流厂商的多款GPU上完成测试,展现出高度可移植性。通过多种基准测试用例,我们验证了XFluids的准确性,且与CUDA、HIP等现有GPU编程模型相比,其效率几乎没有损失。此外,我们利用MPI库将该求解器扩展至多GPU平台,并支持启用GPU的MPI。基于此,XFluids在1024块GPU的多设备弱扩展效率超过95%。最后,我们采用高分辨率网格模拟了惰性与反应性多组分激波-气泡相互作用问题,以研究反应效应对气泡演化过程中的混合、涡拉伸及形状变形的影响。
英文摘要:
We present a cross-architecture high-order heterogeneous Navier-Stokes simulation solver, XFluids, for compressible reacting multicomponent flows on different platforms. The multi-component reacting flows are ubiquitous in many scientific and engineering applications, while their numerical simulations are usually time-consuming to capture the underlying multiscale features. Although heterogeneous accelerated computing is significantly beneficial for large-scale simulations of these flows, effective utilization of various heterogeneous accelerators with different architectures and programming models in the market remains a challenge. To address this, we develop XFluids by SYCL, to perform acceleration directly targeted to different devices, without translating any source code. A variety of optimization techniques have been proposed to increase the computational performance of XFluids, including adaptive range assignment, partial eigensystem reconstruction, hotspot device function optimizations, etc. This solver has been open-sourced, and tested on multiple GPUs from different mainstream vendors, indicating high portability. Through various benchmark cases, the accuracy of XFluids is demonstrated, with approximately no efficiency loss compared to existing GPU programming models, such as CUDA and HIP. In addition, the MPI library is used to extend the solver to multi-GPU platforms, with the GPU-enabled MPI supported. With this, the weak scaling of XFluids for multi-GPU devices is larger than 95% for 1024 GPUs. Finally, we simulate both the inert and reactive multicomponent shock-bubble interaction problems with high-resolution meshes, to investigate the reacting effects on the mixing, vortex stretching, and shape deformation of the bubble evolution.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。