File: example-job-script

package info (click to toggle)
espresso 6.7-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 311,068 kB
  • sloc: f90: 447,429; ansic: 52,566; sh: 40,631; xml: 37,561; tcl: 20,077; lisp: 5,923; makefile: 4,503; python: 4,379; perl: 1,219; cpp: 761; fortran: 618; java: 568; awk: 128
file content (24 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
#
# example script on NERSC edison
#
#PBS -q debug
#PBS -N EXX_water_32_example
#PBS -l walltime=0:10:00
#PBS -l mppwidth=288
#PBS -V
#PBS -j oe
#PBS -e tst.$PBS_JOBID.err
#PBS -o tst.$PBS_JOBID.out

cd $PBS_O_WORKDIR

CODE_n=/usr/bin/cp.x

# example of number of MPI tasks = 2 * number of electronic states
# using 256 MPI tasks and 2 OpenMP threads per MPI tasks
# also  256 MPI tasks allow to use task group parallelizion, here -ntg 2 is used
#
export OMP_NUM_THREADS=2
aprun -j 2 -n 256 -d 2 -cc depth  $CODE_n -ntg 2 -ndiag 121 < 01.input > 01.out 
aprun -j 2 -n 256 -d 2 -cc depth  $CODE_n -ntg 2 -ndiag 121 < 02.input > 02.out