Related Experiment Video
Updated: Jul 4, 2025

Computation of Atmospheric Concentrations of Molecular Clusters from ab initio Thermochemistry
Published on: April 8, 2020
Accelerating Pythonic Coupled-Cluster Implementations: A Comparison Between CPUs and GPUs
Maximilian H Kriebel1, Paweł Tecmer1, Marta Gałyńska1
1Institute of Physics, Faculty of Physics, Astronomy, and Informatics, Nicolaus Copernicus University in Toruń, Grudziadzka 5, 87-100 Toruń, Poland.
This study benchmarks Python routines for tensor contractions, accelerating coupled-cluster calculations using GPUs. CuPy on GPUs offers a 10-16x speed-up for tensor operations and a 3-4x speed-up for hybrid CPU-GPU implementations.
Area of Science:
- Computational Chemistry
- High-Performance Computing
- Scientific Software Development
Background:
- Coupled-cluster (CC) methods are essential for accurate quantum chemistry simulations.
- Efficient tensor contraction is a major bottleneck in CC implementations.
- Leveraging Graphics Processing Units (GPUs) can significantly accelerate these computations.
Purpose of the Study:
- To benchmark Python routines for tensor contraction efficiency.
- To identify optimal tensor operations for coupled-cluster (CC) implementations.
- To accelerate bottleneck tensor operations using GPUs.
Main Methods:
- Benchmarking Python routines for time and memory requirements.
- Utilizing NVIDIA GPUs with the Compute Unified Device Architecture (CUDA) API and CuPy library.
- Implementing batch-wise GPU calculations due to memory limitations.
- Comparing CPU-only and CPU-GPU hybrid implementations.
Main Results:
- CuPy implementation achieved a 10-16x speed-up for bottleneck tensor contractions compared to 36 CPU cores.
- Hybrid CPU-GPU implementations showed a 3-4x speed-up over CPU-only calculations for CCSD and pCCD-LCCSD.
- Identified optimal tensor contraction strategies for GPU acceleration.
Conclusions:
- GPU acceleration using CuPy significantly enhances the performance of Pythonic coupled-cluster calculations.
- Batch-wise processing is a viable strategy to overcome GPU memory limitations.
- Hybrid CPU-GPU approaches offer substantial speed-ups for quantum chemistry simulations.
Related Concept Videos
Parallel Processing
Distribution of Molecular Speeds
Ampere-Maxwell's Law: Problem-Solving
To solve the problem, we can use the equations from the analysis of an RC circuit and Maxwell's version of Ampère's law.
For the first part of...
Maxwell-Boltzmann Distribution: Problem Solving
This distribution function f(v) is defined by saying that the expected number N (v1,v2) of particles with speeds between v1 and v2 is given by
Molecular Comparison of Gases, Liquids, and Solids
Pharmacokinetic Models: Comparison and Selection Criterion
Physiological models take a detailed approach by considering specific molecular processes. They can predict drug distribution, metabolism, and elimination changes, providing a comprehensive understanding of how drugs interact with the body.

