Installation
warp-md is distributed as a Python package with pre-built binaries for common platforms. You can install it via pip or build from source for custom configurations.Install from PyPI (Recommended)
The simplest way to get started is to install the latest release from PyPI:<class 'warp_md.traj_py.PySystem'> indicating the extension module loaded successfully.
Optional CLI Dependencies
If you plan to use YAML configuration files with the CLI tools, install the optional CLI dependencies:Optional GIST Dependencies
For Grid Inhomogeneous Solvation Theory (GIST) calculations with OpenMM integration:CLI Tools
Once installed, you’ll have access to three command-line entry points:Build from Source
Building from source gives you access to the latest development features and allows customization of build options like CUDA support.Prerequisites
You’ll need:- Rust toolchain (1.70 or later)
- Python (3.9 or later)
- maturin (Python build tool for Rust extensions)
- (Optional) CUDA toolkit for GPU acceleration
Build Steps
Build and install in development mode
Build with CUDA Support
To enable GPU acceleration via CUDA:CUDA support requires the NVIDIA CUDA toolkit installed and properly configured on your system. The CUDA feature is experimental and not all analysis plans support GPU acceleration.
Release Builds
For optimized performance, build in release mode:Testing Your Installation
Python API Test
Test the Python bindings:Rust Tests
Run the Rust test suite:System Requirements
Minimum Requirements
- Python: 3.9 or later
- NumPy: Installed automatically as a dependency
- Pydantic: 2.0 or later (installed automatically)
Recommended for Performance
- OS: Linux (Ubuntu 20.04+, CentOS 7+) or macOS 11+
- RAM: 8 GB minimum, 16 GB+ recommended for large trajectories
- Storage: Fast SSD recommended for trajectory I/O
For CUDA Acceleration
- GPU: NVIDIA GPU with compute capability 6.0+ (Pascal or newer)
- CUDA: CUDA toolkit 11.0 or later
- Driver: NVIDIA driver version 450.80.02 or later
Troubleshooting
Import Error: Extension Module Not Found
If you see an error likeImportError: cannot import name 'traj_py', the Rust extension didn’t build correctly.
Solution: Rebuild with verbose output:
CUDA Tests Fail
If CUDA tests fail, verify your CUDA installation:PATH and LD_LIBRARY_PATH.
Missing CLI Commands
Ifwarp-md commands aren’t found after installation:
Solution: Ensure your Python scripts directory is in your PATH. For pip user installs:
.bashrc, .zshrc, etc.) to make it permanent.
Next Steps
Quickstart
Run your first trajectory analysis in 5 lines of code