Scheduled maintenance on Monday 2019-06-24 between 10:00-11:00 CEST

Add a new GPU runner

parent 65273b9a
...@@ -9,7 +9,8 @@ before_script: ...@@ -9,7 +9,8 @@ before_script:
- ulimit -v unlimited - ulimit -v unlimited
- echo "HOST " $(hostname) - echo "HOST " $(hostname)
- echo $CI_RUNNER_DESCRIPTION - echo $CI_RUNNER_DESCRIPTION
- export SLURM=no - export SLURM=yes
- export INTERACTIVE_RUN=yes
- if [ "$(hostname)" = "buildtest-rzg" ]; then module purge && module load git && module list && export INTERACTIVE_RUN=yes && export SLURM=no && source ./ci_test_scripts/.ci-env-vars; fi - if [ "$(hostname)" = "buildtest-rzg" ]; then module purge && module load git && module list && export INTERACTIVE_RUN=yes && export SLURM=no && source ./ci_test_scripts/.ci-env-vars; fi
- if [ "$(hostname)" = "amarek-elpa-gitlab-runner-1" ]; then module purge && module load git && module list && export INTERACTIVE_RUN=yes && export SLURM=no && source ./ci_test_scripts/.ci-env-vars; fi - if [ "$(hostname)" = "amarek-elpa-gitlab-runner-1" ]; then module purge && module load git && module list && export INTERACTIVE_RUN=yes && export SLURM=no && source ./ci_test_scripts/.ci-env-vars; fi
- if [ "$(hostname)" = "amarek-elpa-gitlab-runner-2" ]; then module purge && module load git && module list && export INTERACTIVE_RUN=yes && export SLURM=no && source ./ci_test_scripts/.ci-env-vars; fi - if [ "$(hostname)" = "amarek-elpa-gitlab-runner-2" ]; then module purge && module load git && module list && export INTERACTIVE_RUN=yes && export SLURM=no && source ./ci_test_scripts/.ci-env-vars; fi
......
This diff is collapsed.
...@@ -96,11 +96,52 @@ while getopts "c:t:j:m:n:b:o:s:q:i:S:h" opt; do ...@@ -96,11 +96,52 @@ while getopts "c:t:j:m:n:b:o:s:q:i:S:h" opt; do
esac esac
done done
if [ $skipStep -eq 1 ] if [ $skipStep -eq 1 ]
then then
echo "Skipping the test since option -s has been specified" echo "Skipping the test since option -s has been specified"
exit 0 exit 0
fi fi
if [ "$slurmBatch" == "yes" ]
then
CLUSTER=""
if [[ "$HOST" =~ "cobra" ]]
then
CLUSTER="cobra"
fi
if [ "$CLUSTER" == "cobra" ]
then
echo "Running on cobra with runner $CI_RUNNER_DESCRIPTION with tag $CI_RUNNER_TAGS"
if [ "$CI_RUNNER_TAGS" == "gpu" ]
then
cp $HOME/runners/job_script_templates/run_COBRA_1node_2GPU.sh .
echo "./configure " "$configureArgs" >> ./run_COBRA_1node_2GPU.sh
echo " " >> ./run_COBRA_1node_2GPU.sh
echo "make -j 16" >> ./run_COBRA_1node_2GPU.sh
echo " " >> ./run_COBRA_1node_2GPU.sh
echo "export OMP_NUM_THREADS=$ompThreads" >> ./run_COBRA_1node_2GPU.sh
echo "export TASKS=$mpiTasks" >> ./run_COBRA_1node_2GPU.sh
echo "make check TEST_FLAGS=\" $matrixSize $nrEV $blockSize \" " >> ./run_COBRA_1node_2GPU.sh
sbatch -W ./run_COBRA_1node_2GPU.sh
exitCode=$?
cat ./ELPA_CI_2gpu.out.*
cat ./ELPA_CI_2gpu.err.*
fi
if (( $exitCode > 0 ))
then
cat ./test-suite.log
fi
exit $exitCode
fi
fi
# not skipped then proceed # not skipped then proceed
if [ "$slurmBatch" == "no" ] if [ "$slurmBatch" == "no" ]
...@@ -111,6 +152,7 @@ then ...@@ -111,6 +152,7 @@ then
# - draco # - draco
# - buildtest # - buildtest
# - virtual machine runners # - virtual machine runners
# hopefully this can be removed soon
echo "Using old CI logic for appdev" echo "Using old CI logic for appdev"
if [ "$batchCommand" == "srun" ] if [ "$batchCommand" == "srun" ]
then then
......
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