Tuning blocked array layouts to exploit memory hierarchy in SMT architectures

  • Authors:
  • Evangelia Athanasaki;Kornilios Kourtis;Nikos Anastopoulos;Nectarios Koziris

  • Affiliations:
  • School of Electrical and Computer Engineering, Computing Systems Laboratory, National Technical University of Athens;School of Electrical and Computer Engineering, Computing Systems Laboratory, National Technical University of Athens;School of Electrical and Computer Engineering, Computing Systems Laboratory, National Technical University of Athens;School of Electrical and Computer Engineering, Computing Systems Laboratory, National Technical University of Athens

  • Venue:
  • PCI'05 Proceedings of the 10th Panhellenic conference on Advances in Informatics
  • Year:
  • 2005

Quantified Score

Hi-index 0.00

Visualization

Abstract

Cache misses form a major bottleneck for memory-intensive applications, due to the significant latency of main memory accesses. Loop tiling, in conjunction with other program transformations, have been shown to be an effective approach to improving locality and cache exploitation, especially for dense matrix scientific computations. Beyond loop nest optimizations, data transformation techniques, and in particular blocked data layouts, have been used to boost the cache performance. The stability of performance improvements achieved are heavily dependent on the appropriate selection of tile sizes. In this paper, we investigate the memory performance of blocked data layouts, and provide a theoretical analysis for the multiple levels of memory hierarchy, when they are organized in a set associative fashion. According to this analysis, the optimal tile size that maximizes L1 cache utilization, should completely fit in the L1 cache, even for loop bodies that access more than just one array. Increased self- or/and cross-interference misses can be tolerated through prefetching. Such larger tiles also reduce mispredicted branches and, as a result, the lost CPU cycles that arise. Results are validated through actual benchmarks on an SMT platform.