arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1607.03884physics.comp-phcs.DCphysics.chem-ph
收藏

基于GPU的刚性化学动力学积分方法研究

An investigation of GPU-based stiff chemical kinetics integration methods

Nicholas J. Curtis, Kyle E. Niemeyer, Chih-Jen Sung

摘要:

五阶隐式Runge-Kutta方法和两个配备Krylov子空间近似的四阶指数积分方法在GPU上实现,并与分析化学动力学Jacobian软件pyJac配对。每种算法的性能进行了评估,通过整合随机部分搅拌反应器模拟采样的热化学状态数据,并与常用的基于CPU的隐式积分器CVODE。我们估计,在单个GPU上运行的隐式Runge-Kutta方法相当于在12-38个CPU内核上运行的CVODE,用于将单个全局积分时间步长为1 e-6 s与氢和甲烷模型进行积分。在研究的最严格的情况下--甲烷模型,全局积分时间步长为1 e-4 s--线程发散和更高的内存流量显着降低GPU的性能相当于CVODE运行在大约三个CPU内核。在CPU和GPU上,指数积分算法比隐式积分器执行得更慢。线程发散和内存流量被确定为GPU集成器性能的主要限制因素,并讨论了缓解这些问题的技术。在GPU上使用有限差分雅可比矩阵(代替pyJac提供的分析雅可比矩阵)由于线程发散而大大降低了积分器性能,导致最大减速7.11-240.96倍;相比之下,CPU上相应的减速仅为1.39-2.61倍,强调了使用分析雅可比矩阵进行高效GPU集成的重要性。最后,通过GPU \slash SIMD加速刚性化学动力学集成,确定了未来的研究方向,使现实的化学反应流模拟。

英文摘要:

A fifth-order implicit Runge-Kutta method and two fourth-order exponential integration methods equipped with Krylov subspace approximations were implemented for the GPU and paired with the analytical chemical kinetic Jacobian software pyJac. The performance of each algorithm was evaluated by integrating thermochemical state data sampled from stochastic partially stirred reactor simulations and compared with the commonly used CPU-based implicit integrator CVODE. We estimated that the implicit Runge-Kutta method running on a single GPU is equivalent to CVODE running on 12-38 CPU cores for integration of a single global integration time step of 1e-6 s with hydrogen and methane models. In the stiffest case studied---the methane model with a global integration time step of 1e-4 s---thread divergence and higher memory traffic significantly decreased GPU performance to the equivalent of CVODE running on approximately three CPU cores. The exponential integration algorithms performed more slowly than the implicit integrators on both the CPU and GPU. Thread divergence and memory traffic were identified as the main limiters of GPU integrator performance, and techniques to mitigate these issues were discussed. Use of a finite-difference Jacobian on the GPU---in place of the analytical Jacobian provided by pyJac---greatly decreased integrator performance due to thread divergence, resulting in maximum slowdowns of 7.11-240.96 times; in comparison, the corresponding slowdowns on the CPU were just 1.39-2.61 times, underscoring the importance of use of an analytical Jacobian for efficient GPU integration. Finally, future research directions for working towards enabling realistic chemistry in reactive-flow simulations via GPU\slash SIMD accelerated stiff chemical kinetic integration were identified.

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

↑