forked from gweishar/Apex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_perfmonce_array.sh
63 lines (44 loc) · 1.43 KB
/
run_perfmonce_array.sh
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
#!/usr/bin/env zsh
### Job name and array definition: run jobs with ID (1,2,3,5)
### Note: all jobs may run parallely
#BSUB -J "myArray[1-6]"
### File / path where STDOUT & STDERR will be written
### %J is the job ID, %I is the array ID
#BSUB -o perfomance_array.%J.%I
### Request the time you need for execution in minutes
### The format for the parameter is: [hour:]minute,
### that means for 80 minutes you could also use this: 1:20
#BSUB -W 3:00
### Send email when job is done
#BSUB -u [email protected]
#BSUB -N
### Request memory you need for your job in TOTAL in MB
#BSUB -M 4024
### Request the number of compute slots you want to use
#BSUB -n 8
### Use esub for Open MPI
#BSUB -a openmpi
### Use a specific machine
#BSUB -m mpi-l-bull
### which one array job is this?
echo LSB_JOBINDEX: $LSB_JOBINDEX
case "$LSB_JOBINDEX" in
1)
mpirun -n 8 ./Apex-opt -i problems/performance_test/d_steady_perth_17920.i
;;
2)
mpirun -n 8 ./Apex-opt -i problems/performance_test/d_steady_perth_133920.i
;;
3)
mpirun -n 8 ./Apex-opt -i problems/performance_test/d_steady_perth_430080.i
;;
4)
mpirun -n 8 ./Apex-opt -i problems/performance_test/d_steady_perth_995600.i
;;
5)
mpirun -n 8 ./Apex-opt -i problems/performance_test/d_steady_perth_1900800.i
;;
6)
mpirun -n 8 ./Apex-opt -i problems/performance_test/d_steady_perth_3248000.i
;;
esac