OpenMM: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
This example is for the openmm/7.7.0 module. | This example is for the openmm/7.7.0 module. | ||
{{Commands|prompt= | {{Commands|prompt=[name@server ~] | ||
|ml python | |ml python | ||
|virtualenv env-parmed | |virtualenv env-parmed | ||
|source env-parmed/bin/activate | |source env-parmed/bin/activate | ||
}} | |||
{{Commands|prompt=(env-parmed)[name@server ~] | |||
|pip install parmed==3.4.3 netCDF4 | |pip install parmed==3.4.3 netCDF4 | ||
}} | }} |
Revision as of 18:17, 29 January 2022
Introduction
OpenMM is a toolkit for molecular simulation. It can be used either as a stand-alone application for running simulations or as a library you call from your own code. It provides a combination of extreme flexibility (through custom forces and integrators), openness, and high performance (especially on recent GPUs) that makes it unique among MD simulation packages.
Running Simulation with AMBER Topology and Restart Files
Preparing Python Virtual Environment
This example is for the openmm/7.7.0 module.
[name@server ~] ml python
[name@server ~] virtualenv env-parmed
[name@server ~] source env-parmed/bin/activate
Job submission
Below is a job script for a simulation using one A100 GPU.
File : submit_openmm.cuda.sh
#!/bin/bash
#SBATCH -c1 --gpus=1
#SBATCH --mem-per-cpu=4000 --time=1:0:0
# Usage: sbatch $0
module purge
ml StdEnv/2020 gcc/9.3.0 cuda/11.4 openmpi/4.0.3
ml python/3.8.10 openmm/7.7.0 netcdf/4.7.4 hdf5/1.10.6 mpi4py/3.0.3
source env-parmed/bin/activate
python openmm_input.py