Skip to content

Commit

Permalink
Add starter script
Browse files Browse the repository at this point in the history
  • Loading branch information
nthistle committed Jul 19, 2018
1 parent fea23b0 commit 8641e7a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions run_model.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
if [ $# -lt 2 ]; then
echo "Not enough arguments!"
echo "Usage: bash run_model.sh <CUDA_DEVICE_NUM> <OUTPUT_FILE> [args to run_model.py ...]"
exit 1
fi
export CUDA_VISIBLE_DEVICES=$1
nohup python3 -u run_model.py ${@:3} > $2 2>&1 &

0 comments on commit 8641e7a

Please sign in to comment.