SHA256
1
0
forked from pool/slurm

Accepting request 990643 from network:cluster

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/990643
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/slurm?expand=0&rev=75
This commit is contained in:
Richard Brown 2022-07-22 17:21:25 +00:00 committed by Git OBS Bridge
commit 7a8e082057
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Jul 14 15:20:46 UTC 2022 - Egbert Eich <eich@suse.com>
- Improve check for mpicc in testsuite package: if binary isn't
found, don't crash.
- Fix a typo which prevented the nproc limit for slurmd to be
up-ed for the test suite.
-------------------------------------------------------------------
Mon Jun 20 09:23:17 UTC 2022 - Christian Goll <cgoll@suse.com>

View File

@ -864,7 +864,9 @@ cat > %{buildroot}/srv/slurm-testsuite/testsuite/expect/globals.local <<EOF
set slurm_dir "/usr"
set build_dir "/srv/slurm-testsuite"
set src_dir "/srv/slurm-testsuite"
set mpicc [ exec which mpicc ]
if {[ catch { set mpicc [ exec which mpicc 2>/dev/null ]}]} {
set mpicc ""
}
set testsuite_user "auser"
#set testsuite_cleanup_on_failure false
EOF
@ -887,7 +889,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