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
### Running LAMMPS with Kokkos on the HPC Platform
60
60
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:
61
+
To start a job, two bash scripts are potentially required: a [SLURM] submission script, and a wrapper for `numactl` which sets up CPU and memory binding:
62
62
63
63
submission script:
64
64
@@ -85,7 +85,7 @@ srun ./wrapper.sh lmp -in lj_kokkos.in -k on g 1 -sf kk -pk kokkos gpu/aware on
85
85
3. Change `<ACCOUNT>` to your project account name.
86
86
4. Change `<LAMMPS_UENV>` to the name (or path) of the LAMMPS uenv you want to use.
87
87
88
-
numacontrol wrapper:
88
+
`numactl` wrapper:
89
89
90
90
```bash title="wrapper.sh"
91
91
#!/bin/bash
@@ -227,19 +227,17 @@ run $t
227
227
228
228
### Using CMake
229
229
230
-
```
231
-
If you'd like to rebuild LAMMPS from source to add additional packages or to use your own customized code, you can use the develop views contained within the uenv image to provide you with all the necessary libraries and command-line tools you'll need. For the following, we'd recommend obtaining an interactive node and building inside the tempfs directory.
232
-
```
230
+
If you'd like to rebuild LAMMPS from source to add additional packages or to use your own customized code, you can use the develop views contained within the uenv image to provide you with all the necessary libraries and command-line tools you'll need.
231
+
For the following, we'd recommend obtaining an interactive node and building inside the tmpfs directory.
After you've obtained a version of LAMMPS you'd like to build, extract it in the above temporary folder, and create a build directory. Load one of the two following views:
239
+
After you've obtained a version of LAMMPS you'd like to build, extract it in the above temporary folder and create a build directory.
240
+
Load one of the two following views:
243
241
244
242
```
245
243
#build environment for lammps +kokkos package, without providing lmp executeable
and now you can build your local copy of LAMMPS. For example to build with kokkos and the `MOLECULE` package enabled:
249
+
and now you can build your local copy of LAMMPS.
250
+
For example to build with kokkos and the `MOLECULE` package enabled:
252
251
253
252
```
254
253
CC=mpicc CXX=mpic++ cmake \
@@ -271,7 +270,9 @@ CC=mpicc CXX=mpic++ cmake \
271
270
272
271
!!! `Warning` !!!
273
272
274
-
If you are downloading LAMMPS from github or their website and intend to use kokkos for acceleration, there is an issue with cray-mpich and kokkos versions <= 4.3. For LAMMPS to work correctly on our system, you need a LAMMPS version which provides kokkos >= 4.4. Alternatively, the cmake variable `-DEXTERNAL_KOKKOS=yes` should force cmake to use the kokkos version (4.5.01) provided by the uenv, rather than the one contained within the lammps distribution.
273
+
If you are downloading LAMMPS from github or their website and intend to use kokkos for acceleration, there is an issue with cray-mpich and kokkos versions <= 4.3.
274
+
For LAMMPS to work correctly on our system, you need a LAMMPS version which provides kokkos >= 4.4.
275
+
Alternatively, the cmake variable `-DEXTERNAL_KOKKOS=yes` should force cmake to use the kokkos version (4.5.01) provided by the uenv, rather than the one contained within the lammps distribution.
275
276
276
277
### Using LAMMPS uenv as an upstream Spack Instance
277
278
@@ -280,7 +281,7 @@ If you'd like to extend the existing uenv with additional packages (or your own)
0 commit comments