WaterLily.jl:一个在 Julia 中具有快速异构执行能力的可微流体模拟器
WaterLily.jl: A differentiable fluid simulator in Julia with fast heterogeneous execution
AI总结:
WaterLily.jl 是一个用 Julia 编写的开源可微流体求解器,通过自动微分和 CPU/GPU 异构执行实现与 Fortran 相当的性能,旨在将 CFD 与机器学习框架高效集成。
摘要:
将计算流体动力学(CFD)软件集成到优化和机器学习框架中,受到经典计算语言的僵化性以及更灵活的高级语言性能缓慢的阻碍。WaterLily.jl 是一个用 Julia 语言编写的开源不可压缩粘性流动求解器。其小型代码库具有多维、多平台和后端无关的特点(支持串行 CPU、多线程和 GPU 执行)。该模拟器是可微的,并在内部使用自动微分来浸入固体几何形状并优化压力求解器。在 CPU 上,每个时间步的计算时间与自由度数成线性关系,而使用 CUDA 内核时我们观察到高达 182 倍的加速。这使得在许多研究规模的问题上,其性能可与 Fortran 求解器相媲美,为机器学习研究前沿开辟了令人兴奋的潜在未来应用。
英文摘要:
Integrating computational fluid dynamics (CFD) software into optimization and machine-learning frameworks is hampered by the rigidity of classic computational languages and the slow performance of more flexible high-level languages. WaterLily.jl is an open-source incompressible viscous flow solver written in the Julia language. The small code base is multi-dimensional, multi-platform and backend-agnostic (serial CPU, multi-threaded, & GPU execution). The simulator is differentiable and uses automatic-differentiation internally to immerse solid geometries and optimize the pressure solver. The computational time per time step scales linearly with the number of degrees of freedom on CPUs, and we see up to a 182x speed-up using CUDA kernels. This leads to comparable performance with Fortran solvers on many research-scale problems opening up exciting possible future applications on the cutting edge of machine-learning research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。