-
Notifications
You must be signed in to change notification settings - Fork 1
/
job.pbs
54 lines (48 loc) · 2.21 KB
/
job.pbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# ---------------------------------------------------------------- #
# #
# Example job submission script for Mat3ra.com platform #
# #
# Shows resource manager directives for: #
# #
# 1. the name of the job (-N) #
# 2. the number of nodes to be used (-l nodes=) #
# 3. the number of processors per node (-l ppn=) #
# 4. the walltime in dd:hh:mm:ss format (-l walltime=) #
# 5. queue (-q) D, OR, OF, SR, SF #
# 6. merging standard output and error (-j oe) #
# 7. email about job abort, begin, end (-m abe) #
# 8. email address to use (-M) #
# #
# For more information visit https://docs.mat3ra.com/cli/jobs #
# ---------------------------------------------------------------- #
#PBS -N QE-CP.X-WF-H2O-32
#PBS -j oe
#PBS -l nodes=1
#PBS -l ppn=1
#PBS -l walltime=00:01:00:00
#PBS -q D
#PBS -m abe
#PBS -M [email protected]
##PBS -W depend=afterok:JOB_ID_TO_WAIT_FOR
#
## Uncomment the line below and put a desired project name, e.g.:
## "seminar-default" or "john-project"
## NOTE: this is required when using organizational accounts.
## more at https://docs.mat3ra.com/jobs-cli/batch-scripts/directives/.
## The job will be charged to the corresponding project.
## When commented out, the default project for user is assumed.
##PBS -A ACCOUNTING_PROJECT_NAME
# load module
module load espresso/7.2-g-11.2.0-ompi-4.1.1-libxc-6.2.0
# go to the job working directory
cd $PBS_O_WORKDIR
# NOTE due to issues with OpenMPI 4.1.1 we currently need to copy
# the PBS_NODEFILE into the .exabyte hidden folder in the WORKDIR
# in order for MPI to be correctly configured.
cp $PBS_NODEFILE .exabyte/$PBS_JOBID
# link input sources
cd output
ln -sf ../input/* .
# run the calculation
mpirun -np $PBS_NP cp.x -in generate_dft_data.in | tee generate_dft_data.out