Skip to content
Snippets Groups Projects
Commit b603c5e1 authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

fix

parent e05a7f63
No related merge requests found
......@@ -32,9 +32,10 @@ echo "Detected GPUS: $GPUS"
PROCESSORS=$(getconf _NPROCESSORS_ONLN)
echo "Detected processors: $PROCESSORS"
NUM_JOBS=$GPUS
if [ "$NUM_JOBS" -eq "0" ]; then
NUM_JOBS=1
if [ "$GPUS" -eq "0" ]; then
NUM_JOBS=${NUM_JOBS-1}
else
NUM_JOBS=${NUM_JOBS-$GPUS}
fi
echo "Num jobs: $NUM_JOBS"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment