- #!/bin/bash
- dir=$(dirname "$0")
- python_executable="$dir/miniconda3/bin/python"
- if [ "$1" = "watch" ]; then
- shift
- watch -n 10 $python_executable "$dir"/python/gpu_status.py --port 8030 $@
- else
- $python_executable "$dir"/python/gpu_status.py --port 8030 $@
- fi
|