Bureaucrats, cc_docs_admin, cc_staff
2,879
edits
(→Modules: rename and simplify) |
|||
Line 27: | Line 27: | ||
Combinations of potentials can be used for hybrid systems, e.g. water on metal, polymer/semiconductor interfaces, colloids in solution, ... | Combinations of potentials can be used for hybrid systems, e.g. water on metal, polymer/semiconductor interfaces, colloids in solution, ... | ||
= | = Versions and packages = | ||
To see which versions of LAMMPS are installed on Compute Canada systems, run <code>module spider lammps</code>. See [[Using modules]] for more about <code>module</code> subcommands. | |||
<code> module spider lammps</code> | |||
LAMMPS version numbers are based on their release dates, and have the format YYYYMMDD. | |||
For each release installed, one or more modules are are available. | |||
For example, the release of 31 March 2017 has three modules: | |||
* Built with MPI: <code>lammps/20170331</code> | |||
* Built with USER-OMP support: <code>lammps-omp/20170331</code> | |||
* Built with USER-INTEL support: <code>lammps-user-intel/20170331</code> | |||
These versions are also available with GPU support. | |||
In order to use the GPU-enabled version, load the [[CUDA]] module before loading the LAMMPS module: | |||
$ module load cuda | |||
$ module load lammps-omp/20170331 | |||
The name of the executable may differ from one version to another. All prebuilt versions on Compute Canada clusters have a symbolic link called <code>lmp</code>. It means that no matter which module you pick, you can execute LAMMPS by calling <code>lmp</code>. | |||
If you wish to see the original name of the executable for a given module, list the files in the <code>${EBROOTLAMMPS}/bin</code> directory. For example: | |||
$ module load | $ module load lammps-omp/20170331 | ||
$ ls ${EBROOTLAMMPS}/bin/ | $ ls ${EBROOTLAMMPS}/bin/ | ||
lmp lmp_icc_openmpi | lmp lmp_icc_openmpi | ||
In this example the executable is <code>lmp_icc_openmpi</code>, and <code>lmp</code> is the symbolic link to it. | |||
The reason there are different modules for the same release is the difference in the ''packages'' included. Recent versions of LAMMPS contain about 60 different packages that can be enabled or disabled when compiling the program. Not all packages can be enabled in a single executable. All [https://lammps.sandia.gov/doc/Packages.html packages] are documented on the official web page. | |||
For each LAMMPS module we provide a file <code>list-packages.txt</code> listing the enabled ("Supported") and disabled ("Not Supported") packages. Once you have loaded a particular module, run <code>cat ${EBROOTLAMMPS}/list-packages.txt</code> to see the contents. | |||
If your simulation does not work with one module, it may be related to the fact that the necessary package was not included. | |||
= Scripts for running LAMMPS = | = Scripts for running LAMMPS = |