Loop optimization for a class of memory-constrained computations
Daniel Cociorva, John W. Wilkins, C. Lam et al. · International Conference on Supercomputing · 2001
Compute-intensive multi-dimensional summations that involve products of several arrays arise in the modeling of electronic structure of materials. Sometimes several alternative formulations of a computation, representing different space-time trade-offs, are possible. By computing and storing some intermediate arrays, reduction of the number of arithmetic operations is possible, but the size of intermediate temporary arrays may be prohibitively large. Loop fusion can be applied to reduce memory requirements, but that could impede effective tiling to minimize memory access costs. This paper develops an integrated model combining loop tiling for enhancing data reuse, and loop fusion for reduction of memory for intermediate temporary arrays. An algorithm is presented that addresses the selection of tile sizes and choice of loops for fusion, with the objective of minimizing cache misses while keeping the total memory usage within a given limit. Experimental results are reported that demonstrate the effectiveness of the combined loop tiling and fusion transformations performed by using the developed framework.
Cited by 33 works. doi:10.1145/377792.377814
Authors
References
- General atomic and molecular electronic structure system
- Electron correlation in semiconductors and insulators: Band gaps and quasiparticle energies
- Exploring chemistry with electronic structure methods
- Encyclopedia of Computational Chemistry
- A data locality optimizing algorithm
- The cache performance and optimizations of blocked algorithms
- High-Performance Compilers for Parallel Computing
- Encyclopedia of Computational Chemistry
- Quantum Mechanical Electronic Structure Calculations with Chemical Accuracy
- Improving data locality with loop transformations