diff options
| author | YurenHao0426 <Blackhao0426@gmail.com> | 2026-06-21 15:33:22 -0500 |
|---|---|---|
| committer | YurenHao0426 <Blackhao0426@gmail.com> | 2026-06-21 15:33:22 -0500 |
| commit | e42f575050efeeccb736385b43bed84e1129edb0 (patch) | |
| tree | 8ed04b42218cf4c90c0b9c29b40db149f1355f4a /rrog/run_zinc_gine_after_pid.sh | |
Initial RRoG GNN runner
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 |
