English

High-performance xPU Stencil Computations in Julia

Distributed, Parallel, and Cluster Computing 2022-12-01 v1 Computational Physics Geophysics

Abstract

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.

Keywords

Cite

@article{arxiv.2211.15634,
  title  = {High-performance xPU Stencil Computations in Julia},
  author = {Samuel Omlin and Ludovic Räss},
  journal= {arXiv preprint arXiv:2211.15634},
  year   = {2022}
}

Comments

submitted to JuliaCon Proceedings 2022

R2 v1 2026-06-28T07:15:29.362Z