Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/v9-minor'
Browse files Browse the repository at this point in the history
  • Loading branch information
scip-ci committed Jan 17, 2025
2 parents 772fb49 + f22ba05 commit 3fd3ce7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 37 deletions.
24 changes: 5 additions & 19 deletions check/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,26 +70,12 @@ function cleanup {
# ensure TMPFILE is deleted and results are copied when exiting (normally or due to abort/interrupt)
trap cleanup EXIT

# only wait for optimi to be mounted in run.sh if you are on a recognized computer at zib
OPTHOST=$(uname -n | sed 's/.zib.de//g' | sed 's/portal//g' | tr -cd '[:alpha:]')

# file on optimi to check for
case "$OPTHOST" in
opt | optc )
. /etc/os-release
case "$ID" in
debian ) OPTIMIFILE=/data/optimi/optimi/QUOTAS ;;
ubuntu ) OPTIMIFILE=/nfs/optimi/QUOTAS ;;
esac
;;
htccmp ) OPTIMIFILE=/data/optimi/optimi/QUOTAS ;;
esac

# check if the scripts runs a *.zib.de host and we have recognized the host (OPTIMIFILE being set)
if $(hostname -f | grep -q zib.de) && [ -n "$OPTIMIFILE" ];
# check if the scripts runs a *.zib.de host
if $(hostname -f | grep -q zib.de)
then
# access optimi once to force a mount
ls ${OPTIMIFILE} >/dev/null 2>&1
OPTIMIFILE=/data/optimi/optimi/kombadon/IP/miplib2003/10teams.mps.gz
ls $OPTIMIFILE >/dev/null 2>&1

# check if optimi is mounted
MOUNTED=0
Expand All @@ -110,7 +96,7 @@ then
MOUNTED=1
else
((FAILED++))
echo "optimi is not mounted yet, waiting 1 second" >> "${ERRFILE}"
echo "optimi is not mounted yet ($OPTIMIFILE is no file), waiting 1 second" >> "${ERRFILE}"
sleep 1
fi
done
Expand Down
22 changes: 4 additions & 18 deletions check/run_fscip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,25 +83,11 @@ function cleanup {
# ensure TMPFILE is deleted and results are copied when exiting (normally or due to abort/interrupt)
trap cleanup EXIT

# only wait for optimi to be mounted in run.sh if you are on an opt computer at zib
OPTHOST=$(uname -n | sed 's/.zib.de//g' | sed 's/portal//g' | tr -cd '[:alpha:]')

# check if the scripts runs a *.zib.de host
if $(hostname -f | grep -q zib.de) && $([[ "${OPTHOST}" == "opt" ]] || [[ "${OPTHOST}" == "optc" ]]);
if $(hostname -f | grep -q zib.de)
then
# file on optimi to check for
case "$OPTHOST" in
opt | optc )
. /etc/os-release
case "$ID" in
debian ) OPTIMIFILE=/data/optimi/optimi/QUOTAS ;;
ubuntu ) OPTIMIFILE=/nfs/optimi/QUOTAS ;;
esac
;;
htccmp ) OPTIMIFILE=/data/optimi/optimi/QUOTAS ;;
esac

# access /optimi once to force a mount
# access optimi once to force a mount
OPTIMIFILE=/data/optimi/optimi/kombadon/IP/miplib2003/10teams.mps.gz
ls $OPTIMIFILE >/dev/null 2>&1

# check if /optimi is mounted
Expand All @@ -123,7 +109,7 @@ then
MOUNTED=1
else
((FAILED++))
echo "/optimi is not mounted yet, waiting 1 second"
echo "optimi is not mounted yet ($OPTIMIFILE is no file), waiting 1 second"
sleep 1
fi
done
Expand Down
1 change: 1 addition & 0 deletions pclint/scip.lnt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
-emacro(530,va_*)
-ecall(530,vsnprintf)
-emacro(530,SCIPalloc*)
-emacro(530,SCIPduplicate*)

// ignoring return value of function
-esym(534,printf,fprintf,fclose,fputs,fputc,fseek,fflush,strcat,strcpy,SCIPfclose,SCIPfseek,memset,memcpy,memmove)
Expand Down

0 comments on commit 3fd3ce7

Please sign in to comment.