forked from idaholab/stork
-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_perfmonce_array_nproc.sh
60 lines (38 loc) · 1.27 KB
/
run_perfmonce_array_nproc.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
#!/usr/bin/env zsh
### Job name and array definition: run jobs with ID (1,2,3,4)
### Note: all jobs may run parallely
#BSUB -J "myArray_nproc[1-4]"
### File / path where STDOUT & STDERR will be written
### %J is the job ID, %I is the array ID
#BSUB -o job_logs/perfomance_strong.%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 2048
### Use esub for Open MPI
#BSUB -a openmpi
### Use a specific machine
#BSUB -m mpi-s-bull
### Request number of slots
#BSUB -n 64
### 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_1900800.i
;;
2)
mpirun -n 16 ./Apex-opt -i problems/performance_test/d_steady_perth_1900800.i
;;
3)
mpirun -n 32 ./Apex-opt -i problems/performance_test/d_steady_perth_1900800.i
;;
4)
mpirun -n 64 ./Apex-opt -i problems/performance_test/d_steady_perth_1900800.i
;;
esac