Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2021 Feb 7;154(5):054112.
doi: 10.1063/5.0040966.

A compression strategy for particle mesh Ewald theory

Affiliations

A compression strategy for particle mesh Ewald theory

Andrew C Simmonett et al. J Chem Phys. .

Abstract

Particle Mesh Ewald (PME) has become a standard method for treating long-range electrostatics in molecular simulations. Although the method has inferior asymptotic computational complexity to its linear scaling competitors, it remains enormously popular due to its high efficiency, which stems from the use of fast Fourier transforms (FFTs). This use of FFTs provides great challenges for scaling the method up to massively parallel systems, in large part because of the need to transfer large amounts of data. In this work, we demonstrate that this data transfer volume can be greatly reduced as a natural consequence of the structure of the PME equations. We also suggest an alternative algorithm that supplants the FFT with a linear algebra approach, which further decreases communication costs at the expense of increased asymptotic computational complexity. This linear algebra based approach is demonstrated to have great potential for latency hiding by interleaving communication and computation steps of the short- and long-range electrostatic terms.

PubMed Disclaimer

Figures

FIG. 1.
FIG. 1.
The grid dimension N1(=N2 = N3) required in conventional PME to achieve a given force error and corresponding K1(=K2 = K3) required in reciprocal space to achieve the same rms force error when using N1 for the real space grid and a B-spline order of 4. The compression ratio (black dashed line) is defined as the ratio of the corresponding data volumes; see text for details.
FIG. 2.
FIG. 2.
The grid dimension N1(=N2 = N3) required in conventional PME to achieve a given force error, and corresponding K1(=K2 = K3) required in reciprocal space to achieve the same rms force error when using N1 for the real space grid and a B-spline order of 8. The compression ratio (black dashed line) is defined as the ratio of the corresponding data volumes; see text for details.
FIG. 3.
FIG. 3.
Schematic 2D representation of the data held by each of the four nodes at each stage of the reciprocal space parallel communication scheme. (a) The real space potential grid, including halo regions. (b) After FFT of local data, to get each node’s partial contribution (indicated by the stripe pattern) to the structure factor. (c) After Reduce_scatter_block of the individual node contributions. (d) After convolution of local data with Eq. (4). (e) After Allgather communication of the convolved grid. (f) Inverse FFT to generate local potential grid, including halo regions.
FIG. 4.
FIG. 4.
Overview of the linear algebra based cPME algorithm detailed in the main text. Shaded boxes depict steps that are dominated by communication steps, and the complementary nature of the direct and reciprocal steps offers great potential for overlapping computation and communication.

References

    1. Sagui C. and Darden T. A., Annu. Rev. Biophys. Biomol. Struct. 28, 155 (1999).10.1146/annurev.biophys.28.1.155 - DOI - PubMed
    1. Cisneros G. A., Karttunen M., Ren P., and Sagui C., Chem. Rev. 114, 779 (2014).10.1021/cr300461d - DOI - PMC - PubMed
    1. Ewald P. P., Ann. Phys. 369, 253 (1921).10.1002/andp.19213690304 - DOI
    1. Brandt A. and Lubrecht A. A., J. Comput. Phys. 90, 348 (1990).10.1016/0021-9991(90)90171-v - DOI
    1. Sagui C. and Darden T., J. Chem. Phys. 114, 6578 (2001).10.1063/1.1352646 - DOI