Skip to content

Commit 2b8fc51

Browse files
authored
Merge pull request #18 from Exabyte-io/chore/SOF-7595
chore: pbs job script for lammps calculation using gpu + cleanup
2 parents 56d07e0 + 0c51949 commit 2b8fc51

File tree

8 files changed

+61
-312
lines changed

8 files changed

+61
-312
lines changed

espresso/gpu/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ Time taken by CPU job (8 MPI on 8 CPUs):
1515
```
1616
PWSCF : 18m 0.56s CPU 18m25.33s WALL
1717
```
18+
19+
- A step-by-step guide is available in our [documentation](
20+
https://docs.mat3ra.com/tutorials/jobs-cli/qe-gpu/).

espresso/gpu/job.cpu.pbs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/bin/bash
2-
32
# ---------------------------------------------------------------- #
43
# #
54
# Example job submission script for Mat3ra.com platform #
@@ -20,7 +19,6 @@
2019

2120
#PBS -N QE-GPU
2221
#PBS -j oe
23-
##PBS -q comp-002-zone-a-production-20160630-cluster-007.exabyte.io
2422
#PBS -l nodes=1
2523
#PBS -l ppn=8
2624
#PBS -l walltime=00:01:00:00

espresso/gpu/job.gpu.pbs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
2-
32
# ---------------------------------------------------------------- #
43
# #
5-
# Example job submission script for Mat3ra.com platform #
4+
# Example job submission script for Mat3ra.com platform #
65
# #
76
# Shows resource manager directives for: #
87
# #
@@ -20,7 +19,6 @@
2019

2120
#PBS -N QE-GPU
2221
#PBS -j oe
23-
##PBS -q comp-002-zone-a-production-20160630-cluster-007.exabyte.io
2422
#PBS -l nodes=1
2523
#PBS -l ppn=8
2624
#PBS -l walltime=00:01:00:00

lammps/Cu_u3.eam

Lines changed: 0 additions & 305 deletions
This file was deleted.

lammps/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,13 @@ Most of the funding for LAMMPS has come from the US Department of Energy (DOE).
99
LAMMPS is open-source software distributed under the terms of the GNU Public
1010
License Version 2 (GPLv2).
1111

12-
# LAMMPS+M3GNet
12+
## Examples
13+
14+
### Energy minimization
15+
An example calculation of energy minimization of two dimensional Lennard-Jones
16+
melt is available under [emin](./emin) directory.
17+
18+
### LAMMPS+M3GNet
1319
The example under the [m3gnet](./m3gnet) directory uses M3GNet pair potential.
1420

1521

File renamed without changes.

lammps/emin/job.gpu.pbs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
# ---------------------------------------------------------------- #
3+
# #
4+
# Example job submission script for Mat3ra.com platform #
5+
# #
6+
# Shows resource manager directives for: #
7+
# #
8+
# 1. the name of the job (-N) #
9+
# 2. the number of nodes to be used (-l nodes=) #
10+
# 3. the number of processors per node (-l ppn=) #
11+
# 4. the walltime in dd:hh:mm:ss format (-l walltime=) #
12+
# 5. queue (-q) D, OR, OF, SR, SF #
13+
# 6. merging standard output and error (-j oe) #
14+
# 7. email about job abort, begin, end (-m abe) #
15+
# 8. email address to use (-M) #
16+
# #
17+
# For more info visit https://docs.mat3ra.com/jobs-cli/overview/ #
18+
# ---------------------------------------------------------------- #
19+
20+
#PBS -N LAMMPS-GPU
21+
#PBS -j oe
22+
#PBS -l nodes=1
23+
#PBS -l ppn=8
24+
#PBS -l walltime=00:01:00:00
25+
#PBS -q GSF
26+
##PBS -m abe
27+
28+
#
29+
## Uncomment the line below and put a desired project name, e.g.:
30+
## "seminar-default" or "john-project"
31+
## NOTE: this is required when using organizational accounts.
32+
## more at https://docs.mat3ra.com/jobs-cli/batch-scripts/directives/.
33+
## The job will be charged to the corresponding project.
34+
## When commented out, the default project for user is assumed.
35+
##PBS -A <PROJECT_NAME_IN_ACCOUNTING_SYSTEM>
36+
37+
# load module
38+
module load lammps/2024.08.29.2-i-2023.1-cuda-12.4
39+
40+
# go to the job working directory
41+
cd $PBS_O_WORKDIR
42+
# `-sf gpu` flag selects number of GPUs automatically. It also appends `/gpu` to
43+
# all supported pair styles. To set number of GPUs explicitly, use `-pk gpu N`.
44+
# GPU acceleration can be manually set for a pair style in the input file:
45+
# - pair_style lj/cut 2.5
46+
# + pair_style lj/cut/gpu 2.5
47+
# logs are written to log.lammps, it can be specified with `-l output.log`
48+
mpirun -np $PBS_NP lmp -sf gpu -i in.min

lammps/job.pbs renamed to lammps/emin/job.pbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#PBS -l walltime=00:00:10:00
2626
#PBS -q D
2727
#PBS -m abe
28-
28+
2929
#
3030
## Uncomment the line below and put a desired project name, e.g.:
3131
## "seminar-default", or "john-projectname".
@@ -42,6 +42,7 @@ module load lammps/12Dec2018-i-14.0.3.174-impi-5.0.2.044
4242
export LAMMPS_EXECUTABLE=lammps
4343

4444
## Uncomment the lines below module to enable the use of GPU-accelerated version
45+
## Also, please submit the job to a GPU enabled queue e.g., `#PBS -q GOF`
4546
# export LAMMPS_EXECUTABLE=lmp
4647
# module load lammps/2022.01.07-g-11.2.0-ompi-4.1.1-cuda-11.5
4748
# cp $PBS_NODEFILE .exabyte/$PBS_JOBID

0 commit comments

Comments
 (0)