arXiv:2611.03892physics.chem-phNov 2026

Manuscript Offprint

arXiv:2611.03892

Isothermal-Isobaric Molecular Dynamics with a Foundation Interatomic Potential in LAMMPS across NVIDIA and Intel GPUs

Xiaoli Yan, Eliu Huerta

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Xiaoli Yan, Eliu Huerta

Argonne National Laboratory

Lemont, IL, United States

xyan11@anl.gov, elihu@anl.gov

Abstract—Foundation machine-learning interatomic potentials (MLIPs) offer one model for many chemistries, but their deep, globally coupled architectures do not fit the spatial decomposition that scales classical and short-ranged MLIPs. We present pair_style uma, a LAMMPS pair style that evaluates the Universal Model for Atoms (UMA) through LibTorch on NVIDIA and Intel GPUs from a single source tree. It reimplements FairChem's edge-sharded graph parallelism in C++ over exported TorchScript modules, with one MPI rank per device, NCCL or oneCCL collectives, and the whole energy and force path in double precision. The strain-gradient virial is carried through the exported modules and the cross-device reductions, so that fix npt runs on both vendors' hardware.

We measure NPT capacity and cost on one 4×A100-40GB node, one 8×H200 node, and one 12-tile Intel node, and on up to 32 Intel nodes. Without activation checkpointing, one node holds NaCl cells of about 8,000 atoms (A100, 0.21 ns/day), 22,000 atoms (Intel, 0.10 ns/day), and 47,000 atoms (H200, 0.16 ns/day). Graph parallelism raises the capacity of a single device by 8.0× on H200 and 4.6× on A100. Across nodes, capacity grows to about 779,000 atoms on 32 Intel nodes, but speed does not: the rate falls to 0.007 ns/day, because extra nodes add memory rather than shorten the step. The virial adds about 0.2% per step over NVT. On H200 and A100, a FLOP count of FairChem's graph-parallel predictor gives lower bounds of 31% and 51% of FP64 peak.

Forces agree with an ASE FairChem reference to ~ 10⁻¹⁴ eV/Å, and thermodynamic output agrees across all device counts that fit on each GPU type; FairChem's fix external wrapper, which passes single-precision coordinates, deviates by 10⁻⁶–10⁻⁵ eV/Å. From one omat checkpoint and with no refit, nine 100 ps NPT heating ramps (NaCl, equiatomic Pt-Ru, and equiatomic (HfNbTaTiZr)N, on all three node types) ran to completion.

Index Terms—molecular dynamics, machine-learning interatomic potentials, foundation models, LAMMPS, graph parallelism, GPU, Intel XPU, NPT, CUDA, double precision

I. INTRODUCTION

Foundation machine-learning interatomic potentials (MLIPs) trained on hundreds of millions of structures [1] occupy a different point in the parallel design space from the short-ranged potentials that weak-scale to a full machine. A single Universal Model for Atoms (UMA) checkpoint, with task heads for materials (omat), catalysis (oc20), etc., models chemistries that lack a transferable classical interatomic potential; that transferrability costs the locality

multi-node parallelism needs. UMA stacks four message-passing blocks at a 6 Å cutoff [1], [8], a ~24 Å receptive field, and two global couplings: channel balancing [8] and the mixture-of-linear-experts (MoLE) routing [1]. A correct spatial halo is four shells deep, not one pair cutoff. At the cell sizes this ensemble can hold, even one shell is comparable to the owned subdomain (Sec. VI-B), so a spatial split leaves the halo as large as the work it surrounds. What remains correct without model surgery is graph parallelism, which keeps the configuration global and shards only the edges. Every block then gathers the full node-feature tensor, so communication is O(N)O(N) per layer and per-device node memory is O(N)O(N) independent of world size. Both properties are acceptable inside a node, but they tend to slow down performance when internode communication happens: more nodes no longer means better simulation performance. (Sec. VI-B). One node is therefore the unit of speed for this model class, and further nodes provide capacity. The systems question is how to put that evaluation inside the Large-scale Atomic/Molecular Massively Parallel Simulator (LAMMPS) [5] so that microcanonical (NVE), canonical (NVT), and especially isothermal-isobaric (NPT) simulations run on the NVIDIA and Intel data-center GPUs already installed in high-performance computing (HPC) centers.

