Generating Efficient Quantum Chemistry Codes for Novel Architectures

被引:330
作者
Titov, Alexey V. [1 ,2 ,3 ]
Ufimtsev, Ivan S. [2 ,3 ]
Luehr, Nathan [2 ,3 ]
Martinez, Todd J. [2 ,3 ]
机构
[1] Univ Illinois, Natl Ctr Supercomp Applicat, Urbana, IL 61801 USA
[2] Stanford Univ, Dept Chem, Stanford, CA 94305 USA
[3] Stanford Univ, PULSE Inst, Stanford, CA 94305 USA
关键词
GRAPHICAL PROCESSING UNITS; 2-ELECTRON INTEGRALS; ELECTRON; COMPUTATION; PRECISION;
D O I
10.1021/ct300321a
中图分类号
O64 [物理化学(理论化学)、化学物理学];
学科分类号
070304 ; 081704 ;
摘要
We describe an extension of our graphics processing unit (GPU) electronic structure program TeraChem to include atom-centered Gaussian basis sets with d angular momentum functions. This was made possible by a meta-programming" strategy that leverages computer algebra systems for the derivation of equations and their transformation to correct code. We generate a multitude of code fragments that are formally mathematically equivalent, but differ in their memory and floating-point operation footprints. We then select between different code fragments using empirical testing to find the highest performing code variant. This leads to an optimal balance of floating-point operations and memory bandwidth for a given target architecture without laborious manual tuning. We show that this approach is capable of similar performance compared to our hand-tuned GPU kernels for basis sets with s and p angular momenta. We also demonstrate that mixed precision schemes (using both single and double precision) remain stable and accurate for molecules with d functions. We provide benchmarks of the execution time of entire self consistent field (SCF) calculations using our GPU code and compare to mature CPU based codes, showing the benefits of the GPU architecture for electronic structure theory with appropriately redesigned algorithms. We suggest that the meta-programming and empirical performance optimization approach may be important in future computational chemistry applications, especially in the face of quickly evolving computer architectures.
引用
收藏
页码:213 / 221
页数:9
相关论文
共 58 条
[51]   INTEGRAL APPROXIMATIONS FOR LCAO-SCF CALCULATIONS [J].
VAHTRAS, O ;
ALMLOF, J ;
FEYEREISEN, MW .
CHEMICAL PHYSICS LETTERS, 1993, 213 (5-6) :514-518
[52]   Accelerating resolution-of-the-identity second-order Moller-Plesset quantum chemistry calculations with graphical processing units [J].
Vogt, Leslie ;
Olivares-Amaya, Roberto ;
Kermes, Sean ;
Shao, Yihan ;
Amador-Bedolla, Carlos ;
Aspuru-Guzik, Alan .
JOURNAL OF PHYSICAL CHEMISTRY A, 2008, 112 (10) :2049-2057
[53]  
Volkov V, 2010, P GPU TECHN C SAN JO
[54]   Fast linear scaling second-order Moller-Plesset perturbation theory (MP2) using local and density fitting approximations [J].
Werner, HJ ;
Manby, FR ;
Knowles, PJ .
JOURNAL OF CHEMICAL PHYSICS, 2003, 118 (18) :8149-8160
[55]  
Whaley RC, 2001, PARALLEL COMPUT, V27, P3, DOI 10.1016/S0167-8191(00)00087-9
[56]   A J matrix engine for density functional theory calculations [J].
White, CA ;
HeadGordon, M .
JOURNAL OF CHEMICAL PHYSICS, 1996, 104 (07) :2620-2629
[57]   Accelerating density functional calculations with graphics processing unit [J].
Yasuda, Koji .
JOURNAL OF CHEMICAL THEORY AND COMPUTATION, 2008, 4 (08) :1230-1236
[58]   Two-electron integral evaluation on the graphics processor unit [J].
Yasuda, Koji .
JOURNAL OF COMPUTATIONAL CHEMISTRY, 2008, 29 (03) :334-342