You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/software/sciapps/lammps.md
+37-30Lines changed: 37 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,73 +1,76 @@
1
1
[](){#ref-uenv-lammps}
2
2
# LAMMPS
3
3
4
-
[LAMMPS](https://www.lammps.org/) is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state. It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions. The current version of LAMMPS is written in C++.
4
+
[LAMMPS] is a classical molecular dynamics code that models an ensemble of particles in a liquid, solid, or gaseous state.
5
+
It can model atomic, polymeric, biological, metallic, granular, and coarse-grained systems using a variety of force fields and boundary conditions.
6
+
The current version of LAMMPS is written in C++.
5
7
6
8
## Licensing Terms and Conditions
7
9
8
-
[LAMMPS] is a freely-available open-source code, distributed under the terms of the [GNU Public License](http://www.gnu.org/copyleft/gpl.html).
10
+
LAMMPS is a freely-available open-source code, distributed under the terms of the [GNU Public License].
9
11
10
12
## Running LAMMPS
11
13
12
14
### Loading LAMMPS Interactively
13
15
14
-
On Alps, [LAMMPS] is precompiled and available in a user environment (uenv). LAMMPS has been built with kokkos, and the GPU package separately.
16
+
On Alps, LAMMPS is precompiled and available in a user environment [uenv].
17
+
LAMMPS has been built with kokkos, and the GPU package separately.
15
18
16
19
To find which LAMMPS uenv is provided, you can use the following command:
We recommend using `lammps/2024:v2-rc1` as it's the latest build. To obtain this image, please run:
25
+
which will list several uenv lammps uenv images.
26
+
We recommend that you regularly check for the latest version.
27
+
Please see the documentation here for further details: https://eth-cscs.github.io/cscs-docs/software/uenv/#finding-uenv.
27
28
28
-
```
29
-
uenv image pull lammps/2024:v2-rc1
29
+
To obtain this image, please run:
30
+
31
+
```bash
32
+
uenv image pull lammps/2024:v2
30
33
```
31
34
32
35
To start the uenv for this specific version of LAMMPS, you can use:
33
36
34
-
```
35
-
uenv start --view kokkos lammps/2024:v2-rc1
37
+
```bash
38
+
uenv start --view kokkos lammps/2024:v2
36
39
```
37
40
38
41
You can load the `view` from the uenv which contains the `lmp` executable. The executable in both these views support GPUs:
39
42
40
-
```
43
+
```bash
41
44
#lammps +kokkos packae
42
-
uenv start --view kokkos lammps/2024:v2-rc1
45
+
uenv start --view kokkos lammps/2024:v2
43
46
#lammps +gpu package, kokkos disabled
44
-
uenv start --view gpu lammps/2024:v2-rc1
47
+
uenv start --view gpu lammps/2024:v2
45
48
```
46
49
47
50
A development view is also provided, which contains all libraries and command-line tools necessary to build LAMMPS from source, without including the LAMMPS executable:
48
51
49
-
```
50
-
#build environment for lammps +kokkos package, without providing lmp executeable
#build environment for lammps +gpu package, without providing lmp executeable
53
-
uenv start --view develop-gpu lammps/2024:v2-rc1
52
+
```bash
53
+
#build environment for lammps +kokkos package, without providing lmp executable
54
+
uenv start --view develop-kokkos lammps/2024:v2
55
+
#build environment for lammps +gpu package, without providing lmp executable
56
+
uenv start --view develop-gpu lammps/2024:v2
54
57
```
55
58
56
59
### Running LAMMPS+kokkos on the HPC Platform
57
60
58
-
To start a job, two bash scripts are potentially required: a [slurm] submission script, and a wrapper for numacontrol which sets up cpu and memory binding:
61
+
To start a job, two bash scripts are potentially required: a [SLURM] submission script, and a wrapper for numacontrol which sets up cpu and memory binding:
0 commit comments