1
0
pwr_project/pbs_scripts/pwr_project_timeit_weak.script

37 lines
835 B
Plaintext
Raw Permalink Normal View History

2024-07-27 13:27:39 +00:00
#!/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)