Skip to content
Snippets Groups Projects

Add performance regression testsuite

Merged Sebastian Ohlmann requested to merge performance_testsuite into develop
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
  • fafb4f75
    Fix logic of parallel runs · fafb4f75
    Sebastian Ohlmann authored
    Rename JOBS to TASKS. This now corresponds to the number of available
    tasks. The number of jobs run in parallel is then computed as
    $TASKS/$NPROCS where NPROCS gives the number of processors per run.
@@ -56,7 +56,8 @@ SLURM=${SLURM:-false}
SALLOC=${SALLOC:-true}
TESTS=${TESTS:-all}
NODES=${NODES:-1}
JOBS=${JOBS:-1}
TASKS=${TASKS:-1}
NPROCS=${NPROCS:-1}
comparison="no"
while getopts "hlscp:d:t:" opt ; do
@@ -110,8 +111,8 @@ echo "*****************************************"
if [[ "$SLURM" == "true" && "$SALLOC" == "true" ]]; then
cd $run_directory
salloc --nodes $NODES --ntasks-per-node $(($JOBS/$NODES)) -K15 make -f $testsuite/Makefile.performance -j $JOBS TESTS=$TESTS SLURM=$SLURM bin_directory=$bin_directory bin_testsuite=$bin_testsuite testsuite_dir=$testsuite
salloc --nodes $NODES --ntasks-per-node $(($TASKS/$NODES)) -K15 make -f $testsuite/Makefile.performance -j $(($TASKS/$NPROCS)) bin_directory=$bin_directory bin_testsuite=$bin_testsuite testsuite_dir=$testsuite
else
cd $run_directory
make -f $testsuite/Makefile.performance -j $JOBS TESTS=$TESTS SLURM=$SLURM bin_directory=$bin_directory bin_testsuite=$bin_testsuite testsuite_dir=$testsuite
make -f $testsuite/Makefile.performance -j $(($TASKS/$NPROCS)) bin_directory=$bin_directory bin_testsuite=$bin_testsuite testsuite_dir=$testsuite
fi
Loading