diff options
Diffstat (limited to 'rrog/run_zinc_gine_after_pid.sh')
| -rwxr-xr-x | rrog/run_zinc_gine_after_pid.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/rrog/run_zinc_gine_after_pid.sh b/rrog/run_zinc_gine_after_pid.sh new file mode 100755 index 0000000..a4d24ae --- /dev/null +++ b/rrog/run_zinc_gine_after_pid.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env bash +set -euo pipefail + +WAIT_PID="${1:?usage: run_zinc_gine_after_pid.sh <pid>}" +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +cd "${ROOT_DIR}" + +echo "[wait] OGB queue pid=${WAIT_PID}" +while kill -0 "${WAIT_PID}" 2>/dev/null; do + sleep 60 +done + +echo "[start] OGB queue exited; launching ZINC gine" +DEVICE="${DEVICE:-cuda:1}" EPOCHS="${EPOCHS:-200}" SEED="${SEED:-0}" ./rrog/run_zinc_gine.sh |
