GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.lammps.org — 3.8. Packages with extra build options — LAMMPS documentation 3.8. Packages with extra build optionsWhen building with some packages, additional steps may be required, in addition to
as described on the Build_package page. For a CMake build there may be additional optional or required variables to set. Changed in version 10Sep2025. The traditional build system with GNU make no longer supports packages
that require extra steps in the This is the list of packages that may require additional steps. 3.8.1. COMPRESS packageTo build with this package you must have the zlib compression library available on your system to build dump styles with
a If CMake cannot find the zlib library or include files, you can set these variables: -D ZLIB_INCLUDE_DIR=path # path to zlib.h header file -D ZLIB_LIBRARY=path # path to libz.a (.so) file Support for Zstandard compression is auto-detected and for that
CMake depends on the pkg-config tool to
identify the necessary flags to compile with this library, so the
corresponding Changed in version 10Sep2025. The COMPRESS package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.2. FENIX packageAdded in version 2Sep2026. To build with this package you must have the Fenix library available on your system. The Fenix library must be newer than version 1 (currently meaning built from the default “develop” branch). Older versions use an incompatible API and this LAMMPS will fail to compile. -D WITH_FENIX=value # enables FENIX package # value = on or off (default) If CMake cannot find the Fenix library or include files, you can set the following: -D FENIX_ROOT=/path/to/fenix/install The Fenix package does not support the traditional make build. You need to build LAMMPS with CMake. 3.8.3. GRAPHICS packageAdded in version 11Feb2026: dump image, dump_movie and supporting classes were moved to form the new GRAPHICS package together with several fix graphics/… styles. The dump image command has options to output JPEG or PNG image files in addition to the default PPM format, and the fix graphics/labels can read images in JPEG or PNG format in addition to PPM format files. Using these additional options requires the following settings: -D WITH_JPEG=value # on or off # default = yes if CMake finds JPEG development files, else no -D WITH_PNG=value # on or off # default = yes if CMake finds PNG and ZLIB development files, # else no Usually these settings are all that is needed. If CMake cannot find the graphics header and library files, you can set these variables: -D JPEG_INCLUDE_DIR=path # path to jpeglib.h header file -D JPEG_LIBRARY=path # path to libjpeg.a (.so) file -D PNG_INCLUDE_DIR=path # path to png.h header file -D PNG_LIBRARY=path # path to libpng.a (.so) file -D ZLIB_INCLUDE_DIR=path # path to zlib.h header file -D ZLIB_LIBRARY=path # path to libz.a (.so) file LMP_INC = -DLAMMPS_JPEG -DLAMMPS_PNG <other LMP_INC settings> JPG_INC = -I/usr/local/include # path to jpeglib.h, png.h, zlib.h headers # if make cannot find them JPG_PATH = -L/usr/lib # paths to libjpeg.a, libpng.a, libz.a (.so) # files if make cannot find them JPG_LIB = -ljpeg -lpng -lz # library names As with CMake, you do not need to set Changed in version 13Nov2026. The dump movie command outputs movie files in a
variety of movie formats by sending images through a pipe to the
Note On some clusters with high-speed networks, using the fork() library call (required by popen()) can interfere with the fast communication library and lead to simulations using ffmpeg to hang or crash. 3.8.4. GPU packageTo build with this package, you must choose options for precision and which GPU hardware to build for. The GPU package currently supports three different types of back ends: OpenCL, CUDA and HIP. CMake build-D GPU_API=value # value = opencl (default) or cuda or hip -D GPU_PREC=value # precision setting # value = double or mixed (default) or single -D GPU_ARCH=value # GPU hardware choice for all GPU_API back ends (see below) # value = all-major (default), all, or a list of numbers # (e.g. "70;80;90") for cuda and hip/nvidia, one or more # gfx<XXX> names (e.g. "gfx90a;gfx942") for hip/amd, or # spirv for hip/spirv (default). The default for hip/amd # is to detect the architecture(s) of the installed GPUs -D GPU_DEBUG=value # enable debug code in the GPU package library, # mostly useful for developers # value = on or off (default) -D ROCM_PATH=value # value = path to the ROCm installation for GPU_API=hip # (default: /opt/rocm or the ROCM_PATH environment variable) -D HIP_PLATFORM=value # value = amd (default), nvidia, or spirv for GPU_API=hip -D HIP_ARCH=value # deprecated, use GPU_ARCH instead (still accepted, # but prints a deprecation warning) -D CUDA_MPS_SUPPORT=value # enables some tweaks required to run with active # nvidia-cuda-mps daemon # value = on or off (default) -D USE_STATIC_OPENCL_LOADER=value # downloads/includes OpenCL ICD loader library, # no local OpenCL headers/libs needed # value = on (default) or off Two preset files in the cmake -S cmake -B build -C cmake/presets/gcc.cmake \ -C cmake/presets/gpu-cuda.cmake -C cmake/presets/gpu-packages.cmake cmake -S cmake -B build -C cmake/presets/gcc.cmake \ -D PKG_GPU=on -D GPU_API=opencl -C cmake/presets/gpu-packages.cmake The GPU package supports 3 precision modes: single, double, and mixed, with the latter being the default. In the double precision mode, atom positions, forces and energies are stored, computed and accumulated in double precision. In the mixed precision mode, forces and energies are accumulated in double precision while atom coordinates are stored and arithmetic operations are performed in single precision. In the single precision mode, all are stored, executed and accumulated in single precision. To specify the precision mode (output to the screen before LAMMPS runs for
verification), set Some accelerators or OpenCL implementations only support single precision.
This mode should be used with care and appropriate validation as the errors
can scale with system size in this implementation. This can be useful for
accelerating test runs when setting up a simulation for production runs on
another machine. In the case where only single precision is supported, either
LAMMPS must be compiled with Changed in version 4Jul2026.
Changed in version 13Nov2026. For
Settings in the format of earlier LAMMPS versions, e.g. When compiling for CUDA or HIP with CUDA, version 12.0 or later of the CUDA toolkit is required and a GPU architecture of Pascal (60) or later, which must also be supported by the CUDA toolkit (e.g. the Pascal (60) and Volta (70) architectures are only supported by CUDA up to version 12.8); the Blackwell (100;103;120) architecture requires at least CUDA version 12.8. A detailed list of Nvidia GPU architectures and compatible CUDA toolkits can be found in Wikipedia’s CUDA article. When compiling for OpenCL, OpenCL version 1.2 or later is required and the GPU must be supported by the GPU driver and OpenCL runtime bundled with the driver. Changed in version 13Nov2026. Building with Please note that the GPU library accesses the CUDA driver library
directly, so it needs to be linked with the CUDA driver library
( To support the CUDA multi-process server (MPS) you can set the define
If you are compiling for OpenCL, the default setting is to download,
build, and link with a static OpenCL ICD loader library and standard
OpenCL headers. This way no local OpenCL development headers or library
needs to be present and only OpenCL compatible drivers need to be
installed to use OpenCL. If this is not desired, you can set
If Changed in version 13Nov2026. Building with The GPU library has some multi-thread support using OpenMP. If LAMMPS
is built with Note Some Clang-based tool chains - in particular The cmake -S cmake -B build -C cmake/presets/hip_amd.cmake \ -D PKG_GPU=on -D GPU_API=hip -D GPU_ARCH=gfx90a For a debug build, set Added in version 3Aug2022. Using the CHIP-SPV implementation of HIP is supported. It allows one to run HIP code on Intel GPUs via the OpenCL or Level Zero back ends. As of Summer 2022, the use of HIP for Intel GPUs is experimental. You should only use this option in preparations to run on Aurora system at Argonne. # AMD GPUs: kernels for the architecture(s) of the installed GPU(s) cmake -S cmake -B build -D PKG_GPU=on -D GPU_API=hip cmake --build build # AMD GPUs: kernels for selected architectures, ROCm in a custom location cmake -S cmake -B build -D PKG_GPU=on -D GPU_API=hip -D GPU_ARCH="gfx90a;gfx942" \ -D ROCM_PATH=/path/to/rocm cmake --build build # NVIDIA GPUs through HIP (not recommended, use GPU_API=cuda) # !!! DO NOT set CMAKE_CXX_COMPILER !!! cmake -S cmake -B build -D PKG_GPU=on -D GPU_API=hip -D HIP_PLATFORM=nvidia -D GPU_ARCH=70 cmake --build build # SPIR-V target (Intel GPUs) cmake -S cmake -B build -D PKG_GPU=on -D GPU_API=hip -D HIP_PLATFORM=spirv \ -D CMAKE_CXX_COMPILER=hipcc cmake --build build 3.8.5. KIM packageTo build with this package, the KIM API v2.0+ must be downloaded and built on your system. See Obtaining KIM Models to learn how to install the KIM API, as well as how to install any models you wish to use afterward. See the list of all KIM models here: https://openkim.org/browse/models If you would like to use the kim query command, you also need to have libcurl installed with the matching development headers and the curl-config tool. If you would like to use the kim property
command, you need to build LAMMPS with the PYTHON package installed
and linked to Python 3.6 or later. See the PYTHON package build info
for more details on this. After successfully building LAMMPS with Python, you
also need to install the -D DOWNLOAD_KIM=value # download OpenKIM API v2 for build # value = off (default) or on -D LMP_DEBUG_CURL=value # set libcurl verbose mode on/off # value = off (default) or on -D LMP_NO_SSL_CHECK=value # tell libcurl to not verify the peer # value = off (default) or on -D KIM_EXTRA_UNITTESTS=value # enables extra unit tests # value = off (default) or on If Extra unit tests can only be available if they are explicitly requested
( Changed in version 10Sep2025. The KIM package no longer supports the traditional make build. You need to build LAMMPS with CMake. Debugging OpenKIM web queries in LAMMPSIf The libcurl library performs peer SSL certificate verification by
default. This verification is done using a CA certificate store that
the SSL library can use to make sure the peer’s server certificate is
valid. If SSL reports an error (“certificate verify failed”) during the
handshake and thus refuses further communicate with that server, you can
set KIM Extra unit tests (CMake only)During development, testing, or debugging, if
unit testing is enabled in LAMMPS, one can also
enable extra tests on KIM commands by setting the
Enabling the extra unit tests have some requirements,
3.8.6. KOKKOS packageUsing the KOKKOS package requires choosing several settings. You have to select whether you want to compile with parallelization on the host and whether you want to include offloading of calculations to a device (e.g. a GPU). The default setting is to have no host parallelization and no device offloading. In addition, you can select the hardware architecture to select the instruction set. Since most hardware is backward compatible, you may choose settings for an older architecture to have an executable that will run on this and newer architectures. Note If you run Kokkos on a different GPU architecture than what LAMMPS was compiled with, there will be a delay during device initialization while the just-in-time compiler is recompiling all GPU kernels for the new hardware. This is, however, only supported for GPUs of the same major hardware version and different minor hardware versions, e.g. 5.0 and 5.2 but not 5.2 and 6.0. LAMMPS will abort with an error message indicating a mismatch, if the major version differs. The settings discussed below have been tested with LAMMPS and are confirmed to work. Kokkos is an active project with ongoing improvements and projects working on including support for additional architectures. More information on Kokkos can be found on the Kokkos GitHub project. Available Architecture settingsThese are the possible choices for the Kokkos architecture ID. They must be specified in uppercase.
This list was last updated for version 5.2.1 of the Kokkos library. For multicore CPUs using OpenMP, set these 2 variables. -D Kokkos_ARCH_HOSTARCH=on # HOSTARCH = HOST from list above -D Kokkos_ENABLE_OPENMP=on -D BUILD_OMP=on Please note that enabling OpenMP for KOKKOS requires that OpenMP is also enabled for the rest of LAMMPS. For Intel KNLs using OpenMP, set these variables: -D Kokkos_ARCH_KNL=on -D Kokkos_ENABLE_OPENMP=on For NVIDIA GPUs using CUDA, set these variables: -D Kokkos_ARCH_HOSTARCH=on # HOSTARCH = HOST from list above -D Kokkos_ARCH_GPUARCH=on # GPUARCH = GPU from list above -D Kokkos_ENABLE_CUDA=on -D Kokkos_ENABLE_OPENMP=on This will also enable executing FFTs on the GPU, either via the internal KISSFFT library, or - by preference - with the cuFFT library bundled with the CUDA toolkit, depending on whether CMake can identify its location. For AMD or NVIDIA GPUs using HIP, set these variables: -D Kokkos_ARCH_HOSTARCH=on # HOSTARCH = HOST from list above -D Kokkos_ARCH_GPUARCH=on # GPUARCH = GPU from list above -D Kokkos_ENABLE_HIP=on -D Kokkos_ENABLE_OPENMP=on This will enable FFTs on the GPU, either by the internal KISSFFT library or with the hipFFT wrapper library, which will call out to the platform-appropriate vendor library: rocFFT on AMD GPUs or cuFFT on NVIDIA GPUs. For Intel GPUs using SYCL, set these variables: -D Kokkos_ARCH_HOSTARCH=on # HOSTARCH = HOST from list above -D Kokkos_ARCH_GPUARCH=on # GPUARCH = GPU from list above -D Kokkos_ENABLE_SYCL=on -D Kokkos_ENABLE_OPENMP=on -D FFT_KOKKOS=MKL_GPU This will enable FFTs on the GPU using the oneMKL library. To simplify compilation, seven preset files are included in the
cmake -S cmake -B build-kokkos-cuda -C cmake/presets/basic.cmake \ -C cmake/presets/kokkos-cuda-nowrapper.cmake cmake --build build-kokkos-cuda The The cmake -S cmake -B build-kokkos -C cmake/presets/gcc.cmake \ -C cmake/presets/kokkos-openmp.cmake \ -C cmake/presets/kokkos-packages.cmake The ML-IAP package also contains styles with KOKKOS support, but
those require Changed in version 11Feb2026. The KOKKOS package no longer supports the traditional make build. You need to build LAMMPS with CMake. Advanced KOKKOS compilation settingsThere are other allowed options when building with the KOKKOS package that can improve performance or assist in debugging or profiling. Below are some examples that may be useful in combination with LAMMPS. For the full list (which keeps changing as the Kokkos package itself evolves), please consult the Kokkos library documentation. As alternative to using multi-threading via OpenMP
( The CMake option The CMake option Changed in version 2Sep2026. The CMake option Added in version 10Sep2025. The CMake option Added in version 10Sep2025. The CMake option Added in version 30Sep2026. The CMake option 3.8.7. LEPTON packageTo build with this package, you must build the Lepton library which is
included in the LAMMPS source distribution in the This is the recommended build procedure for using Lepton in
LAMMPS. No additional settings are normally needed besides
On x86 hardware the Lepton library will also include a just-in-time
compiler for faster execution. This is auto detected but can
be explicitly disabled by setting Changed in version 10Sep2025. The LEPTON package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.8. MACHDYN packageTo build with this package, you must download the Eigen3 library. Eigen3 is a template library, so you do not need to build it. -D DOWNLOAD_EIGEN3 # download Eigen3, value = off (default) or on -D EIGEN3_INCLUDE_DIR=path # path to Eigen library (only needed if a # custom location) If Changed in version 10Sep2025. The MACHDYN package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.9. ML-IAP packageBuilding the ML-IAP package requires including the ML-SNAP package. There will be an error message if this requirement
is not satisfied. Using the mliappy model also requires enabling
Python support, which in turn requires to include the PYTHON package and requires to have the cython software installed and with it a working
-D MLIAP_ENABLE_PYTHON=value # enable mliappy model (default is autodetect) Without this setting, CMake will check whether it can find a
suitable Python version and the The build uses the To enable building the ML-IAP package with Python support enabled,
you need to add 3.8.10. OPT packageNo additional settings are needed besides The compiler flag 3.8.11. PYTHON packageBuilding with the PYTHON package requires you have a the Python
development headers and library available on your system, which
needs to be Python version 3.6 or later. See -D Python_EXECUTABLE=path # path to Python executable to use Without this setting, CMake will guess the default Python version on your system. To use a different Python version, you can either create a virtualenv, activate it and then run cmake. Or you can set the Python_EXECUTABLE variable to specify which Python interpreter should be used. Note note that you will also need to have the development headers installed for this version, e.g. python3-devel. Changed in version 10Sep2025. The PYTHON package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.12. VORONOI packageTo build with this package, you must download and build the Voro++ library or install a binary package provided by your operating system. -D DOWNLOAD_VORO=value # download Voro++ for build # value = off (default) or on -D VORO_LIBRARY=path # Voro++ library file # (only needed if at custom location) -D VORO_INCLUDE_DIR=path # Voro++ include directory # (only needed if at custom location) If Changed in version 10Sep2025. The VORONOI package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.13. ADIOS packageThe ADIOS package requires the ADIOS I/O library, version 2.3.1 or newer. Make sure that you have ADIOS built either with or without MPI to match if you build LAMMPS with or without MPI. ADIOS compilation settings for LAMMPS are automatically detected, if the PATH and LD_LIBRARY_PATH environment variables have been updated for the local ADIOS installation and the instructions below are followed for the respective build systems. -D ADIOS2_DIR=path # path is where ADIOS 2.x is installed -D PKG_ADIOS=on Turn on the ADIOS package before building LAMMPS. If the ADIOS 2.x software is installed in PATH, there is nothing else to do: make yes-adios
otherwise, set ADIOS2_DIR environment variable when turning on the package: ADIOS2_DIR=path make yes-adios # path is where ADIOS 2.x is installed 3.8.14. APIP packageThe APIP package depends on the library of the ML-PACE package. The code for the library can be found at: https://github.com/ICAMS/lammps-user-pace/ No additional settings are needed besides Changed in version 10Sep2025. The APIP package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.15. COLVARS packageThis package enables the use of the Colvars module included in the LAMMPS source distribution. This is the recommended build procedure for using Colvars in
LAMMPS. No additional settings are normally needed besides -D PKG_COLVARS=on # enable the package itself -D COLVARS_LEPTON=on # use the Lepton library for custom expression (on by default) -D COLVARS_DEBUG=off # enable debugging message (verbose, off by default) Changed in version 10Sep2025. The COLVARS package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.16. ELECTRODE packageThis package depends on the KSPACE package. -D PKG_ELECTRODE=on # enable the package itself -D PKG_KSPACE=on # the ELECTRODE package requires KSPACE -D USE_INTERNAL_LINALG=value # Features in the ELECTRODE package are dependent on code in the KSPACE package so the latter one must be enabled. The ELECTRODE package also requires LAPACK (and BLAS) and CMake
can identify their locations and pass that info to the ELECTRODE
build script. But on some systems this may cause problems when
linking or the dependency is not desired. Try enabling
The ELECTRODE package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.17. MBX packageAdded in version 11Feb2026. This package requires the MBX library that can be downloaded and built either before LAMMPS is built or as part of the LAMMPS compilation. The code for the library can be found at: https://github.com/paesanilab/MBX/ Instead of including the MBX package directly into LAMMPS, it is also
possible to skip this step and build the MBX package as a plugin using
the CMake script files in the Changed in version 30Mar2026: Replaced MD5 checksums with SHA-256 By default the MBX library will be downloaded from the git
repository and built automatically when the MBX package is enabled
with The MBX package does not support the traditional make build. You need to build LAMMPS with CMake to use it. 3.8.18. ML-PACE packageThis package requires a library that can be downloaded and built in lib/pace or somewhere else, which must be done before building LAMMPS with this package. The code for the library can be found at: https://github.com/ICAMS/lammps-user-pace/ Instead of including the ML-PACE package directly into LAMMPS, it
is also possible to skip this step and build the ML-PACE package as
a plugin using the CMake script files in the Changed in version 30Mar2026: Replaced MD5 checksums with SHA-256 By default the library will be downloaded from the git repository
and built automatically when the ML-PACE package is enabled with
Changed in version 10Sep2025. The ML-PACE package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.19. ML-POD packageNo additional settings are needed besides Changed in version 10Sep2025. The ML-POD package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.20. ML-QUIP packageTo build with this package, you must download and build the QUIP library. It can be obtained from GitHub. For support of GAP potentials, additional files with specific licensing conditions need to be downloaded and configured. The automatic download will from within CMake will download the non-commercial use version. -D DOWNLOAD_QUIP=value # download QUIP library for build # value = off (default) or on -D QUIP_LIBRARY=path # path to libquip.a # (only needed if a custom location) -D USE_INTERNAL_LINALG=value # Use the internal linear algebra library # instead of LAPACK # value = off (default) or on CMake will try to download and build the QUIP library from GitHub,
if it is not found on the local machine. This requires to have git
installed. It will use the same compilers and flags as used for
compiling LAMMPS. Currently this is only supported for the GNU
and the Intel compilers. Set the The QUIP library requires LAPACK (and BLAS) and CMake can identify
their locations and pass that info to the QUIP build script. But
on some systems this triggers a (current) limitation of CMake and
the configuration will fail. Try enabling Changed in version 10Sep2025. The ML-QUIP package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.21. PLUMED packageBefore building LAMMPS with this package, you must first build PLUMED. PLUMED can be built as part of the LAMMPS build or installed separately from LAMMPS using the generic PLUMED installation instructions. The PLUMED package has been tested to work with Plumed versions 2.4.x, to 2.9.x and will error out, when trying to run calculations with a different version of the Plumed kernel. PLUMED can be linked into MD codes in three different modes: static, shared, and runtime. With the “static” mode, all the code that PLUMED requires is linked statically into LAMMPS. LAMMPS is then fully independent from the PLUMED installation, but you have to rebuild/relink it in order to update the PLUMED code inside it. With the “shared” linkage mode, LAMMPS is linked to a shared library that contains the PLUMED code. This library should preferably be installed in a globally accessible location. When PLUMED is linked in this way the same library can be used by multiple MD packages. Furthermore, the PLUMED library LAMMPS uses can be updated without the need for a recompile of LAMMPS for as long as the shared PLUMED library is ABI-compatible. The third linkage mode is “runtime” which allows the user to specify which PLUMED kernel should be used at runtime by using the PLUMED_KERNEL environment variable. This variable should point to the location of the libplumedKernel.so dynamical shared object, which is then loaded at runtime. This mode of linking is particularly convenient for doing PLUMED development and comparing multiple PLUMED versions as these sorts of comparisons can be done without recompiling the hosting MD code. All three linkage modes are supported by LAMMPS on selected operating systems (e.g. Linux) and using either CMake or traditional make build. The “static” mode should be the most portable, while the “runtime” mode support in LAMMPS makes the most assumptions about operating system and compiler environment. If one mode does not work, try a different one, switch to a different build system, consider a global PLUMED installation or consider downloading PLUMED during the LAMMPS build. Instead of including the PLUMED package directly into LAMMPS, it
is also possible to skip this step and build the PLUMED package as
a plugin using the CMake script files in the When the -D DOWNLOAD_PLUMED=value # download PLUMED for build # value = off (default) or on -D PLUMED_MODE=value # Linkage mode for PLUMED # value = static (default), shared, # or runtime If The Changed in version 10Sep2025. The PLUMED package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.22. H5MD packageTo build with this package you must have the HDF5 software package installed on your system, which should include the h5cc compiler and the HDF5 library. No additional settings are needed besides This should auto-detect the H5MD library on your system. Several advanced CMake H5MD options exist if you need to specify where it is installed. Use the ccmake (terminal window) or cmake-gui (graphical) tools to see these options and set them interactively from their user interfaces. Changed in version 10Sep2025. The H5MD package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.23. ML-HDNNP packageTo build with the ML-HDNNP package it is required to download and build the
external n2p2 library In case of a manual installation of n2p2 you only need to build the n2p2 core
library -D DOWNLOAD_N2P2=value # download n2p2 for build # value = off (default) or on -D N2P2_DIR=path # n2p2 base directory # (only needed if a custom location) If Failure to build n2p2 due to git branch names Some script code inside the n2p2 library build processes the
current branch name used by git and that will fail for LAMMPS
repository branch names containing the forward slash ‘/’
character, for example: Changed in version 10Sep2025. The ML-HDNNP package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.24. ML-RUNNER packageThe ML-RUNNER package provides an interface to the RuNNer (Ruhr University Neural Network Energy Representation) library for high-dimensional neural network potentials (HDNNP). Prerequisites
Building RuNNer By default, the LAMMPS build process automatically downloads and compiles the RuNNer library as a static library. Alternatively, you can point LAMMPS to a pre-compiled version already present on your system. Basic Options: -D PKG_ML-RUNNER=on # enable the package itself -D DOWNLOAD_RUNNER=on # on (default): clone the stable version of the official RuNNer repo. # off: Use a pre-compiled RuNNer library. -D RUNNER_SHARED_LIB=on # off (default): Look for static library (.a). # on: Look for shared library (.so). Manual Library Configuration (if DOWNLOAD_RUNNER=off): -D RUNNER_LIB_DIR=path # Directory containing the RuNNer library. # (default: empty, search the folders in # LD_LIBRARY_PATH, LIBRARY_PATH, and the # standard system library folders) -D RUNNER_LIB_NAME=name # Filename of the library (without extension). # (default: libRuNNer_mpi) FFT Library Selection: The build system uses the FFT selection from the KSPACE package. Only MKL and FFTW3 are currently supported -D FFT=value # FFTW3 or MKL -D FFT_MKL_THREADS=on # required with MKL (default) -D FFT_FFTW_THREADS=on # required with FFTW3 (default) The ML-RUNNER package does not support the traditional make build system. You must build LAMMPS with CMake. Detailed Option Table
3.8.25. INTEL packageThis package optimizes styles for x86 CPUs. You should also typically install the OPENMP package, as it can be used in tandem with the INTEL package to good effect, as explained on the INTEL package page. You can also use the GNU or Clang compilers instead of the Intel compilers and they will provide performance improvements over regular styles and OPENMP styles, but less so than with the Intel compilers. Please also note, that some compilers have been found to apply memory alignment constraints incompletely or incorrectly and thus can cause segmentation faults in otherwise correct code when using features from the INTEL package. -D INTEL_LRT_MODE=value # value = threads, none, or c++17 Changed in version 30Sep2026. With the LLVM based Intel compilers ( Choose compiler flags in Makefile.machine via the following
settings. See OPTFLAGS = -xHost -O2 -fp-model fast=2 -no-prec-div -qoverride-limits -qopt-zmm-usage=high CCFLAGS = -g -qopenmp -DLAMMPS_MEMALIGN=64 -fno-alias -ansi-alias -restrict $(OPTFLAGS) LINKFLAGS = -g -qopenmp $(OPTFLAGS) LIB = -ltbbmalloc In Long-range thread mode (LRT) a modified verlet style is used, that operates the Kspace calculation in a separate thread concurrently to other calculations. This has to be enabled in the package intel command at runtime. With the setting “threads” it used the pthreads library, while “c++17” will use the built-in thread support of C++17 compilers. The option “none” skips compilation of this feature. The default is to use “threads” if pthreads is available and otherwise “none”. Best performance is achieved with Intel hardware, Intel compilers, as well as the Intel TBB and MKL libraries. However, the code also compiles, links, and runs with other compilers / hardware and without TBB and MKL. 3.8.26. MDI package-D DOWNLOAD_MDI=value # download MDI Library for build # value = off (default) or on Changed in version 10Sep2025. The MDI package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.27. MISC packageThe fix imd style in this package can be run either synchronously (communication with IMD clients is done in the main process) or asynchronously (the fix spawns a separate thread that can communicate with IMD clients concurrently to the LAMMPS execution). -D LAMMPS_ASYNC_IMD=value # Run IMD server asynchronously # value = off (default) or on To enable asynchronous mode the LMP_INC = -DLAMMPS_ASYNC_IMD -DLAMMPS_MEMALIGN=64 3.8.28. MOLFILE package-D MOLFILE_INCLUDE_DIR=path # (optional) path where VMD molfile # plugin headers are installed -D PKG_MOLFILE=on Using Changed in version 10Sep2025. The MOLFILE package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.29. NETCDF packageTo build with this package you must have the NetCDF library installed on your system. No additional settings are needed besides This should auto-detect the NETCDF library if it is installed on
your system at standard locations. Several advanced CMake NETCDF
options exist if you need to specify where it was installed. Use
the Changed in version 10Sep2025. The NETCDF package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.30. OPENMP packageNo additional settings are required besides To enable multi-threading support in the OPENMP package (and
other styles supporting OpenMP) the following compile and link
flags must be added to your Makefile.machine file. See
CCFLAGS: -fopenmp # for GNU and Clang Compilers CCFLAGS: -qopenmp -restrict # for Intel compilers on Linux LINKFLAGS: -fopenmp # for GNU and Clang Compilers LINKFLAGS: -qopenmp # for Intel compilers on Linux For other platforms and compilers, please consult the documentation about OpenMP support for your compiler. Adding OpenMP support on macOS Apple offers the Xcode package and IDE for compiling software on
macOS, so you have likely installed it to compile LAMMPS. Their
compiler is based on Clang, but while it
is capable of processing OpenMP directives, the necessary header
files and OpenMP runtime library are missing. The R developers have figured out a way to build those
in a compatible fashion. One can download them from
https://mac.r-project.org/openmp/. Simply adding those files as
instructed enables the Xcode C++ compiler to compile LAMMPS with 3.8.31. QMMM packageFor using LAMMPS to do QM/MM simulations via the QMMM package you
need to build LAMMPS as a library. A LAMMPS executable with fix
qmmm included can be built, but will not be able to do a
QM/MM simulation on as such. You must also build a QM code - currently
only Quantum ESPRESSO (QE) is supported - and create a new executable
which links LAMMPS and the QM code together. Details are given in the
When using CMake, building a LAMMPS library is required and it is recommended to build a shared library, since any libraries built from the sources in the lib folder (including the essential libqmmm.a) are not included in the static LAMMPS library and are (currently) not installed, while their code is included in the shared LAMMPS library. Thus a typical command to configure building LAMMPS for QMMM would be: cmake -S cmake -B build -C cmake/presets/basic.cmake \ -D PKG_QMMM=on -D BUILD_SHARED_LIBS=on After completing the LAMMPS build and also configuring and
compiling Quantum ESPRESSO with external library support (via
“make couple”), go back to the Changed in version 10Sep2025. The QMMM package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.32. QMMM-XTB packageThe QMMM-XTB package provides in-process GFN1-xTB and GFN2-xTB QM/MM
coupling through libxtb. It requires
the KSPACE package, libxtb 6.7 or newer, mctc-lib, and BLAS. The The package uses libxtb’s Fortran module interface because its public C API
does not expose the atom-dependent potential callback required during every
SCC iteration. Consequently, the libxtb Fortran If libxtb and mctc-lib are installed in nonstandard locations, add
their export PKG_CONFIG_PATH=/path/to/xtb/lib/pkgconfig:/path/to/mctc/lib/pkgconfig cmake -S cmake -B build \ -D PKG_KSPACE=on \ -D PKG_QMMM-XTB=on \ -D XTB_FORTRAN_MODULE_DIR=/path/to/xtb-modules cmake --build build
At runtime, the dynamic loader must be able to find libxtb and its
dependencies. Set The QMMM-XTB package does not support the traditional make build. You need to build LAMMPS with CMake to use it. 3.8.33. RHEO packageThis package depends on the BPM package. -D PKG_RHEO=on # enable the package itself -D PKG_BPM=on # the RHEO package requires BPM -D USE_INTERNAL_LINALG=value # prefer internal LAPACK if true Some features in the RHEO package are dependent on code in the BPM package so the latter one must be enabled as well. The RHEO package also requires LAPACK (and BLAS) and CMake
can identify their locations and pass that info to the RHEO
build script. But on some systems this may cause problems when
linking or the dependency is not desired. By using the setting
Changed in version 10Sep2025. The RHEO package no longer supports the traditional make build. You need to build LAMMPS with CMake. 3.8.34. SCAFACOS packageTo build with this package, you must download and build the ScaFaCoS Coulomb solver library -D DOWNLOAD_SCAFACOS=value # download ScaFaCoS for build, value = off (default) or on -D SCAFACOS_LIBRARY=path # ScaFaCos library file (only needed if at custom location) -D SCAFACOS_INCLUDE_DIR=path # ScaFaCoS include directory (only needed if at custom location) If Changed in version 10Sep2025. The SCAFACOS package no longer supports the traditional make build. You need to build LAMMPS with CMake. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |