Skip to main content

Research Repository

Advanced Search

Hardware-aware block size tailoring on adaptive spacetree grids for shallow water waves

Weinzierl, Tobias; Wittmann, Roland; Unterweger, Kristof; Bader, Michael; Breuer, Alexander; Rettenberger, Sebastian

Hardware-aware block size tailoring on adaptive spacetree grids for shallow water waves Thumbnail


Authors

Roland Wittmann

Kristof Unterweger

Michael Bader

Alexander Breuer

Sebastian Rettenberger



Contributors

Armin Größlinger
Editor

Harald Köstler
Editor

Abstract

Spacetrees are a popular formalism to describe dynamically adaptive Cartesian grids. Though they directly yield an adaptive spatial discretisation, i.e. a mesh, it is often more efficient to augment them by regular Cartesian blocks embedded into the spacetree leaves. This facilitates stencil kernels working efficiently on homogeneous data chunks. The choice of a proper block size, however, is delicate. While large block sizes foster simple loop parallelism, vectorisation, and lead to branch-free compute kernels, they bring along disadvantages. Large blocks restrict the granularity of adaptivity and hence increase the memory footprint and lower the numerical-accuracy-per-byte efficiency. Large block sizes also reduce the block-level concurrency that can be used for dynamic load balancing. In the present paper, we therefore propose a spacetree-block coupling that can dynamically tailor the block size to the compute characteristics. For that purpose, we allow different block sizes per spacetree node. Groups of blocks of the same size are identied automatically throughout the simulation iterations, and a predictor function triggers the replacement of these blocks by one huge, regularly rened block. This predictor can pick up hardware characteristics while the dynamic adaptivity of the fine grid mesh is not constrained. We study such characteristics with a state-of-the-art shallow water solver and examine proper block size choices on AMD Bulldozer and Intel Sandy Bridge processors.

Citation

Weinzierl, T., Wittmann, R., Unterweger, K., Bader, M., Breuer, A., & Rettenberger, S. (2014). Hardware-aware block size tailoring on adaptive spacetree grids for shallow water waves. In A. Größlinger, & H. Köstler (Eds.), HiStencils 2014 - Proceedings of the 1st international workshop on high-performance stencil computations (57-64)

Presentation Conference Type Conference Paper (Published)
Conference Name HiStencils 2014 - 1st International Workshop on High-Performance Stencil Computations
Publication Date Jan 21, 2014
Deposit Date Dec 18, 2013
Publicly Available Date Feb 27, 2014
Pages 57-64
Series Title HiPEAC
Book Title HiStencils 2014 - Proceedings of the 1st international workshop on high-performance stencil computations.
Public URL https://durham-repository.worktribe.com/output/1155881
Publisher URL http://www.exastencils.org/histencils/

Files






You might also like



Downloadable Citations