Egbert Eich 2022-07-15 07:12:53 +00:00 committed by Git OBS Bridge
parent 7d13a7ba97
commit 167150eca6

View File

@ -887,7 +887,7 @@ cp %{buildroot}/%_unitdir/slurmd.service $SLURMD_SERVICE
if grep -qE "^LimitNPROC" $SLURMD_SERVICE; then
sed -i -e '/LimitNPROC/s@=.*@=infinity@' $SLURMD_SERVICE
else
sed -i -e '/LimitSTACK/aLimitNPROC=infinity' $SLURMD_SERVICE
sed -i -e '/LimitNPROC/aLimitNPROC=infinity' $SLURMD_SERVICE
fi
sed -i -e '/ExecStart/aExecStartPre=/bin/bash -c "for i in 0 1 2 3; do test -e /dev/nvidia$i || mknod /dev/nvidia$i c 10 $((i+2)); done"' $SLURMD_SERVICE