Skip to content

Commit b620a30

Browse files
ChristianTackeGSIdennisklein
authored andcommitted
ci: Run check targets on main node
check/doxygen and check/format run by a factor (sometimes 10) faster, if the worksapce is local. Our Slurm now has a "Feature" (that's the slurm term for what is usually called a "tag") for this. So use it.
1 parent 7d9aade commit b620a30

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

test/ci/slurm-submit.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ if [ -z "$ALFACI_SLURM_QUEUE" ]
2626
then
2727
ALFACI_SLURM_QUEUE=main
2828
fi
29+
case "${label}" in
30+
*check/*)
31+
slurm_requested_features=localworkspace
32+
;;
33+
esac
2934

3035
echo "*** Slurm request options :"
3136
echo "*** Working directory ..: $PWD"
@@ -37,12 +42,20 @@ fi
3742
echo "*** Wall Time ..........: $ALFACI_SLURM_TIMEOUT min"
3843
echo "*** Job Name ...........: ${label}"
3944
echo "*** Extra Options ......: ${ALFACI_SLURM_EXTRA_OPTS}"
45+
if [ -n "$slurm_requested_features" ]
46+
then
47+
echo "*** Requested Features .: $slurm_requested_features"
48+
fi
4049

4150
srun_cmdline_opts="-p $ALFACI_SLURM_QUEUE -n 1 -N 1 -t $ALFACI_SLURM_TIMEOUT"
4251
if [ -n "$ALFACI_SLURM_CPUS" ]
4352
then
4453
srun_cmdline_opts="$srun_cmdline_opts -c $ALFACI_SLURM_CPUS"
4554
fi
55+
if [ -n "$slurm_requested_features" ]
56+
then
57+
srun_cmdline_opts="$srun_cmdline_opts --constraint=$slurm_requested_features"
58+
fi
4659

4760
echo "*** Submitting job at ....: $(date -R)"
4861
(

0 commit comments

Comments
 (0)