arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.15634cs.DCphysics.comp-phphysics.geo-ph
收藏

Julia中的高性能xPU模板计算

High-performance xPU Stencil Computations in Julia

Samuel Omlin, Ludovic Räss

摘要:

我们提出了一种高效的方法,用于在Julia中编写与架构无关的并行高性能模板计算,该方法在包中实例化。强大的元编程、低成本的抽象和多分派功能使您能够编写单个代码,既适合在单个CPU线程上进行生产性原型设计,又适合在多GPU或CPU工作站或超级计算机上进行生产运行。我们展示了接近GPU上的3-D热扩散求解器的理论上限的性能,这是一个巨大的改进与CUDA.jl数组编程的可达性能。

英文摘要:

We present an efficient approach for writing architecture-agnostic parallel high-performance stencil computations in Julia, which is instantiated in the package ParallelStencil.jl. Powerful metaprogramming, costless abstractions and multiple dispatch enable writing a single code that is suitable for both productive prototyping on a single CPU thread and production runs on multi-GPU or CPU workstations or supercomputers. We demonstrate performance close to the theoretical upper bound on GPUs for a 3-D heat diffusion solver, which is a massive improvement over reachable performance with CUDA.jl Array programming.

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

↑