-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenmpi.pbs
76 lines (73 loc) · 3.91 KB
/
openmpi.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#!/bin/bash
################################################################
## ##
## Campus Cluster ##
## Sample Open MPI Job Batch Script ##
## ##
## PBS Options ##
## ##
## option -l ##
## walltime: maximum wall clock time (hh:mm:ss) ##
## nodes: number of 12-core(taub) nodes ##
## 16-core(golub) nodes ##
## 20-core(golub) nodes ##
## ppn: cores per node to use (1 thru 12) on taub ##
## (1 thru 16) on golub ##
## (1 thru 20) on golub ##
## ##
## option -N ##
## job name (default = name of script file) ##
## ##
## option -q ##
## queue name ( -q name_of_queue ) ##
## ##
## option -o ##
## filename for standard output at end of job ##
## (default = <job_name>.o<job_id>). File is written to ##
## directory from which qsub was executed. Remove extra ##
## "##" from the PBS -o line if you want to name your ##
## own file. ##
## ##
## option -e ##
## filename for standard error at end of job ##
## (default = <job_name>.e<job_id>). File is written to ##
## directory from which qsub was executed. Remove extra ##
## "##" from the PBS -e line if you want to name your ##
## own file. ##
## ##
## option -j ##
## Join the standard output and standard error streams ##
## of the job ##
## ( -j oe merges stderr with stdout and generates a ##
## stdout file <job_name>.o<job_id> ##
## -j eo merges stdout with stderr and generates a ##
## stderr file <job_name>.e<job_id> ) ##
## ##
## option -m ##
## mail_options (email notifications) ##
## The mail_options argument is a string which consists ##
## of either the single character "n", or one or more of ##
## the characters "a", "b", and "e". ##
## ( -m a Send mail when the job is aborted. ##
## -m be Send mail when the job begins execution and ##
## when the job terminates. ##
## -m n Do not send mail. ) ##
## ##
################################################################
#
#PBS -l walltime=00:05:00
#PBS -l nodes=2:ppn=12
#PBS -N openmpi_job
#PBS -q secondary
#PBS -j oe
###PBS -o openmpijob.out
###PBS -e openmpijob.err
###PBS -m be
#
#####################################
# Load MPI module (Enable MPI in user environment)
module load openmpi/1.8.4-intel-15.0
# Change to the directory from which the batch job was submitted
cd $PBS_O_WORKDIR
# Run the MPI code
mpiexec ./a.out