Efficient Implementation of Monte Carlo Algorithms on Graphical Processing Units for Simulation of Adsorption in Porous Materials
We present enhancements in Monte Carlo simulation speed and functionality within an open-source code, gRASPA, which uses graphical processing units (GPUs) to achieve significant performance improvements compared to serial, CPU implementations of Monte Carlo. The code supports a wide range of Monte Carlo simulations, including canonical ensemble (NVT), grand canonical, NVT Gibbs, Widom test particle insertions, and continuous-fractional component Monte Carlo. Implementation of grand canonical transition matrix Monte Carlo (GC-TMMC) and a novel feature to allow different moves for the different components of metal-organic framework (MOF) structures exemplify the capabilities of gRASPA for precise free energy calculations and enhanced adsorption studies, respectively. The introduction of a High-Throughput Computing (HTC) mode permits many Monte Carlo simulations on a single GPU device for accelerated materials discovery. The code can incorporate machine learning (ML) potentials, and this is illustrated with grand canonical Monte Carlo simulations of CO<sub>2</sub> adsorption in Mg-MOF-74 that show much better agreement with experiment than simulations using a traditional force field. The open-source nature of gRASPA promotes reproducibility and openness in science, and users may add features to the code and optimize it for their own purposes. The code is written in CUDA/C++ and SYCL/C++ to support different GPU vendors. The gRASPA code is publicly available at https://github.com/snurr-group/gRASPA.
Authors
- Kaihang Shi (ORCID: https://orcid.org/0000-0002-0297-1746)
- Randall Q. Snurr (ORCID: https://orcid.org/0000-0003-2925-9246)
- Zhao Li (ORCID: https://orcid.org/0000-0001-5035-4614)
- Mark Dewing (ORCID: https://orcid.org/0000-0003-2663-0521)
- Álvaro Vázquez‐Mayagoitia (ORCID: https://orcid.org/0000-0002-1415-6300)
- Chris Knight (ORCID: https://orcid.org/0000-0001-8432-0658)
- David Dubbeldam (ORCID: https://orcid.org/0000-0002-4382-1509)
Institutions
- Northwestern University (US)
- Argonne National Laboratory (US)
- University at Buffalo, State University of New York (US)
- University of Amsterdam (NL)
Publication Details
- Journal
- Journal of Chemical Theory and Computation
- Published
- 2024-11-19
- DOI
- https://doi.org/10.1021/acs.jctc.4c01058
- Citations
- 21
- Primary Topic
- Metal-Organic Frameworks: Synthesis and Applications
- Type
- article
- Field-Weighted Citation Impact
- 3.33
Funders
- U.S. Department of Energy
- Northwestern University
- National Energy Research Scientific Computing Center
- National Institute of Standards and Technology
- Office of Science
- University at Buffalo
- Quest High Performance Computing
- Basic Energy Sciences
- Advanced Scientific Computing Research
- Argonne National Laboratory