Abstract

A new library called libreta for the evaluation of electron repulsion integrals (ERIs) over segmented and contracted Gaussian functions is developed. Our libreta is optimized from three aspects: (1) The Obara-Saika, Dupuis-Rys-King, and McMurchie-Davidson method are all employed. The recurrence relations involved are optimized by tree-search for each combination of angular momenta, and in the best case, 50% of the intermediates can be eliminated to reduce the computational cost. (2) The optimized codes for recurrence relations are combined with different contraction orders, each of which is suitable for ERIs of different angular momenta and contraction patterns. In practice, libreta will determine and use the best scheme to evaluate each ERI. (3) libreta is also optimized at the coding level. For example, with common subexpression elimination and local memory access, the performance can be increased by about 6% and 20%, respectively. The performance was compared with libint2. For both popular segmented and contracted basis sets, libreta can be faster than libint2 by 7.2-912.0%. For basis sets of heavy elements that contain Gaussian basis functions of large contraction degrees, the performance can be increased 20-30 times. We also tested the performance of libreta in direct self-consistent field (SCF) calculations and compared it with NWChem. In most cases, the average time for one SCF iteration by libreta is less than NWChem by 144.2-495.9%. Finally, we discuss the origin of redundancies occurring in the recurrence relations and derive an upper bound of the least number of intermediates required to be calculated in a McMurchie-Davidson recurrence, which is confirmed by ours as well as previous authors' results. We expect that libreta can become a useful tool for theoretical and computational chemists to develop their own algorithms rapidly.

Full Text
Published version (Free)

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call