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
You can load the `kokkos` or `gpu` view from the uenv to make the `lmp` executable available.
46
46
The executable in both these views support GPUs:
47
47
48
-
```bash
49
-
#lammps +kokkos package
50
-
uenv start --view kokkos lammps/2024:v2
51
-
#lammps +gpu package, Kokkos disabled
52
-
uenv start --view gpu lammps/2024:v2
53
-
```
48
+
=== "Kokkos"
49
+
```bash
50
+
#lammps +kokkos package
51
+
uenv start --view kokkos lammps/2024:v2
52
+
```
53
+
=== "GPU"
54
+
```bash
55
+
#lammps +gpu package
56
+
uenv start --view gpu lammps/2024:v2
57
+
```
54
58
55
59
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:
56
60
57
-
```bash
58
-
# build environment for lammps +kokkos package, without providing lmp executable
59
-
uenv start --view develop-kokkos lammps/2024:v2
60
-
# build environment for lammps +gpu package, without providing lmp executable
61
-
uenv start --view develop-gpu lammps/2024:v2
62
-
```
61
+
=== "Kokkos"
62
+
```bash
63
+
# build environment for lammps +kokkos package, without providing lmp executable
64
+
uenv start --view develop-kokkos lammps/2024:v2
65
+
```
66
+
=== "GPU"
67
+
```bash
68
+
# build environment for lammps +gpu package, without providing lmp executable
69
+
uenv start --view develop-gpu lammps/2024:v2
70
+
```
63
71
64
72
### Running LAMMPS with Kokkos on the HPC Platform
65
73
@@ -281,12 +289,16 @@ mkdir /dev/shm/lammps_build; cd /dev/shm/lammps_build
281
289
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.
282
290
Load one of the two following views:
283
291
284
-
```
285
-
#build environment for lammps +kokkos package, without providing lmp executable
#build environment for lammps +gpu package, without providing lmp executable
288
-
uenv start --view develop-gpu lammps/2024:v2-rc1
289
-
```
292
+
=== "Kokkos"
293
+
```bash
294
+
#build environment for lammps +kokkos package, without providing lmp executable
295
+
uenv start --view develop-kokkos lammps/2024:v2
296
+
```
297
+
=== "GPU"
298
+
```bash
299
+
#build environment for lammps +gpu package, without providing lmp executable
300
+
uenv start --view develop-gpu lammps/2024:v2
301
+
```
290
302
291
303
and now you can build your local copy of LAMMPS.
292
304
For example to build with Kokkos and the `MOLECULE` package enabled:
@@ -320,71 +332,6 @@ For LAMMPS to work correctly on our system, you need a LAMMPS version which prov
320
332
321
333
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.
Then create the path and file `$SCRATCH/custom_env/spack.yaml`. We'll disable the KOKKOS package (and enable the GPU package via +cuda spec), and add the CG-SPICA package (via the +cg-spica spec) as an example. You can get the full list of options on [the LAMMPS spack package overview](https://packages.spack.io/package.html?name=lammps).
0 commit comments