Skip to main content
QUICK REVIEW

[Paper Review] BoxLib with Tiling: An AMR Software Framework

Weiqun Zhang, Ann Almgren|arXiv (Cornell University)|Apr 12, 2016
Advanced Data Storage TechnologiesComputer Science30 references8 citations
TL;DR

This paper presents BoxLib with Tiling, a block-structured adaptive mesh refinement (AMR) framework that integrates tiling at the framework level to improve data locality and thread-level parallelism on many-core, NUMA-aware architectures. By embedding tiling constructs directly into BoxLib's iterator system, application developers achieve significant performance gains—up to 92x speedup over single-threaded, untiled execution—without modifying application code, enabling efficient scaling on modern and future high-performance computing systems.

ABSTRACT

In this paper we introduce a block-structured adaptive mesh refinement (AMR) software framework that incorporates tiling, a well-known loop transformation. Because the multiscale, multiphysics codes built in BoxLib are designed to solve complex systems at high resolution, performance on current and next generation architectures is essential. With the expectation of many more cores per node on next generation architectures, the ability to effectively utilize threads within a node is essential, and the current model for parallelization will not be sufficient. We describe a new version of BoxLib in which the tiling constructs are embedded so that BoxLib-based applications can easily realize expected performance gains without extra effort on the part of the application developer. We also discuss a path forward to enable future versions of BoxLib to take advantage of NUMA-aware optimizations using the TiDA portable library.

Motivation & Objective

  • Address performance bottlenecks in AMR simulations on next-generation many-core, NUMA-architected systems.
  • Overcome limitations of fine-grained loop-level threading in AMR due to irregular memory access and high cache miss rates.
  • Reduce developer burden by embedding tiling transformations within the BoxLib framework rather than requiring manual application-level implementation.
  • Enable future support for NUMA-aware optimizations through integration with the TiDA portable library.
  • Improve data locality and thread-level parallelism to maximize performance on systems with hundreds or thousands of cores.

Proposed method

  • Integrate tiling as a first-class construct within BoxLib’s iterator abstraction, replacing manual loop-level threading.
  • Apply multi-dimensional tiling to partition the iteration space and reduce working set size per thread, improving cache utilization.
  • Use coarse-grained tile-level threading instead of fine-grained loop-level threading to reduce thread overhead and improve load balancing.
  • Leverage the TiDA library for future NUMA-aware optimizations, enabling region-based tiling that maps data and computation to local memory domains.
  • Design the framework to support both logical tiling (data partitioning) and regional tiling (NUMA-aware memory layout) transparently.
  • Evaluate performance on Intel KNC and Trestles systems using SMC and other BoxLib-based codes under strong scaling workloads.

Experimental results

Research questions

  • RQ1How can tiling be effectively integrated into a block-structured AMR framework like BoxLib to improve performance on many-core architectures?
  • RQ2What performance gains can be achieved by replacing fine-grained loop-level threading with coarse-grained tile-level threading in BoxLib-based applications?
  • RQ3To what extent does tiling improve data locality and reduce memory bandwidth pressure in AMR simulations with irregular memory access patterns?
  • RQ4Can region-based tiling mitigate NUMA effects in future high-core-count systems, and how does it compare to logical tiling in practice?
  • RQ5How does the integration of the TiDA library enable portable, NUMA-aware tiling without requiring application-level changes?

Key findings

  • The 180-thread tiled run of the SMC code achieved a 92x speedup over the single-threaded untiled run, demonstrating significant performance gains.
  • The best tiled run was 2.4 times faster than the best untiled run, confirming that tiling improves performance even with the same number of threads.
  • On a 60-core Intel KNC system, the tiled version scaled efficiently with 86x speedup from one to 180 threads.
  • With 32 cores across 8 NUMA domains on Trestles, regional tiling achieved 32x speedup over one thread, outperforming logical tiling as the number of NUMA domains increased.
  • Regional tiling reduced remote memory access latency by allocating entire regions to specific NUMA nodes, improving bandwidth and amortizing communication costs.
  • The prototype implementation shows that NUMA-aware tiling can significantly reduce performance penalties in large-scale, many-core systems with complex memory hierarchies.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.