Add PBS scripts
This commit is contained in:
parent
911a8a69a4
commit
6cb3587222
63
pwr_project.script
Normal file
63
pwr_project.script
Normal file
@ -0,0 +1,63 @@
|
||||
#!/bin/bash
|
||||
|
||||
## parameters
|
||||
#PBS -N pwr_project
|
||||
#PBS -q entry_teachingq
|
||||
#PBS -l select=1:ncpus=32:mpiprocs=32:mem=192gb
|
||||
#PBS -o pwr_project_log.out
|
||||
#PBS -e pwr_project_log.err
|
||||
|
||||
module load python/gcc
|
||||
module load openmpi/gcc
|
||||
|
||||
## environment
|
||||
cd ~/pwr_project
|
||||
|
||||
## delete previous runs
|
||||
rm pwr_project_log.*
|
||||
|
||||
## execute Diag-Vec
|
||||
echo "---------------------" > times_diag_vec.txt
|
||||
echo "Durchlauf `date`:" >> times_diag_vec.txt
|
||||
|
||||
echo "Invoke with size of 8:" >> times_diag_vec.txt
|
||||
{ time mpiexec -n 8 python3 ./src/main_diag_vec.py ; } 2>> times_diag_vec.txt
|
||||
|
||||
echo "Invoke with size of 16:" >> times_diag_vec.txt
|
||||
{ time mpiexec -n 16 python3 ./src/main_diag_vec.py ; } 2>> times_diag_vec.txt
|
||||
|
||||
echo "Invoke with size of 32:" >> times_diag_vec.txt
|
||||
{ time mpiexec -n 32 python3 ./src/main_diag_vec.py ; } 2>> times_diag_vec.txt
|
||||
|
||||
echo "---------------------" >> times_diag_vec.txt
|
||||
|
||||
## execute Matrix-Vector
|
||||
echo "---------------------" > times_matrix_vec.txt
|
||||
echo "Durchlauf `date`:" >> times_matrix_vec.txt
|
||||
|
||||
echo "Invoke with size of 8:" >> times_matrix_vec.txt
|
||||
{ time mpiexec -n 8 python3 ./src/main_matrix_vec.py ; } 2>> times_matrix_vec.txt
|
||||
|
||||
echo "Invoke with size of 16:" >> times_matrix_vec.txt
|
||||
{ time mpiexec -n 16 python3 ./src/main_matrix_vec.py ; } 2>> times_matrix_vec.txt
|
||||
|
||||
echo "Invoke with size of 32:" >> times_matrix_vec.txt
|
||||
{ time mpiexec -n 32 python3 ./src/main_matrix_vec.py ; } 2>> times_matrix_vec.txt
|
||||
|
||||
echo "---------------------" >> times_matrix_vec.txt
|
||||
|
||||
## execute CG
|
||||
echo "---------------------" > times_cg.txt
|
||||
echo "Durchlauf `date`:" >> times_cg.txt
|
||||
|
||||
echo "Invoke with size of 8:" >> times_cg.txt
|
||||
{ time mpiexec -n 8 python3 ./src/main_cg.py ; } 2>> times_cg.txt
|
||||
|
||||
echo "Invoke with size of 16:" >> times_cg.txt
|
||||
{ time mpiexec -n 16 python3 ./src/main_cg.py ; } 2>> times_cg.txt
|
||||
|
||||
echo "Invoke with size of 32:" >> times_cg.txt
|
||||
{ time mpiexec -n 32 python3 ./src/main_cg.py ; } 2>> times_cg.txt
|
||||
|
||||
echo "---------------------" >> times_cg.txt
|
||||
echo "" >> times_cg.txt
|
37
pwr_project_timeit.script
Normal file
37
pwr_project_timeit.script
Normal file
@ -0,0 +1,37 @@
|
||||
#!/bin/bash
|
||||
|
||||
## parameters
|
||||
#PBS -N pwr_project_timeit
|
||||
#PBS -q entry_teachingq
|
||||
#PBS -l select=1:ncpus=32:mpiprocs=32:mem=512gb
|
||||
#PBS -o pwr_project_timeit_log.out
|
||||
#PBS -e pwr_project_timeit_log.err
|
||||
|
||||
module load python/gcc
|
||||
module load openmpi/gcc
|
||||
|
||||
## environment
|
||||
cd ~/pwr_project
|
||||
|
||||
## delete previous runs
|
||||
rm pwr_project_timeit_log.*
|
||||
|
||||
N=10000
|
||||
|
||||
## execute Diag-Vec
|
||||
echo "Diag-Vec"
|
||||
mpiexec -n 8 python3 ./src/main_diag_vec_timeit.py $N
|
||||
mpiexec -n 16 python3 ./src/main_diag_vec_timeit.py $N
|
||||
mpiexec -n 32 python3 ./src/main_diag_vec_timeit.py $N
|
||||
|
||||
## execute Matrix-Vector
|
||||
echo "Matrix-Vec"
|
||||
mpiexec -n 8 python3 ./src/main_matrix_vec_timeit.py $N
|
||||
mpiexec -n 16 python3 ./src/main_matrix_vec_timeit.py $N
|
||||
mpiexec -n 32 python3 ./src/main_matrix_vec_timeit.py $N
|
||||
|
||||
## execute CG
|
||||
echo "CG"
|
||||
mpiexec -n 8 python3 ./src/main_cg_timeit.py $(expr $N / 10)
|
||||
mpiexec -n 16 python3 ./src/main_cg_timeit.py $(expr $N / 10)
|
||||
mpiexec -n 32 python3 ./src/main_cg_timeit.py $(expr $N / 10)
|
36
pwr_project_timeit_weak.script
Normal file
36
pwr_project_timeit_weak.script
Normal file
@ -0,0 +1,36 @@
|
||||
#!/bin/bash
|
||||
|
||||
## parameters
|
||||
#PBS -N pwr_project_timeit_weak
|
||||
#PBS -q entry_teachingq
|
||||
#PBS -l select=1:ncpus=32:mpiprocs=32:mem=512gb
|
||||
#PBS -o pwr_project_timeit_weak_log.out
|
||||
#PBS -e pwr_project_timeit_weak_log.err
|
||||
|
||||
module load python/gcc
|
||||
module load openmpi/gcc
|
||||
|
||||
## environment
|
||||
cd ~/pwr_project
|
||||
|
||||
## delete previous runs
|
||||
rm pwr_project_timeit_weak_log.*
|
||||
|
||||
N=10000
|
||||
DN=$(expr 2 \* $N)
|
||||
|
||||
## execute Diag-Vec
|
||||
echo "Diag-Vec"
|
||||
mpiexec -n 8 python3 ./src/main_diag_vec_timeit.py $N
|
||||
mpiexec -n 32 python3 ./src/main_diag_vec_timeit.py $DN
|
||||
|
||||
## execute Matrix-Vector
|
||||
echo "Matrix-Vec"
|
||||
mpiexec -n 8 python3 ./src/main_matrix_vec_timeit.py $N
|
||||
mpiexec -n 32 python3 ./src/main_matrix_vec_timeit.py $DN
|
||||
|
||||
|
||||
## execute CG
|
||||
echo "CG"
|
||||
mpiexec -n 8 python3 ./src/main_cg_timeit.py $(expr $N / 10)
|
||||
mpiexec -n 32 python3 ./src/main_cg_timeit.py $(expr $DN / 10)
|
Loading…
Reference in New Issue
Block a user