Installation¶
conda-forge¶
The plugin is distributed on conda-forge:
mamba install -c conda-forge openmm-nonbonded-slicing
PyPI¶
Wheels are published on PyPI for Linux x86_64 and macOS (Apple Silicon and Intel) with Python 3.10–3.14:
pip install openmm-nonbonded-slicing # Reference and OpenCL platforms
pip install openmm-nonbonded-slicing[cuda12] # plus the CUDA platform (Linux, CUDA 12)
pip install openmm-nonbonded-slicing[cuda13] # plus the CUDA platform (Linux, CUDA 13)
Each PyPI release is published once per supported OpenMM version. pip installs the newest one, upgrading
OpenMM if needed; to keep an older OpenMM, pin it in the same command, for example
pip install "openmm==8.5.*" openmm-nonbonded-slicing:
PyPI release |
OpenMM |
|---|---|
|
8.4 |
|
8.5 |
|
8.6 |
On Intel Macs, OpenMM 8.6 from PyPI only works with Python 3.10, so pip installs the OpenMM 8.5 release there for Python 3.11 and later.
Building from source¶
Requirements:
OpenMM 8.4 or later
CMake 3.17 or later and a C++ compiler
SWIG, the same version that built your OpenMM (OpenMM’s conda-forge builds 8.4 and 8.5/8.6 used SWIG 4.4 and 4.5, respectively)
Optional: OpenCL headers for the OpenCL platform, and a CUDA toolkit with NVRTC and cuFFT for the CUDA platform
In a conda environment where OpenMM is installed:
mkdir build && cd build
cmake ..
make install
make PythonInstall
Useful CMake options:
Option |
Default |
Meaning |
|---|---|---|
|
|
Where OpenMM is installed |
|
detected with |
OpenMM version, if Python cannot import it |
|
|
Where to install the plugin |
|
|
Build the OpenCL platform |
|
|
Build the CUDA platform (set |
|
downloaded at configure time |
Directory containing |
Running the tests¶
From the build directory, run the C++ tests with make test (or ctest) and the Python tests with
make PythonTest.