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 branches found
No related tags found
No related merge requests found
...@@ -32,9 +32,10 @@ echo "Detected GPUS: $GPUS" ...@@ -32,9 +32,10 @@ echo "Detected GPUS: $GPUS"
PROCESSORS=$(getconf _NPROCESSORS_ONLN) PROCESSORS=$(getconf _NPROCESSORS_ONLN)
echo "Detected processors: $PROCESSORS" echo "Detected processors: $PROCESSORS"
NUM_JOBS=$GPUS if [ "$GPUS" -eq "0" ]; then
if [ "$NUM_JOBS" -eq "0" ]; then NUM_JOBS=${NUM_JOBS-1}
NUM_JOBS=1 else
NUM_JOBS=${NUM_JOBS-$GPUS}
fi fi
echo "Num jobs: $NUM_JOBS" 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