Publication Cover
Molecular Physics
An International Journal at the Interface Between Chemistry and Physics
Volume 104, 2006 - Issue 2
443
Views
101
CrossRef citations to date
0
Altmetric
Original Articles

Automatic code generation for many-body electronic structure methods: the tensor contraction engineFootnote‡‡

, , , , , , , , , , , , , , , & show all
Pages 211-228 | Received 01 Nov 2004, Accepted 11 Dec 2005, Published online: 30 Aug 2006
 

Abstract

As both electronic structure methods and the computers on which they are run become increasingly complex, the task of producing robust, reliable, high-performance implementations of methods at a rapid pace becomes increasingly daunting. In this paper we present an overview of the Tensor Contraction Engine (TCE), a unique effort to address issues of both productivity and performance through automatic code generation. The TCE is designed to take equations for many-body methods in a convenient high-level form and acts like an optimizing compiler, producing an implementation tuned to the target computer system and even to the specific chemical problem of interest. We provide examples to illustrate the TCE approach, including the ability to target different parallel programming models, and the effects of particular optimizations.

Acknowledgements

We gratefully acknowledge the many contributions of So Hirata (PNNL) to the development of the TCE, including innumerable discussions as well as the original development of the p-TCE.

This work has been supported in part (1) by the National Science Foundation, grants CHE-0121676, CHE-0121706, CCR-0073800 and EIA-9986052; (2) by the Laboratory Directed Research and Development Program of Oak Ridge National Laboratory (ORNL), managed by UT-Battelle, LLC for the US Dept. of Energy under contract DE-AC-05-00OR22725; and (3) by Discovery Grant 262942-03 from the Natural Sciences and Engineering Research Counsel of Canada (NSERC).

This research was performed in part using the Molecular Science Computing Facility in the William R. Wiley Environmental Molecular Sciences Laboratory, a national scientific user facility sponsored by the U.S. Department of Energy's Office of Biological and Environmental Research and located at the Pacific Northwest National Laboratory. PNNL is operated for the Department of Energy by Battelle.

Notes

‡‡This paper is dedicated to Prof Rodney J. Bartlett on the occasion of his 60th birthday.

†Since spatial and permutational symmetry are not yet modeled in the o-TCE, the data presented here is for fully dense tensors, but the optimization approach is expected to be similarly effective for the computations that exploit symmetry.

†We attribute the “super-linear” speedup observed here (4.2 vs 4.0 ideal) to the fact that the speedup computation is referenced to the four-processor time (the smallest configuration on which the calculation could be run) instead of the usual single-processor time.

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.