The distinction that matters in this systems paper is between an ad hoc and a foundation potential. The million- and billion-atom MLIP results that define the current scaling frontier were all obtained with a potential trained for one system: Spectral Neighbor Analysis Potential (SNAP) [14] for carbon at 20 billion atoms [2], Deep Potential for copper and water at 100 million [3], Allegro for one solvated biomolecular assembly at 44 million [4]. Each is short-ranged and locally decomposable by construction, which is precisely why it weak-scales to a full machine; the cost is a training campaign per chemistry. We use transferable in the strict sense: a potential is transferable if changing the chemical elements or composition requires no new parameter fit or retraining. By that measure the established approaches fail: classical embedded-atom [15], polarizable-ion and fixed-charge force fields, and ad hoc per-system MLIPs alike, all refit per chemistry. UMA takes the opposite position. One checkpoint, selected at export to a task head, evaluates forces across molecules, materials and catalysis, and the released model matches or beats specialized models without fine-tuning [1]. For the demonstration workload in this paper (heating ramps of NaCl, equiatomic Pt–Ru, and equiatomic (HfNbTaTiZr)N from one omat checkpoint), a classical potential would need three separately parameterized tables for a salt, a binary alloy, and a five-cation nitride, whereas one foundation model runs all three.

Three constraints then dominate the design.

First, parallelism here pools memory rather than providing speed. Edge sharding across the devices of one node raises the largest cell that fits.

A second node does not shorten the step: per-rank node-feature work stays O(N)O(N), and the node-boundary cost itself is ∼2%\sim2\% of the NPT step (Sec. VI-B). Capacity grows by about 23 thousand atoms per node, but the step time grows with the cell. The remaining multi-node axis is data parallelism over independent configurations.

Second, NPT runs with checkpointing off. The barostat needs a strain gradient, which lets the cell change volume through a transition, and we have not validated that gradient through our activation-checkpointing path (Sec. II-C). Running with checkpointing off costs capacity: the checkpoint-on NVT ceiling on the same node is 20 times higher.

Third, portability is a requirement rather than a feature. Centers are deploying both NVIDIA and Intel accelerators, and a molecular dynamics (MD) engine whose results depend on which vendor's hardware runs it is not suitable for scientific use. We therefore treat cross-device agreement as a correctness property to be measured.

Graph parallelism and the autograd virial are FairChem's (Sec. II-B). Our contribution is a new capability, an FP64, NPT-capable LibTorch pair style that also runs on Intel GPUs, not a speedup over an existing solution. It comprises three contributions:

  1. A LibTorch interface from LAMMPS to UMA.

A TorchScript export and a C++ engine behind pair_style uma, with one MPI rank per device and FP64 end to end, built from one source tree for NVIDIA GPUs (NCCL collectives) and Intel GPUs (oneCCL collectives, named XCCL in PyTorch). Thermodynamic output at steps 0 and 10 agrees across every device count that fits on each GPU type, and forces match an ASE FairChem reference to ∼10−14\sim10^{-14} eV/ A˚\mathring{A} (Sec. VI-C).

  1. The strain-gradient virial through that interface, for NPT. FairChem's predictor already derives stress from position and cell gradients; we carry it through exported modules, graph parallelism, and fix npt, and show it stays nearly free. On the 22,000-atom cell, ten NPT steps take 8.54 s against 8.52 s for NVT, because the virial rides the same backward pass as the forces (Sec. VI-D).

  2. NPT molecular dynamics of up to 47,000 atoms at 0.157 ns/day, with delivered 100 ps runs. We measure the checkpoint-off NPT ceilings on 4×A100−40GB4 \times A100-40GB, one 12-tile Intel node, and 8×H2008 \times H200 (Sec. VI-D), and the Intel ceiling out to 32 nodes (Sec. VI-B). On all three node types, one omat checkpoint then runs 100 ps

NPT heating ramps of NaCl, equiatomic Pt–Ru, and equiatomic (HfNbTaTiZr)N with no new fit (Sec. VII).

Scope. The headline results are node-local by design; Sec. VI-B adds one multi-node capacity measurement, to 32 nodes. A spatial-DD path exists in the source but is not validated and is not claimed; the halo comparison above is why a thin halo does not apply. We claim a capacity gain only over a single device, the regime of the ASE FairChem calculator, and a precision difference, not a capacity or speed advantage, over FairChem's LAMMPS wrap. We also do not claim nanosecond trajectories (Sec. VI-D). The heating-ramp jumps of Sec. VII are not melting points; Sec. VII-B states why. Section III places this against custom million-atom MLIP MD, other vendors' UMA stacks, and Python drivers.

References (45)