forked from UoB-HPC/advanced-hpc-lbm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjob_submit_d2q9-bgk
61 lines (50 loc) · 2.46 KB
/
job_submit_d2q9-bgk
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
#!/bin/bash
#SBATCH --job-name d2q9-bgk
#SBATCH --nodes 4
#SBATCH --ntasks-per-node 28
#SBATCH --cpus-per-task=1
#SBATCH --time 00:15:00
#SBATCH --partition veryshort
#SBATCH --reservation=COSC026662
#SBATCH --account=COSC026662
#SBATCH --exclude=compute[100-105,127,216,300]
#SBATCH --exclusive
#SBATCH --output d2q9-bgk.out
echo Running on host `hostname`
echo Time is `date`
echo Directory is `pwd`
echo Slurm job ID is $SLURM_JOB_ID
echo This job runs on the following machines:
echo `echo $SLURM_JOB_NODELIST | uniq`
# source env.sh
#######################################
### Run the executable with OpenMP ####
#######################################
# ./d2q9-bgk input_128x128.params obstacles_128x128.dat
# ./d2q9-bgk input_128x256.params obstacles_128x256.dat
# ./d2q9-bgk input_256x256.params obstacles_256x256.dat
# ./d2q9-bgk input_1024x1024.params obstacles_1024x1024.dat
##################################
## Run the executable with MPI ###
##################################
#------- mpirun -------#
# mpirun -np 112 ./d2q9-bgk input_128x128.params obstacles_128x128.dat
# mpirun -np 112 ./d2q9-bgk input_256x256.params obstacles_256x256.dat
# mpirun -np 112 ./d2q9-bgk input_128x256.params obstacles_128x256.dat
mpirun -np 112 ./d2q9-bgk input_1024x1024.params obstacles_1024x1024.dat
# mpirun -print-rank-map -np 112 ./d2q9-bgk input_128x128.params obstacles_128x128.dat
# mpirun -np 4 -genv I_MPI_PIN=1 -l ./d2q9-bgk input_128x128.params obstacles_128x128.dat
# mpirun -np 4 -ppn 2 -bind-to -l ./d2q9-bgk input_128x128.params obstacles_128x128.dat
#------- srun -------#
# srun --mpi=pmi2 ./d2q9-bgk input_128x128.params obstacles_128x128.dat
# srun --mpi=pmi2 -n 4 -l ./d2q9-bgk input_128x128.params obstacles_128x128.dat
# srun --mpi=pmi2 --ntasks=4 -l ./d2q9-bgk input_128x128.params obstacles_128x128.dat
############################################
### Colllect the results on Intel Advisor###
############################################
# advixe-cl --collect=roofline --project-dir=./advi_results -- ./d2q9-bgk input_128x128.params obstacles_128x128.dat
# advixe-cl --collect=roofline --project-dir=./advi_results -- ./d2q9-bgk input_256x256.params obstacles_256x256.dat
# advixe-cl --collect=roofline --project-dir=./advi_results -- ./d2q9-bgk input_1024x1024.params obstacles_1024x1024.dat
# srun --mpi=pmi2 advixe-cl -collect survey -project-dir ./advi_results ./d2q9-bgk input_1024x1024.params obstacles_1024x1024.dat
#---- opens up advisor gui ----#
# advisor-gui advi_results