Commit d271e6d2 authored by Frank Winkler's avatar Frank Winkler

Modified regression tests.

parent f5684224
#!/bin/bash
echo "JOB-ID: ${SLURM_JOB_ID}"
date
grep -i "error" /tmp/pika_debug/pika_${SLURM_JOB_ID}
if [ -f "/tmp/pika_debug/pika_${SLURM_JOB_ID}" ]; then
echo "Check for erros in debug file:"
grep -i "error" /tmp/pika_debug/pika_${SLURM_JOB_ID}
echo "Check Monitoring:"
grep -i "PIKA_MONITORING" /tmp/pika_debug/pika_${SLURM_JOB_ID}
fi
echo "--"
#!/bin/bash
PIKA_ACCOUNT=zihforschung
PIKA_RESERVATION=Prope
PIKA_PARTITION=haswell64
PIKA_NODE=taurusi4040
PIKA_CORES=24
JOB_CHECK="bash /sw/taurus/tools/pika/test/job_regression_tests/check_pika.sh"
\ No newline at end of file
......@@ -16,8 +16,4 @@
##SBATCH --comment=no_monitoring
date
echo "JOB-ID: ${SLURM_JOB_ID}"
grep -i "error" /tmp/pika_debug/pika_${SLURM_JOB_ID}
echo "--"
bash /sw/taurus/tools/pika/test/job_regression_tests/check_pika.sh
......@@ -16,8 +16,4 @@
##SBATCH --comment=no_monitoring
srun -n 1 date
echo "JOB-ID: ${SLURM_JOB_ID}"
grep -i "error" /tmp/pika_debug/pika_${SLURM_JOB_ID}
echo "--"
srun -n 1 bash /sw/taurus/tools/pika/test/job_regression_tests/check_pika.sh
......@@ -16,8 +16,4 @@
#SBATCH --comment=no_monitoring
date
echo "JOB-ID: ${SLURM_JOB_ID}"
grep -i "error" /tmp/pika_debug/pika_${SLURM_JOB_ID}
echo "--"
bash /sw/taurus/tools/pika/test/job_regression_tests/check_pika.sh
......@@ -17,8 +17,4 @@
#SBATCH --comment=no_monitoring
srun -n 1 date
echo "JOB-ID: ${SLURM_JOB_ID}"
grep -i "error" /tmp/pika_debug/pika_${SLURM_JOB_ID}
echo "--"
srun -n 1 bash /sw/taurus/tools/pika/test/job_regression_tests/check_pika.sh
#!/bin/bash
echo "sbatch job_monitoring_srun.sh"
sbatch job_monitoring_srun.sh
echo "sbatch job_monitoring_no_srun.sh"
sbatch job_monitoring_no_srun.sh
function wait()
{
RUNNING_JOB=$(squeue -u $USER | grep $1)
# wait until job has finished
while [ ! -z "$RUNNING_JOB" ]
do
sleep 1
RUNNING_JOB=$(squeue -u $USER | grep $1)
done
cat slurm-$1.out
rm slurm-$1.out
}
echo "sbatch job_no_monitoring_srun.sh"
sbatch job_no_monitoring_srun.sh
function run_job()
{
echo $1
JOB_ID=$(sbatch $1)
JOB_ID=`echo $JOB_ID | cut -d ' ' -f 4`
wait $JOB_ID
}
echo "sbatch job_no_monitoring_no_srun.sh"
sbatch job_no_monitoring_no_srun.sh
sleep 20
cat slurm-*
rm slurm-*
run_job job_monitoring_no_srun.sh
run_job job_monitoring_srun.sh
run_job job_no_monitoring_no_srun.sh
run_job job_no_monitoring_srun.sh
#!/bin/bash
PIKA_ACCOUNT=zihforschung
PIKA_RESERVATION=Prope
PIKA_PARTITION=haswell64
PIKA_NODE=taurusi4040
PIKA_CORES=24
JOB_COMMAND="bash /sw/taurus/tools/pika/pika_test/job_regression_tests/check_pika.sh"
source /sw/taurus/tools/pika/test/job_regression_tests/job.conf
#interactive monitoring
echo "srun with monitoring"
srun --pty -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=${PIKA_RESERVATION} -p ${PIKA_PARTITION} --time=0:00:05 ${JOB_COMMAND}
srun --pty -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=${PIKA_RESERVATION} -p ${PIKA_PARTITION} --time=0:00:05 ${JOB_CHECK}
#interactive no monitoring
echo "srun without monitoring"
srun --pty -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=Prope --comment=no_monitoring -p ${PIKA_PARTITION} --exclusive --comment=no_monitoring --time=0:00:05 ${JOB_COMMAND}
srun --pty -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=Prope --comment=no_monitoring -p ${PIKA_PARTITION} --exclusive --comment=no_monitoring --time=0:00:05 ${JOB_CHECK}
#salloc monitoring
echo "salloc with monitoring"
salloc -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=Prope -p ${PIKA_PARTITION} --time=0:00:05 ${JOB_COMMAND}
salloc -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=Prope -p ${PIKA_PARTITION} --time=0:00:05 ${JOB_CHECK}
#salloc monitoring and srun
echo "salloc with monitoring and srun"
salloc -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=Prope -p ${PIKA_PARTITION} --time=0:00:05 srun -n 1 ${JOB_COMMAND}
salloc -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=Prope -p ${PIKA_PARTITION} --time=0:00:05 srun -n 1 ${JOB_CHECK}
#salloc no monitoring
echo "salloc without monitoring"
salloc -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=Prope -p ${PIKA_PARTITION} --exclusive --comment=no_monitoring --comment=no_monitoring --time=0:00:05 ${JOB_COMMAND}
salloc -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=Prope -p ${PIKA_PARTITION} --exclusive --comment=no_monitoring --comment=no_monitoring --time=0:00:05 ${JOB_CHECK}
#salloc no monitoring
echo "salloc without monitoring and srun"
salloc -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=Prope -p ${PIKA_PARTITION} --exclusive --comment=no_monitoring --comment=no_monitoring --time=0:00:05 srun -n 1 ${JOB_COMMAND}
salloc -n ${PIKA_CORES} -w ${PIKA_NODE} -A ${PIKA_ACCOUNT} --reservation=Prope -p ${PIKA_PARTITION} --exclusive --comment=no_monitoring --comment=no_monitoring --time=0:00:05 srun -n 1 ${JOB_CHECK}
#!/bin/bash
#SBATCH -A zihforschung
#SBATCH --job-name=Pika-ON
#SBATCH --ntasks=1 #MPI processes
#SBATCH --nodes=1
#SBATCH --tasks-per-node=1
##SBATCH --mem=8000
#SBATCH --time=60
#SBATCH --reservation=Prope
#SBATCH --partition=haswell64
##SBATCH --exclusive
##SBATCH -w taurusi4040
##SBATCH --comment=no_monitoring
sleep 120
#!/bin/bash
#SBATCH -A zihforschung
#SBATCH --job-name=Pika-OFF
#SBATCH --ntasks=1 #MPI processes
#SBATCH --nodes=1
#SBATCH --tasks-per-node=1
##SBATCH --mem=8000
#SBATCH --time=60
#SBATCH --reservation=Prope
#SBATCH --partition=haswell64
##SBATCH --exclusive
##SBATCH -w taurusi4040
#SBATCH --comment=no_monitoring
srun date
sleep 10
srun date
sleep 10
srun date
sleep 60
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment