#!/bin/bash ## parameters #PBS -N pwr_project #PBS -q entry_teachingq #PBS -l select=1:ncpus=32:mpiprocs=32:mem=512gb #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