This module is a singularity container wrapper for nvcr.io/hpc/lammps. Large-scale Atomic/Molecular Massively Parallel Simulator (LAMMPS) is a software application designed for molecular dynamics simulations. It has the potentials for solid-state materials (metals, semiconductor), soft matter (biomolecules, polymers), and coarse-grained or mesoscopic systems. The main use-case is atom scale particle modeling or, more generically, as a parallel particle simulator at the atomic, meson, or continuum scale. LAMMPS runs on single processors or in parallel using message-passing techniques and a spatial-decomposition of the simulation domain. Read more on the LAMMPS website https://lammps.sandia.gov/. After installing shpc you will want to install this container module:
$ shpc install nvcr.io/hpc/lammps
Or a specific version:
$ shpc install nvcr.io/hpc/lammps:29Sep2021
And then you can tell lmod about your modules folder:
$ module use ./modules
And load the module, and ask for help, or similar.
$ module load nvcr.io/hpc/lammps/29Sep2021
$ module help nvcr.io/hpc/lammps/29Sep2021
You can use tab for auto-completion of module names or commands that are provided.
Commands
When you install this module, you will be able to load it to make the following commands accessible. Examples for both Singularity, Podman, and Docker (container technologies supported) are included.
lammps-run:
$ singularity run <container>
$ podman run --rm -v ${PWD} -w ${PWD} <container>
$ docker run --rm -v ${PWD} -w ${PWD} <container>
lammps-shell:
$ singularity shell -s /bin/sh <container>
$ podman run --it --rm --entrypoint /bin/sh -v ${PWD} -w ${PWD} <container>
$ docker run --it --rm --entrypoint /bin/sh -v ${PWD} -w ${PWD} <container>
lammps-exec:
$ singularity exec <container> "$@"
$ podman run --it --rm --entrypoint "" -v ${PWD} -w ${PWD} <container> "$@"
$ docker run --it --rm --entrypoint "" -v ${PWD} -w ${PWD} <container> "$@"
lammps-inspect:
Podman and Docker only have one inspect type.
$ podman inspect <container>
$ docker inspect <container>
lammps-inspect-runscript:
$ singularity inspect -r <container>
lammps-inspect-deffile:
$ singularity inspect -d <container>
lammps
$ singularity run <container>
$ podman run --rm -v ${PWD} -w ${PWD} <container>
$ docker run --rm -v ${PWD} -w ${PWD} <container>
In the above, the <container>
directive will reference an actual container provided
by the module, for the version you have chosen to load. An environment file in the
module folder will also be bound. Note that although a container
might provide custom commands, every container exposes unique exec, shell, run, and
inspect aliases. For anycommands above, you can export:
- SINGULARITY_OPTS: to define custom options for singularity (e.g., –debug)
- SINGULARITY_COMMAND_OPTS: to define custom options for the command (e.g., -b)
- PODMAN_OPTS: to define custom options for podman or docker
- PODMAN_COMMAND_OPTS: to define custom options for the command
Install
You can install shpc locally (for yourself or your user base) as follows:
$ git clone https://github.com/singularityhub/singularity-hpc
$ cd singularity-hpc
$ pip install -e .
Have any questions, or want to request a new module or version? ask for help!