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
+39-43Lines changed: 39 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -156,16 +156,16 @@ You may need to make the `wrapper.sh` script executable (`chmod +x wrapper.sh`).
156
156
157
157
### Running LAMMPS+GPU on the HPC Platform
158
158
159
-
To start a job, two bash scripts are required: a [Slurm][ref-slurm] submission script, and a wrapper for `numactl` which sets up CPU and memory binding.
159
+
To start a job, two bash scripts are required: a [Slurm][ref-slurm] submission script, and a wrapper for [CUDA MPS][ref-slurm-gh200-multi-rank-per-gpu].
To enable oversubscription of MPI ranks per GPU, you'll need to use the `mps-wrapper.sh` script provided at the following page: [NVIDIA GH200 GPU nodes: multiple ranks per GPU][ref-slurm-gh200-multi-rank-per-gpu]
180
180
181
181
1. Time format: `HH:MM:SS`.
182
-
2. For LAMMPS+gpu its often beneficial to use more than 1 MPI rank per GPU.
182
+
2. For LAMMPS+gpu it is often beneficial to use more than 1 MPI rank per GPU. To enable oversubscription of MPI ranks per GPU, you'll need to use the `mps-wrapper.sh` script provided in the following section: [multiple ranks per GPU][ref-slurm-gh200-multi-rank-per-gpu].
183
183
3. Change `<ACCOUNT>` to your project account name.
184
184
4. Change `<LAMMPS_UENV>` to the name (or path) of the LAMMPS uenv you want to use.
185
-
5. Load the `gpu` uenv view.
186
-
187
-
#### LAMMPS + kokkos input file
185
+
5. Enable the `gpu` uenv view.
188
186
189
-
Below is the input file used in the above script, defining a 3d Lennard-Jones melt.
190
-
191
-
```
192
-
# 3d Lennard-Jones melt
193
-
variable x index 200
194
-
variable y index 200
195
-
variable z index 200
196
-
variable t index 1000
187
+
#### LAMMPS + GPU input file
188
+
??? example "LAMMPS+GPU input file, defining a 3d Lennard-Jones melt."
189
+
```
190
+
# 3d Lennard-Jones melt
191
+
variable x index 200
192
+
variable y index 200
193
+
variable z index 200
194
+
variable t index 1000
197
195
198
-
variable xx equal 1*$x
199
-
variable yy equal 1*$y
200
-
variable zz equal 1*$z
196
+
variable xx equal 1*$x
197
+
variable yy equal 1*$y
198
+
variable zz equal 1*$z
201
199
202
-
variable interval equal $t/2
200
+
variable interval equal $t/2
203
201
204
-
units lj
205
-
atom_style atomic
202
+
units lj
203
+
atom_style atomic
206
204
207
-
lattice fcc 0.8442
208
-
region box block 0 ${xx} 0 ${yy} 0 ${zz}
209
-
create_box 1 box
210
-
create_atoms 1 box
211
-
mass 1 1.0
205
+
lattice fcc 0.8442
206
+
region box block 0 ${xx} 0 ${yy} 0 ${zz}
207
+
create_box 1 box
208
+
create_atoms 1 box
209
+
mass 1 1.0
212
210
213
-
velocity all create 1.44 87287 loop geom
211
+
velocity all create 1.44 87287 loop geom
214
212
215
-
pair_style lj/cut 2.5
216
-
pair_coeff 1 1 1.0 1.0 2.5
213
+
pair_style lj/cut 2.5
214
+
pair_coeff 1 1 1.0 1.0 2.5
217
215
218
-
neighbor 0.3 bin
219
-
neigh_modify delay 0 every 20 check no
216
+
neighbor 0.3 bin
217
+
neigh_modify delay 0 every 20 check no
220
218
221
-
fix 1 all nve
219
+
fix 1 all nve
222
220
223
-
thermo ${interval}
224
-
thermo_style custom step time temp press pe ke etotal density
225
-
run_style verlet
226
-
run $t
227
-
```
221
+
thermo ${interval}
222
+
thermo_style custom step time temp press pe ke etotal density
223
+
run_style verlet
224
+
run $t
225
+
```
228
226
229
227
### Running on Eiger
230
228
@@ -283,8 +281,9 @@ Alternatively, the CMake variable `-DEXTERNAL_KOKKOS=yes` should force CMake to
283
281
284
282
#### Using LAMMPS uenv as an upstream Spack Instance
285
283
286
-
If you'd like to extend the existing uenv with additional packages (or your own), you can use the provide LAMMPS uenv to provide all dependencies needed to build your customization. See https://eth-cscs.github.io/alps-uenv/uenv-compilation-spack/ for more information.
284
+
If you'd like to extend the existing uenv with additional packages (or your own), you can use the LAMMPS uenv to provide all dependencies needed to build your customization. See [here](https://eth-cscs.github.io/alps-uenv/tutorial-spack) for more information.
0 commit comments