Skip to content
Snippets Groups Projects
Commit d8f42b68 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Make the sbatch file generic!

parent e1acfd28
No related branches found
No related tags found
No related merge requests found
......@@ -3,5 +3,3 @@ dune_add_formcompiler_system_test(UFLFILE conv_diff_dg.ufl
INIFILE conv_diff_dg.mini
NO_TESTS
)
dune_symlink_to_source_files(FILES donkey.sbatch)
#!/bin/bash
# Load modules
ml gcc/6.2
ml intelmpi
ml openblas
ml metis
ml suitesparse
# Set a name for the job
#SBATCH -J conv_diff
# Number of processes
#SBATCH -n 16
# Choose the SLURM partition (sinfo for overview)
#SBATCH -p haswell16c
# Each process needs two PUs: circumvent hyperthreading
#SBATCH -c 2
# Pin processes to cores
# (Possible values: socket, core)
SRUNOPT="--cpu_bind=verbose,core"
# Run the opcount executables
srun $SRUNOPT ./app_conv_diff_deg2_opcount app_conv_diff_deg2_opcount.ini
srun $SRUNOPT ./app_conv_diff_deg3_opcount app_conv_diff_deg3_opcount.ini
srun $SRUNOPT ./app_conv_diff_deg4_opcount app_conv_diff_deg4_opcount.ini
srun $SRUNOPT ./app_conv_diff_deg5_opcount app_conv_diff_deg5_opcount.ini
srun $SRUNOPT ./app_conv_diff_deg6_opcount app_conv_diff_deg6_opcount.ini
srun $SRUNOPT ./app_conv_diff_deg7_opcount app_conv_diff_deg7_opcount.ini
srun $SRUNOPT ./app_conv_diff_deg8_opcount app_conv_diff_deg8_opcount.ini
srun $SRUNOPT ./app_conv_diff_deg9_opcount app_conv_diff_deg9_opcount.ini
srun $SRUNOPT ./app_conv_diff_deg10_opcount app_conv_diff_deg10_opcount.ini
# Run the timing executables
COUNT=0
while [ $COUNT -lt 10 ]; do
srun $SRUNOPT ./app_conv_diff_deg2_nonopcount app_conv_diff_deg2_nonopcount.ini
srun $SRUNOPT ./app_conv_diff_deg3_nonopcount app_conv_diff_deg3_nonopcount.ini
srun $SRUNOPT ./app_conv_diff_deg4_nonopcount app_conv_diff_deg4_nonopcount.ini
srun $SRUNOPT ./app_conv_diff_deg5_nonopcount app_conv_diff_deg5_nonopcount.ini
srun $SRUNOPT ./app_conv_diff_deg6_nonopcount app_conv_diff_deg6_nonopcount.ini
srun $SRUNOPT ./app_conv_diff_deg7_nonopcount app_conv_diff_deg7_nonopcount.ini
srun $SRUNOPT ./app_conv_diff_deg8_nonopcount app_conv_diff_deg8_nonopcount.ini
srun $SRUNOPT ./app_conv_diff_deg9_nonopcount app_conv_diff_deg9_nonopcount.ini
srun $SRUNOPT ./app_conv_diff_deg10_nonopcount app_conv_diff_deg10_nonopcount.ini
COUNT=$((COUNT + 1))
done
......@@ -3,5 +3,3 @@ dune_add_formcompiler_system_test(UFLFILE poisson_dg.ufl
INIFILE poisson_dg.mini
NO_TESTS
)
dune_symlink_to_source_files(FILES donkey.sbatch)
#!/bin/bash
# Load modules
ml gcc/6.2
ml intelmpi
ml openblas
ml metis
ml suitesparse
# Set a name for the job
#SBATCH -J poisson_dg
# Number of processes
#SBATCH -n 16
# Choose the SLURM partition (sinfo for overview)
#SBATCH -p haswell16c
# Each process needs two PUs: circumvent hyperthreading
#SBATCH -c 2
# Pin processes to cores
# (Possible values: socket, core)
SRUNOPT="--cpu_bind=verbose,core"
# Run the opcount executables
srun $SRUNOPT ./app_poisson_dg_deg2_opcount app_poisson_dg_3d_deg2_opcount.ini
srun $SRUNOPT ./app_poisson_dg_deg3_opcount app_poisson_dg_3d_deg3_opcount.ini
srun $SRUNOPT ./app_poisson_dg_deg4_opcount app_poisson_dg_3d_deg4_opcount.ini
srun $SRUNOPT ./app_poisson_dg_deg5_opcount app_poisson_dg_3d_deg5_opcount.ini
srun $SRUNOPT ./app_poisson_dg_deg6_opcount app_poisson_dg_3d_deg6_opcount.ini
srun $SRUNOPT ./app_poisson_dg_deg7_opcount app_poisson_dg_3d_deg7_opcount.ini
srun $SRUNOPT ./app_poisson_dg_deg8_opcount app_poisson_dg_3d_deg8_opcount.ini
srun $SRUNOPT ./app_poisson_dg_deg9_opcount app_poisson_dg_3d_deg9_opcount.ini
srun $SRUNOPT ./app_poisson_dg_deg10_opcount app_poisson_dg_3d_deg10_opcount.ini
# Run the timing executables
COUNT=0
while [ $COUNT -lt 10 ]; do
srun $SRUNOPT ./app_poisson_dg_deg2_nonopcount app_poisson_dg_3d_deg2_nonopcount.ini
srun $SRUNOPT ./app_poisson_dg_deg3_nonopcount app_poisson_dg_3d_deg3_nonopcount.ini
srun $SRUNOPT ./app_poisson_dg_deg4_nonopcount app_poisson_dg_3d_deg4_nonopcount.ini
srun $SRUNOPT ./app_poisson_dg_deg5_nonopcount app_poisson_dg_3d_deg5_nonopcount.ini
srun $SRUNOPT ./app_poisson_dg_deg6_nonopcount app_poisson_dg_3d_deg6_nonopcount.ini
srun $SRUNOPT ./app_poisson_dg_deg7_nonopcount app_poisson_dg_3d_deg7_nonopcount.ini
srun $SRUNOPT ./app_poisson_dg_deg8_nonopcount app_poisson_dg_3d_deg8_nonopcount.ini
srun $SRUNOPT ./app_poisson_dg_deg9_nonopcount app_poisson_dg_3d_deg9_nonopcount.ini
srun $SRUNOPT ./app_poisson_dg_deg10_nonopcount app_poisson_dg_3d_deg10_nonopcount.ini
COUNT=$((COUNT + 1))
done
#!/bin/bash
# IMPORTANT
# Remember to set the working directory of this script through
# sbatch -D <workdir>
# Load modules
ml gcc/6.2
ml intelmpi
ml openblas
ml metis
ml suitesparse
# Set a name for the job
#SBATCH -J poisson_dg
# Number of processes
#SBATCH -n 16
# Choose the SLURM partition (sinfo for overview)
#SBATCH -p haswell16c
# Each process needs two PUs: circumvent hyperthreading
#SBATCH -c 2
# Pin processes to cores
# (Possible values: socket, core)
SRUNOPT="--cpu_bind=verbose,core"
# Search for runnable executables
FILES=$(ls *.ini)
COUNT=0
while [ $COUNT -lt 10 ]; do
for inifile in $FILES
do
exec=${inifile%.pdf}
srun $SRUNOPT ./$exec $inifile
done
COUNT=$((COUNT + 1))
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment