English

Coloured and task-based stencil codes

Mathematical Software 2018-10-10 v1

Abstract

Simple stencil codes are and remain an important building block in scientific computing. On shared memory nodes, they are traditionally parallelised through colouring or (recursive) tiling. New OpenMP versions alternatively allow users to specify data dependencies explicitly and to outsource the decision how to distribute the work to the runtime system. We evaluate traditional multithreading strategies on both Broadwell and KNL, study the arising assignment of tasks to threads and, from there, derive two efficient ways to parallelise stencil codes on regular Cartesian grids that fuse colouring and task-based approaches.

Keywords

Cite

@article{arxiv.1810.04033,
  title  = {Coloured and task-based stencil codes},
  author = {Benjamin Hazelwood and Tobias Weinzierl},
  journal= {arXiv preprint arXiv:1810.04033},
  year   = {2018}
}

Comments

10 pages

R2 v1 2026-06-23T04:33:34.340Z