New algorithm for tensor contractions on multi-core CPUs, GPUs, and accelerators enables CCSD and EOM-CCSD calculations with over 1000 basis functions on a single compute node

I. Kaliman and A.I. Krylov
J. Comp. Chem. 38, 842 – 853 (2017)

A new hardware-agnostic contraction algorithm for tensors of arbitrary symmetry and sparsity is presented. The algorithm is implemented as a stand-alone open-source code libxm. This code is also integrated with general tensor library libtensor and with the Q-Chem quantum-chemistry package. An overview of the algorithm, its implementation, and benchmarks are presented. Similarly to other tensor software, the algorithm exploits efficient matrix multiplication libraries and assumes that tensors are stored in a block-tensor form. The distinguishing features of the algorithm are: (i) efficient repackaging of the individual blocks into large matrices and back, which affords efficient GPU-enabled calculations without modifications of higher-level codes; (ii) fully asynchronous data transfer between slow and fast memory. The algorithm enables canonical all-electron coupled-cluster and equation-of-motion coupled-cluster calculations with single and double substitutions (CCSD and EOM-CCSD) with over 1,000 basis functions on a single quad-GPU machine. We show that the algorithm achieves best theoretically possible scaling for the CCSD calculations, O(N6), irrespective of the data size on disk.

Download this paper (PDF)

Related Research

EOM-CC methods