Skip to content

Commit

Permalink
Final touchups for container tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brobey committed Jul 28, 2020
1 parent 0f9034f commit fa8d019
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions GhostExchange/batch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@

set -v

AVAIL_CPUS=`lscpu |grep '^CPU(s)' |cut -d':' -f2`
AVAIL_CPUS=0
LSCPU=$(which lscpu)
if [ -x "${LSCPU}" ]; then
AVAIL_CPUS=`lscpu |grep '^CPU(s)' |cut -d':' -f2`
fi
NUM_CPUS=144
if [ ${AVAIL_CPUS} -lt ${NUM_CPUS} ]; then
#NUM_CPUS=${AVAIL_CPUS}
NUM_CPUS="${NUM_CPUS} --oversubscribe"
echo ${AVAIL_CPUS} ${NUM_CPUS}
if [ "${AVAIL_CPUS}" -lt "${NUM_CPUS}" ]; then
printf "Not enough processors. Need ${NUM_CPUS}\n"
exit 1
fi

for j in {1..10}; do
Expand Down

0 comments on commit fa8d019

Please sign in to comment.