-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbatch_strong_p8.sh
More file actions
88 lines (77 loc) · 2.31 KB
/
batch_strong_p8.sh
File metadata and controls
88 lines (77 loc) · 2.31 KB
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
77
78
79
80
81
82
83
84
85
86
87
88
#!/bin/bash
# This script is intepreted by the Bourne Shell, sh
#
# Documentation for SGE is found in:
# http://docs.oracle.com/cd/E19279-01/820-3257-12/n1ge.html
#
# Tell SGE which shell to run the job script in rather than depending
# on SGE to try and figure it out.
#$ -S /bin/bash
#
# Export all my environment variables to the job
#$ -V
# Tun the job in the same directory from which you submitted it
#$ -cwd
#
# Give a name to the job
#$ -N apf-strong-scale
#
#$ -pe orte 8
# Specify a time limit for the job
#$ -l h_rt=00:02:00
#
# Join stdout and stderr so they are reported in job output file
#$ -j y
#
# Run on the mpi queue, not more than 2 nodes
#$ -q mpi.q
#
# Specifies the circumstances under which mail is to be sent to the job owner
# defined by -M option. For example, options "bea" cause mail to be sent at the
# begining, end, and at abort time (if it happens) of the job.
# Option "n" means no mail will be sent.
#$ -m aeb
#
# *** Change to the address you want the notification sent to
#$ -M yourLogin@ucsd.edu
#
# Change to the directory where the job was submitted from
cd $SGE_O_WORKDIR
echo
echo " *** Current working directory"
pwd
echo
echo " *** Compiler"
# Output which compiler are we using and the environment
mpicc -v
echo
echo " *** Environment"
printenv
echo
echo ">>> Job Starts"
date
# Commands go here
module load rocks-openmpi_openib
mpirun -np 1 ./apf -n 2047 -i 100 -x 1 -y 1
mpirun -np 2 ./apf -n 2047 -i 100 -x 1 -y 2
mpirun -np 2 ./apf -n 2047 -i 100 -x 2 -y 1
mpirun -np 4 ./apf -n 2047 -i 100 -x 1 -y 4
mpirun -np 4 ./apf -n 2047 -i 100 -x 2 -y 2
mpirun -np 4 ./apf -n 2047 -i 100 -x 4 -y 1
mpirun -np 8 ./apf -n 2047 -i 100 -x 1 -y 8
mpirun -np 8 ./apf -n 2047 -i 100 -x 2 -y 4
mpirun -np 8 ./apf -n 2047 -i 100 -x 4 -y 2
mpirun -np 8 ./apf -n 2047 -i 100 -x 8 -y 1
echo "-------------- NO COMM ------------"
mpirun -np 1 ./apf -n 2047 -i 100 -x 1 -y 1 -k
mpirun -np 2 ./apf -n 2047 -i 100 -x 1 -y 2 -k
mpirun -np 2 ./apf -n 2047 -i 100 -x 2 -y 1 -k
mpirun -np 4 ./apf -n 2047 -i 100 -x 1 -y 4 -k
mpirun -np 4 ./apf -n 2047 -i 100 -x 2 -y 2 -k
mpirun -np 4 ./apf -n 2047 -i 100 -x 4 -y 1 -k
mpirun -np 8 ./apf -n 2047 -i 100 -x 1 -y 8 -k
mpirun -np 8 ./apf -n 2047 -i 100 -x 2 -y 4 -k
mpirun -np 8 ./apf -n 2047 -i 100 -x 4 -y 2 -k
mpirun -np 8 ./apf -n 2047 -i 100 -x 8 -y 1 -k
date
echo ">>> Job Ends"