|
| 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 | +##PBS -M info@mat3ra.com |
| 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 |
0 commit comments